dnl #
-dnl # Default ZFS kernel mode configuration
+dnl # Default ZFS kernel configuration
dnl #
-AC_DEFUN([ZFS_AC_KERNEL_CONFIG], [
+AC_DEFUN([ZFS_AC_CONFIG_KERNEL], [
dnl # Kernel build make options
+ dnl # KERNELMAKE_PARAMS="V=1" # Enable verbose module build
KERNELMAKE_PARAMS=
- dnl #KERNELMAKE_PARAMS="V=1" # Enable verbose module build
dnl # Kernel build cpp flags
KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL "
dnl # can be done in the Makefile but it will take some serious
dnl # investigation and I don't have the time now.
- echo "Creating symlinks for additional make targets"
+ echo "creating symlinks for additional kernel make targets"
ln -f -s $LIBDIR/libport/u8_textprep.c $LIBDIR/libport/ku8_textprep.c
ln -f -s $LIBDIR/libavl/avl.c $LIBDIR/libavl/kavl.c
ln -f -s $LIBDIR/libavl/avl.c $LIBDIR/libavl/uavl.c
ln -f -s $LIBDIR/libzcommon/zfs_namecheck.c $LIBDIR/libzcommon/kzfs_namecheck.c
ln -f -s $LIBDIR/libzcommon/zfs_comutil.c $LIBDIR/libzcommon/kzfs_comutil.c
ln -f -s $LIBDIR/libzcommon/zpool_prop.c $LIBDIR/libzcommon/kzpool_prop.c
- ]
-)
+])
-AC_DEFUN([ZFS_AC_CONFIG], [
-
- TOPDIR=`/bin/pwd`
- BUILDDIR=$ZFS_META_NAME #+$zfsconfig
- ZFSDIR=$TOPDIR/$BUILDDIR
- LIBDIR=$ZFSDIR/lib
- CMDDIR=$ZFSDIR/zcmd
- UNAME=`uname -r | cut -d- -f1`
-
- AC_SUBST(UNAME)
- AC_SUBST(TOPDIR)
- AC_SUBST(BUILDDIR)
- AC_SUBST(ZFSDIR)
- AC_SUBST(LIBDIR)
- AC_SUBST(CMDDIR)
- AC_SUBST(UNAME)
-
- AC_ARG_WITH([zfs-config],
- AS_HELP_STRING([--with-config=CONFIG],
- [Config file 'kernel|user|lustre']),
- [zfsconfig="$withval"])
-
- AC_MSG_CHECKING([zfs config file])
-
- [ case "$zfsconfig" in
- kernel) ZFS_AC_KERNEL_CONFIG ;;
- user) ZFS_AC_USER_CONFIG ;;
- lustre) ZFS_AC_LUSTRE_CONFIG ;;
- *)
- AC_MSG_RESULT([Error!])
- AC_MSG_ERROR([Bad value "$zfsconfig" for --with-config,
- user kernel|user|lustre]) ;;
- esac ]
-
- AC_MSG_RESULT([$zfsconfig]);
-])
-
AC_DEFUN([ZFS_AC_KERNEL], [
ver=`uname -r`
fi
])
-AC_DEFUN([ZFS_AC_SCRIPT_CONFIG], [
+AC_DEFUN([ZFS_AC_CONFIG_SCRIPT], [
SCRIPT_CONFIG=.script-config
rm -f ${SCRIPT_CONFIG}
echo "KERNELSRC=${LINUX}" >>${SCRIPT_CONFIG}
echo "CMDDIR=${CMDDIR}" >>${SCRIPT_CONFIG}
])
+AC_DEFUN([ZFS_AC_CONFIG], [
+
+ TOPDIR=`/bin/pwd`
+ BUILDDIR=$ZFS_META_NAME #+$zfsconfig
+ ZFSDIR=$TOPDIR/$BUILDDIR
+ LIBDIR=$ZFSDIR/lib
+ CMDDIR=$ZFSDIR/zcmd
+ UNAME=`uname -r | cut -d- -f1`
+
+ AC_SUBST(UNAME)
+ AC_SUBST(TOPDIR)
+ AC_SUBST(BUILDDIR)
+ AC_SUBST(ZFSDIR)
+ AC_SUBST(LIBDIR)
+ AC_SUBST(CMDDIR)
+ AC_SUBST(UNAME)
+
+ AC_ARG_WITH([zfs-config],
+ AS_HELP_STRING([--with-config=CONFIG],
+ [Config file 'kernel|user|lustre']),
+ [zfsconfig="$withval"])
+
+ AC_MSG_CHECKING([zfs config])
+ AC_MSG_RESULT([$zfsconfig]);
+
+ case "$zfsconfig" in
+ kernel) ZFS_AC_CONFIG_KERNEL ;;
+ user) ZFS_AC_CONFIG_USER ;;
+ lustre) ZFS_AC_CONFIG_LUSTRE ;;
+ *)
+ AC_MSG_RESULT([Error!])
+ AC_MSG_ERROR([Bad value "$zfsconfig" for --with-config,
+ user kernel|user|lustre]) ;;
+ esac
+
+ ZFS_AC_CONFIG_SCRIPT
+])
+
dnl #
dnl # ZFS_LINUX_CONFTEST
dnl #