X-Git-Url: https://git.wh0rd.org/?p=dump.git;a=blobdiff_plain;f=configure.in;h=a99ea2f26a1f90bac4716c9aeffac7131084e6e6;hp=8769174da07f2c1cb0a4bb32478c91304615a57a;hb=fec671d14f580b0264f24b71735a728b467baf21;hpb=7422942fcabc3e5735e850fce8113e9751ddd399 diff --git a/configure.in b/configure.in index 8769174..a99ea2f 100644 --- a/configure.in +++ b/configure.in @@ -129,12 +129,38 @@ AC_ARG_ENABLE([largefile], [ --enable-largefile enable Large File System support (your glibc needs to support it)], if test "$enableval" = "yes" then - AC_DEFINE(_FILE_OFFSET_BITS,64) + AC_DEFINE(USE_LFS) fi , echo "Not enabling Large File System support" ) +dnl +dnl Handle --enable-qfa +dnl +AC_ARG_ENABLE([qfa], +[ --enable-qfa enable Quick File Access support], +if test "$enableval" = "yes" +then + AC_DEFINE(USE_QFA) +fi +, +echo "Not enabling Quick File Access support" +) + +dnl +dnl Handle --enable-qfadebug +dnl +AC_ARG_ENABLE([qfadebug], +[ --enable-qfadebug include Quick File Access debugging code], +if test "$enableval" = "yes" +then + AC_DEFINE(DEBUG_QFA) +fi +, +echo "Not including Quick File Access debugging code" +) + dnl dnl set $(CC) from --with-cc=value dnl @@ -259,7 +285,7 @@ AC_ARG_WITH([dumpdatespath], [ --with-dumpdatespath=PATH select path for dumpdates file], AC_MSG_RESULT(DUMPDATESPATH is $withval) DUMPDATESPATH=$withval, -DUMPDATESPATH="/etc/dumpdates" +DUMPDATESPATH="${sysconfdir}/dumpdates" echo "DUMPDATESPATH defaults to $DUMPDATESPATH" )dnl AC_SUBST(DUMPDATESPATH) @@ -273,13 +299,22 @@ if test "$ext2fs_h" = no -o "$ext2fs_lib" = no; then AC_MSG_ERROR(You need to install the Ext2fs libraries from the E2fsprogs distribution first - hint: make install-libs) fi +dnl +dnl Try to use ext2_fs.h header from libext2fs instead of from the kernel +dnl +AC_CHECK_HEADERS(ext2fs/ext2_fs.h) + dnl dnl Check for ext2_ino_t type dnl AC_MSG_CHECKING(for ext2_ino_t type in libext2fs headers) AC_TRY_COMPILE([#include +#ifdef HAVE_EXT2FS_EXT2_FS_H +#include +#else #include -#include ], +#endif +#include ], [ext2_ino_t ino = 0;], [AC_DEFINE(HAVE_EXT2_INO_T) AC_MSG_RESULT(yes)], AC_MSG_RESULT(no)) @@ -289,7 +324,11 @@ dnl Check for s_journal_inum field in ext2_super_block struct dnl AC_MSG_CHECKING(for s_journal_inum field in ext2_super_block struct) AC_TRY_COMPILE([#include +#ifdef HAVE_EXT2FS_EXT2_FS_H +#include +#else #include +#endif #include ], [struct ext2_super_block es; es.s_journal_inum = 0;], [AC_DEFINE(HAVE_EXT2_JOURNAL_INUM) AC_MSG_RESULT(yes)],