+AC_MSG_CHECKING([whether to include support for multi-threaded compression])
+AC_ARG_ENABLE([multithreaded-compression],
+ AS_HELP_STRING([--disable-multithreaded-compression],
+ [do not compile in the code for multi-threaded compression]),
+ [ENABLE_MULTITHREADED_COMPRESSION=$enableval],
+ [ENABLE_MULTITHREADED_COMPRESSION=yes]
+ )
+AC_MSG_RESULT([$ENABLE_MULTITHREADED_COMPRESSION])
+if test "x$ENABLE_MULTITHREADED_COMPRESSION" = "xyes"; then
+ AC_DEFINE([ENABLE_MULTITHREADED_COMPRESSION], [1],
+ [Define to 1 if including support for multithreaded
+ compression])
+ PTHREAD_LDADD="-lpthread"
+else
+ PTHREAD_LDADD=""
+fi
+AC_SUBST([PTHREAD_LDADD], [$PTHREAD_LDADD])
+
+case "$host" in
+ *-*-cygwin*)
+ dnl -no-undefined is needed to build a DLL in a Cygwin environment.
+ CYGWIN_EXTRA_LDFLAGS="-no-undefined"
+
+ dnl -fvisibility=hidden should not be used in a Cygwin
+ dnl environment
+ VISIBILITY_CFLAGS=""
+
+ WITH_NTFS_3G_DEFAULT="no"
+ WITH_FUSE_DEFAULT="no"
+ ;;
+ *)
+ CYGWIN_EXTRA_LDFLAGS=""
+ VISIBILITY_CFLAGS="-fvisibility=hidden"
+ WITH_NTFS_3G_DEFAULT="yes"
+ WITH_FUSE_DEFAULT="yes"
+ ;;
+esac
+
+AC_SUBST([CYGWIN_EXTRA_LDFLAGS], [$CYGWIN_EXTRA_LDFLAGS])
+AC_SUBST([VISIBILITY_CFLAGS], [$VISIBILITY_CFLAGS])
+