X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=ldiskfs%2Fconfigure.ac;h=14552136286b92ddf1e37bd4ad341d33dfeac2b2;hp=7adc1446de458beeebecd40d9728f2f099d0c353;hb=255a6ea1612c3b786951ae5b09d37d15ca820cd2;hpb=a56b6687b68421b032b333c1e95a45950f7b625c diff --git a/ldiskfs/configure.ac b/ldiskfs/configure.ac index 7adc1446..1455213 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.0, [https://bugzilla.lustre.org/]) +AC_INIT([Lustre ldiskfs], 3.0.4, [https://bugzilla.lustre.org/]) AC_CONFIG_SRCDIR([lustre-ldiskfs.spec.in]) # Don't look for install-sh, etc. in .. @@ -16,12 +16,34 @@ LB_CANONICAL_SYSTEM LB_INCLUDE_RULES LB_PROG_CC + +# +# LC_TARGET_SUPPORTED +# +# is the target os supported? +# +AC_DEFUN([LC_TARGET_SUPPORTED], +[case $target_os in + linux* | darwin*) +$1 + ;; + *) +$2 + ;; +esac +]) + + AC_MSG_CHECKING([whether to build kernel modules]) AC_ARG_ENABLE([modules], AC_HELP_STRING([--disable-modules], [disable building of Lustre kernel modules]), [],[ - enable_modules='yes' + LC_TARGET_SUPPORTED([ + enable_modules='yes' + ],[ + enable_modules='no' + ]) ]) AC_MSG_RESULT([$enable_modules]) @@ -73,7 +95,9 @@ case $LINUXRELEASE in 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.22*) LDISKFS_SERIES="2.6.22-vanilla.series";; *) AC_MSG_WARN([Unknown kernel version $LINUXRELEASE, fix ldiskfs/configure.ac]) esac AC_MSG_RESULT([$LDISKFS_SERIES])