X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=ldiskfs%2Fconfigure.ac;h=010bf6fbae90ee02eb836cbdea563a9298dffa00;hb=1531cbeb412a8d9c35fc5c6a26d3736cf476e4b9;hp=70a5d22af85d7c03b186d144d94c0de7f2adca96;hpb=c50c88e6ce0fe695e716fe7e4db30b62a959c5a1;p=fs%2Flustre-release.git diff --git a/ldiskfs/configure.ac b/ldiskfs/configure.ac index 70a5d22..010bf6fb 100644 --- a/ldiskfs/configure.ac +++ b/ldiskfs/configure.ac @@ -1,7 +1,8 @@ # Process this file with autoconf to produce a configure script. -AC_INIT([Lustre ldiskfs], 3.0.9, [https://bugzilla.lustre.org/]) +AC_INIT([Lustre ldiskfs], 3.3.0, [https://bugzilla.lustre.org/]) AC_CONFIG_SRCDIR([lustre-ldiskfs.spec.in]) +ldiskfs_is_ext4=yes # Don't look for install-sh, etc. in .. AC_CONFIG_AUX_DIR([.]) @@ -13,9 +14,22 @@ AM_INIT_AUTOMAKE AC_PROG_CC LB_CANONICAL_SYSTEM + +LB_DOWNSTREAM_RELEASE + +LB_BUILDID + LB_INCLUDE_RULES LB_PROG_CC +AC_ARG_ENABLE([dist], + AC_HELP_STRING([--enable-dist], + [only configure enough for make dist]), + [enable_dist='yes'],[enable_dist='no']) +AC_MSG_RESULT([$enable_dist]) +if test x$enable_dist != xno; then + enable_modules='no' +fi # # LC_TARGET_SUPPORTED @@ -33,13 +47,6 @@ $2 esac ]) -AC_DEFUN([LC_KERNEL_WITH_EXT4], -[if test -f $LINUX/fs/ext4/ext4.h ; then -$1 -else -$2 -fi -]) AC_MSG_CHECKING([whether to build kernel modules]) AC_ARG_ENABLE([modules], @@ -90,21 +97,7 @@ AM_CONDITIONAL(USE_QUILT, test x$QUILT != xno) LB_DEFINE_LDISKFS_OPTIONS -AC_MSG_CHECKING([whether to build ldiskfs based on ext4]) -if test x$RHEL_KERNEL = xyes; then - AC_ARG_ENABLE([ext4], - AC_HELP_STRING([--enable-ext4], - [enable building of ldiskfs based on ext4]), - [], [enable_ext4='no']) -else - case $LINUXRELEASE in - # ext4 was in 2.6.22-2.6.26 but not stable enough to use - 2.6.2[0-6]*) enable_ext4='no' ;; - *) LC_KERNEL_WITH_EXT4([enable_ext4='yes'], - [enable_ext4='no']) ;; - esac -fi -AC_MSG_RESULT([$enable_ext4]) +LB_HAVE_EXT4_ENABLED if test x$enable_ext4 = xyes ; then AC_DEFINE(HAVE_EXT4_LDISKFS, 1, [ldiskfs based on ext4]) @@ -119,6 +112,8 @@ AC_SUBST(BACKFSU) # We need a Upper string AM_CONDITIONAL(USE_EXT4, test x$enable_ext4 = xyes) +if test x$enable_dist != xyes; then + # don't need to do this if only configuring for make dist AC_MSG_CHECKING([which ldiskfs series to use]) case $LINUXRELEASE in 2.6.5*) LDISKFS_SERIES="2.6-suse.series" ;; @@ -144,6 +139,7 @@ case $LINUXRELEASE in *) AC_MSG_WARN([Unknown kernel version $LINUXRELEASE, fix ldiskfs/configure.ac]) esac AC_MSG_RESULT([$LDISKFS_SERIES]) +fi AC_SUBST(LDISKFS_SERIES) AC_SUBST(ac_configure_args)