-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_MSG_RESULT([$enable_quilt])
-
-AC_PATH_PROG(PATCH, patch, [no])
-
-if test x$enable_quilt = xno ; then
- QUILT="no"
-else
- AC_PATH_PROG(QUILT, quilt, [no])
-fi
-
-if test x$enable_ldiskfs$PATCH$QUILT = xyesnono ; then
- AC_MSG_ERROR([Quilt or patch are needed to build the ldiskfs module])
-fi
-
-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[06]*) enable_ext4='no' ;;
- *) LC_KERNEL_WITH_EXT4([enable_ext4='yes'],
- [enable_ext4='no']) ;;
- esac
-fi
-AC_MSG_RESULT([$enable_ext4])