X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=configure.in;h=6cf0b35234c10a5aede24808c6228f028b727e8c;hb=d339304329df2d458e54c02eac10a27cb31d9cb1;hp=adc764b1ace0b21d40940c8056649f1c23ee203b;hpb=08ebf8d7df645851cb5597fd7f755551655c5aa8;p=dump.git diff --git a/configure.in b/configure.in index adc764b..6cf0b35 100644 --- a/configure.in +++ b/configure.in @@ -74,6 +74,23 @@ echo "Not compiling rmt by default" ) AC_SUBST(RMTDIR) +dnl +dnl Handle --enable-kerberos +dnl +AC_ARG_ENABLE([kerberos], +[ --enable-kerberos compile kerberos extensions], +if test "$enableval" = "yes" +then + OPTDEFS="-DKERBEROS" +else + OPTDEFS="" +fi +, +OPTDEFS="" +echo "Not compiling kerberos extensions by default" +) +AC_SUBST(OPTDEFS) + dnl dnl set $(CC) from --with-cc=value dnl @@ -209,13 +226,30 @@ dnl AC_CHECK_HEADER(ext2fs/ext2fs.h, [ext2fs_h=yes], [ext2fs_h=no]) AC_CHECK_LIB(ext2fs, ext2fs_open, [ext2fs_lib=yes], [ext2fs_lib=no], [-lcom_err]) 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) + AC_MSG_ERROR(You need to install the Ext2fs libraries from the E2fsprogs distribution first - hint: make install-libs) fi dnl dnl Check for library functions dnl -AC_CHECK_FUNCS(err errx verr verrx vwarn vwarnx warn warnx realpath glob lchown) +AC_CHECK_FUNCS(err errx verr verrx vwarn vwarnx warn warnx realpath lchown) +AC_CHECK_FUNC(glob) + +dnl +dnl Check for GLOB_ALTDIRFUNC +dnl +if test "$ac_cv_func_glob" = "yes"; then + AC_EGREP_CPP(yes, + [ +# include +# 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 +fi dnl dnl Check for types