WINDOWS_CPPFLAGS=""
WINDOWS_LDFLAGS=""
WINDOWS_LDADD=""
+ENABLE_XATTR_DEFAULT="autodetect"
case "$host" in
*-*-mingw*)
WINDOWS_CPPFLAGS="-D_POSIX -DUNICODE -D_UNICODE"
WINDOWS_LDFLAGS="-no-undefined"
WINDOWS_LDADD="-lshlwapi"
+ ENABLE_XATTR_DEFAULT="no"
;;
*-*-cygwin*)
# Cygwin (WARNING: not well supported)
AC_MSG_CHECKING([whether to include support for ntfs-3g])
AC_ARG_WITH([ntfs-3g],
AS_HELP_STRING([--without-ntfs-3g], [build without NTFS-3g.
- This will disable the ability to use NTFS-specific
+ On UNIX, this will disable the ability to use NTFS-specific
information when capturing or applying WIMs to a
NTFS filesystem.]),
[WITH_NTFS_3G=$withval],
)
AC_MSG_RESULT([$WITH_NTFS_3G])
if test "x$WITH_NTFS_3G" = "xyes"; then
- AC_DEFINE([WITH_NTFS_3G], [1], [Define to 1 to enable support for
- NTFS-specific information])
+ AC_DEFINE([WITH_NTFS_3G], [1], [On UNIX, define to 1 to enable support
+ for NTFS-specific information])
dnl This effectively checks for NTFS-3g 2011.4.12 or later
AC_CHECK_LIB([ntfs-3g], [ntfs_xattr_system_setxattr], [],
[AS_HELP_STRING([--enable-xattr], [Enable the xattr interface to access WIM
alternate data streams (default: autodetect)])],
[ENABLE_XATTR=$enableval],
- [AC_CHECK_FUNC([setxattr],
- [AC_CHECK_HEADER([attr/xattr.h],
- [ENABLE_XATTR=yes],
- [AC_MSG_WARN([Cannot find the "attr/xattr.h" header. You will not be
+ [if test "x$ENABLE_XATTR_DEFAULT" = "xautodetect"; then
+ AC_CHECK_FUNC([setxattr],
+ [AC_CHECK_HEADER([attr/xattr.h],
+ [ENABLE_XATTR=yes],
+ [AC_MSG_WARN([Cannot find the "attr/xattr.h" header. You will not be
+ able to use the xattr interface to access WIM alternate data
+ streams.])])],
+ [AC_MSG_WARN([Cannot find the setxattr() function. You will not be
able to use the xattr interface to access WIM alternate data
- streams.])])],
- [AC_MSG_WARN([Cannot find the setxattr() function. You will not be
- able to use the xattr interface to access WIM alternate data
- streams.])])])
+ streams.])])
+ fi])
if test "x$ENABLE_XATTR" = "xyes"; then
AC_DEFINE([ENABLE_XATTR], [1], [Define to 1 if using the xattr