X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fautoconf%2Flustre-core.m4;h=28a2b2d4376ea1ebc32fce9d46aeaa3517c2fbfb;hb=7df4213ded1a07fef73073b0b04aa27989503191;hp=c19132ddf1bc2c2150e1cf725b20cec94d0bba1f;hpb=56491a9ca5a697f14ac21dd019bdf54d89121088;p=fs%2Flustre-release.git diff --git a/lustre/autoconf/lustre-core.m4 b/lustre/autoconf/lustre-core.m4 index c19132d..28a2b2d 100644 --- a/lustre/autoconf/lustre-core.m4 +++ b/lustre/autoconf/lustre-core.m4 @@ -59,6 +59,7 @@ AC_DEFUN([LC_CONFIG_EXT3], LB_LINUX_CONFIG([EXT3_FS_XATTR],[$1],[$3]) ]) + # # LC_FSHOOKS # @@ -79,7 +80,17 @@ AC_DEFUN([LC_FSHOOKS], ]) $1 ],[ +LB_LINUX_TRY_COMPILE([ + #include +],[ + #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,10)) + #error "linux version < 2.6.10, only support 2.6.7" + #endif +],[ $2 +],[ +$3 +]) ]) ]) @@ -273,8 +284,11 @@ case $BACKINGFS in LC_FSHOOKS([ LDISKFS_SERIES="2.6-suse.series" ],[ - LDISKFS_SERIES="2.6-vanilla.series" - ]) + LDISKFS_SERIES="2.6-fc3.series" + ],[ + LDISKFS_SERIES="2.6-vanilla.series" + ] + ) AC_SUBST(LDISKFS_SERIES) ;; esac # $BACKINGFS @@ -317,6 +331,23 @@ AC_DEFINE_UNQUOTED(OBD_MAX_IOCTL_BUFFER, $OBD_BUFFER_SIZE, [IOCTL Buffer Size]) ]) # +# LC_CONFIG_GSS +# +# whether build-in gss/krb5 capability +# +AC_DEFUN([LC_CONFIG_GSS], +[AC_MSG_CHECKING([whether to enable gss/krb5 support]) +AC_ARG_ENABLE([gss], + AC_HELP_STRING([--enable-gss], + [enable gss/krb5 support]), + [],[enable_gss='yes']) +AC_MSG_RESULT([$enable_gss]) +if test x$enable_gss != xno ; then + AC_DEFINE(ENABLE_GSS, 1, Support GSS/krb5) +fi +]) + +# # LC_CONFIG_SNAPFS # # Whether snapfs is desired @@ -353,6 +384,7 @@ AC_MSG_RESULT([$enable_smfs]) AC_DEFUN([LC_PROG_LINUX], [LC_CONFIG_BACKINGFS LC_CONFIG_PINGER +LC_CONFIG_GSS LC_CONFIG_SNAPFS LC_CONFIG_SMFS @@ -423,7 +455,9 @@ AM_CONDITIONAL(USE_QUILT, test x$QUILT != xno) AM_CONDITIONAL(MPITESTS, test x$enable_mpitests = xyes, Build MPI Tests) AM_CONDITIONAL(SNAPFS, test x$enable_snapfs = xyes) AM_CONDITIONAL(SMFS, test x$enable_smfs = xyes) +AM_CONDITIONAL(GSS, test x$enable_gss = xyes) AM_CONDITIONAL(LIBLUSTRE, test x$enable_liblustre = xyes) +AM_CONDITIONAL(LIBLUSTRE_TESTS, test x$enable_liblustre_tests = xyes) AM_CONDITIONAL(MPITESTS, test x$enable_mpitests = xyes, Build MPI Tests) ]) @@ -450,7 +484,6 @@ lustre/ldiskfs/Makefile lustre/ldiskfs/autoMakefile lustre/ldlm/Makefile lustre/liblustre/Makefile -lustre/liblustre/tests/Makefile lustre/llite/Makefile lustre/llite/autoMakefile lustre/lmv/Makefile @@ -479,6 +512,10 @@ lustre/ptlrpc/Makefile lustre/ptlrpc/autoMakefile lustre/scripts/Makefile lustre/scripts/version_tag.pl +lustre/sec/Makefile +lustre/sec/autoMakefile +lustre/sec/gss/Makefile +lustre/sec/gss/autoMakefile lustre/smfs/Makefile lustre/smfs/autoMakefile lustre/snapfs/Makefile