echo "Disabling compression support by default"
)
dnl
+dnl handle --enable-htree
+dnl
+AC_ARG_ENABLE([htree],
+[ --enable-htree enable EXPERIMENTAL htree directory support],
+if test "$enableval" = "no"
+then
+ HTREE_CMT=#
+ echo "Disabling htree directory support"
+else
+ HTREE_CMT=
+ AC_DEFINE(ENABLE_HTREE)
+ echo "Enabling htree directory support"
+fi
+,
+HTREE_CMT=
+AC_DEFINE(ENABLE_HTREE)
+echo "Enabling htree directory support by default"
+)
+AC_SUBST(HTREE_CMT)
+dnl
+dnl handle --enable-clear-htree
+dnl
+AC_ARG_ENABLE([htree-clear],
+[ --enable-htree-clear clear htree because we don't trust e2fsck],
+if test "$enableval" = "no"
+then
+ HTREE_CLR_CMT=#
+ echo "Disabling htree clearing"
+else
+ HTREE_CLR_CMT=
+ AC_DEFINE(ENABLE_HTREE_CLEAR)
+ echo "Enabling htree clearing"
+fi
+,
+HTREE_CLR_CMT=#
+echo "Disabling htree clearing by default"
+)
+AC_SUBST(HTREE_CLR_CMT)
+dnl
dnl handle --enable-old-evms
dnl
AC_ARG_ENABLE([old-evms],
AC_CHECK_HEADERS(stdlib.h unistd.h stdarg.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.h signal.h termios.h linux/fd.h linux/major.h sys/disklabel.h sys/ioctl.h sys/mkdev.h sys/mount.h sys/sockio.h sys/sysmacros.h sys/time.h sys/stat.h sys/types.h net/if.h netinet/in.h)
AC_FUNC_VPRINTF
dnl
-dnl See if struct dirent has a d_namlen field (like bsd systems), implying
-dnl that the actual length of the structure may be grater than the declared
-dnl length.
-dnl
-AC_MSG_CHECKING(whether struct dirent has a d_namlen field)
-AC_CACHE_VAL(e2fsprogs_cv_struct_d_namlen,
- AC_TRY_COMPILE(
-[#include <sys/types.h>
-#include <dirent.h>],
- [struct dirent de; de.d_namlen = 0;],
- [e2fsprogs_cv_struct_d_namlen=yes],
- [e2fsprogs_cv_struct_d_namlen=no]))
-AC_MSG_RESULT($e2fsprogs_cv_struct_d_namlen)
-if test "$e2fsprogs_cv_struct_d_namlen" = yes; then
- AC_DEFINE(HAVE_DIRENT_NAMLEN)
-fi
-dnl
dnl Check to see if llseek() is declared in unistd.h. On some libc's
dnl it is, and on others it isn't..... Thank you glibc developers....
dnl
AC_DEFINE(HAVE_STAT_FLAGS)
fi
fi
-AC_CHECK_FUNCS(chflags getrusage llseek lseek64 open64 getmntinfo strcasecmp srandom fchown mallinfo fdatasync strnlen sysconf)
+AC_CHECK_FUNCS(chflags getrusage llseek lseek64 open64 getmntinfo strcasecmp srandom fchown mallinfo fdatasync strnlen sysconf pathconf)
dnl
dnl Check to see if -lsocket is required (solaris) to make something
dnl that uses socket() to compile; this is needed for the UUID library
;;
esac
dnl
+dnl Uncomment only if Linux
+dnl
+LINUX_CMT="#"
+case "$host_os" in
+linux*)
+ LINUX_CMT=
+ ;;
+esac
+AC_SUBST(LINUX_CMT)
+dnl
dnl Linux and Hurd places root files in the / by default
dnl
case "$host_os" in