X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=ldiskfs%2Fconfigure.ac;h=79651c4f76fb93e5da759d04bb1eab2d67799ca8;hb=7f8bac9b653d3b7b83429c0162061b0e9ab9edc6;hp=5c170c1b226fc0485620bc3708a89450ec5bd7a3;hpb=102f939286748ee1578c655ce237cfd851f8d8a7;p=fs%2Flustre-release.git diff --git a/ldiskfs/configure.ac b/ldiskfs/configure.ac index 5c170c1..79651c4 100644 --- a/ldiskfs/configure.ac +++ b/ldiskfs/configure.ac @@ -1,6 +1,6 @@ # Process this file with autoconf to produce a configure script. -AC_INIT([Lustre ldiskfs], 3.0.4, [https://bugzilla.lustre.org/]) +AC_INIT([Lustre ldiskfs], 3.0.6, [https://bugzilla.lustre.org/]) AC_CONFIG_SRCDIR([lustre-ldiskfs.spec.in]) # Don't look for install-sh, etc. in .. @@ -36,15 +36,10 @@ esac AC_MSG_CHECKING([whether to build kernel modules]) AC_ARG_ENABLE([modules], - AC_HELP_STRING([--disable-modules], - [disable building of Lustre kernel modules]), - [],[ - LC_TARGET_SUPPORTED([ - enable_modules='yes' - ],[ - enable_modules='no' - ]) - ]) + AC_HELP_STRING([--disable-modules], + [disable building of Lustre kernel modules]),[], + [LC_TARGET_SUPPORTED([enable_modules='yes'], + [enable_modules='no'])]) AC_MSG_RESULT([$enable_modules]) if test x$enable_modules = xyes ; then @@ -67,8 +62,9 @@ AC_SUBST(LDISKFSDIR) AC_MSG_CHECKING([whether to enable quilt for making ldiskfs]) AC_ARG_ENABLE([quilt], - AC_HELP_STRING([--disable-quilt],[disable use of quilt for ldiskfs]), - [],[enable_quilt='yes']) + AC_HELP_STRING([--disable-quilt], + [disable use of quilt for ldiskfs]),[], + [enable_quilt='yes']) AC_MSG_RESULT([$enable_quilt]) AC_PATH_PROG(PATCH, patch, [no]) @@ -96,9 +92,13 @@ case $LINUXRELEASE in 2.6.12*) LDISKFS_SERIES="2.6.12-vanilla.series" ;; 2.6.15*) LDISKFS_SERIES="2.6-fc5.series";; 2.6.16*) LDISKFS_SERIES="2.6-sles10.series";; -2.6.18-*el5*) LDISKFS_SERIES="2.6-rhel5.series";; -2.6.18-*prep*) LDISKFS_SERIES="2.6-rhel5.series";; -2.6.18*) LDISKFS_SERIES="2.6.18-vanilla.series";; +2.6.18*) + if test x$RHEL_KENEL = xyes; then + LDISKFS_SERIES="2.6-rhel5.series" + else + LDISKFS_SERIES="2.6.18-vanilla.series" + fi + ;; 2.6.22*) LDISKFS_SERIES="2.6.22-vanilla.series";; *) AC_MSG_WARN([Unknown kernel version $LINUXRELEASE, fix ldiskfs/configure.ac]) esac @@ -107,6 +107,30 @@ AC_SUBST(LDISKFS_SERIES) AC_SUBST(ac_configure_args) +LB_CHECK_SYMBOL_EXPORT([d_rehash_cond], + [fs/dcache.c], + [AC_DEFINE(HAVE_D_REHASH_COND, 1, + [d_rehash_cond is exported by the kernel])], + []) + +LB_CHECK_SYMBOL_EXPORT([__d_rehash], + [fs/dcache.c], + [AC_DEFINE(HAVE___D_REHASH, 1, + [__d_rehash is exported by the kernel])], + []) + +LB_CHECK_SYMBOL_EXPORT([d_move_locked], + [fs/dcache.c], + [AC_DEFINE(HAVE_D_MOVE_LOCKED, 1, + [d_move_locked is exported by the kernel])], + []) + +LB_CHECK_SYMBOL_EXPORT([__d_move], + [fs/dcache.c], + [AC_DEFINE(HAVE___D_MOVE, 1, + [__d_move exported by the kernel])], + []) + LB_CONFIG_FILES AC_CONFIG_FILES([ldiskfs/autoMakefile ldiskfs/Makefile])