aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/configure.ac')
-rw-r--r--kernel/configure.ac19
1 files changed, 18 insertions, 1 deletions
diff --git a/kernel/configure.ac b/kernel/configure.ac
index 12d224a..0ef06f8 100644
--- a/kernel/configure.ac
+++ b/kernel/configure.ac
@@ -37,7 +37,9 @@ if test -z "$enable_kernel_module" -a -z "$kernelbuild" && echo "$runver" | grep
fi
if test "$checkmodule" = yes; then
AC_MSG_CHECKING([if FUSE module is from official kernel])
- if fgrep -q "fuse distribution version: " /lib/modules/${runver}/kernel/fs/fuse/fuse.ko 2> /dev/null; then
+ if test ! -f /lib/modules/${runver}/kernel/fs/fuse/fuse.ko; then
+ AC_MSG_RESULT([no])
+ elif fgrep -q "fuse distribution version: " /lib/modules/${runver}/kernel/fs/fuse/fuse.ko 2> /dev/null; then
AC_MSG_RESULT([no])
else
AC_MSG_RESULT([yes])
@@ -152,6 +154,21 @@ if test "$ENABLE_FUSE_MODULE" = y; then
else
AC_MSG_RESULT([no])
fi
+ AC_MSG_CHECKING([if kernel defines kzalloc function])
+ if egrep -qw "kzalloc" $kernelsrc/include/linux/slab.h; then
+ AC_DEFINE(HAVE_KZALLOC, 1, [kzalloc() is defined])
+ AC_MSG_RESULT([yes])
+ else
+ AC_MSG_RESULT([no])
+ fi
+
+ AC_MSG_CHECKING([if kernel defines fs_subsys])
+ if egrep -qw "fs_subsys" $kernelsrc/include/linux/fs.h; then
+ AC_DEFINE(HAVE_FS_SUBSYS, 1, [fs_subsys is defined])
+ AC_MSG_RESULT([yes])
+ else
+ AC_MSG_RESULT([no])
+ fi
AC_MSG_CHECKING([whether lookup_instantiate_filp is defined])
if test -f $kernelsrc/include/linux/namei.h && egrep -q "lookup_instantiate_filp" $kernelsrc/include/linux/namei.h; then