X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=configure.in;h=b5dd89cf92e2a5a2e5979bcd3e12378d0181c9a5;hb=9ce019288739ce7b6d3e3a4664303a5200b539ad;hp=768a92e20d1d927c2abb7fceb373dd6ea82b4720;hpb=4d5ed2f38cb1dce0244a05f94c8aec7f725a1f33;p=dump.git diff --git a/configure.in b/configure.in index 768a92e..b5dd89c 100644 --- a/configure.in +++ b/configure.in @@ -135,6 +135,32 @@ 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,6 +299,28 @@ 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 Check for ext2_ino_t type +dnl +AC_MSG_CHECKING(for ext2_ino_t type in libext2fs headers) +AC_TRY_COMPILE([#include +#include +#include ], +[ext2_ino_t ino = 0;], +[AC_DEFINE(HAVE_EXT2_INO_T) AC_MSG_RESULT(yes)], +AC_MSG_RESULT(no)) + +dnl +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 +#include +#include ], +[struct ext2_super_block es; es.s_journal_inum = 0;], +[AC_DEFINE(HAVE_EXT2_JOURNAL_INUM) AC_MSG_RESULT(yes)], +AC_MSG_RESULT(no)) + dnl dnl Check for termcap libraries dnl @@ -316,6 +364,7 @@ AC_CHECK_FUNC(glob) dnl dnl Check for GLOB_ALTDIRFUNC dnl +AC_MSG_CHECKING(for extended glob routines) if test "$ac_cv_func_glob" = "yes"; then AC_EGREP_CPP(yes, [ @@ -323,10 +372,15 @@ if test "$ac_cv_func_glob" = "yes"; then # ifdef GLOB_ALTDIRFUNC yes # endif - ], AC_DEFINE(HAVE_GLOB), noglob=yes) - if test "$noglob" = "yes"; then - echo "Your system does not support extended glob, will use the internal routines" - fi + ], + [ + AC_DEFINE(HAVE_GLOB) + AC_MSG_RESULT(yes) + ], + [ + AC_MSG_RESULT(no) + echo "Your system does not support extended glob, will use the internal routines" + ]) fi dnl