aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/configure.ac
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2006-01-16 17:52:24 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2006-01-16 17:52:24 +0000
commit15af1b81cfcc81b9f25d4155d191c071e35dabac (patch)
tree986a6b45528509e7f28b08c9c13bbf7cee566f8b /kernel/configure.ac
parent75bb0deaf170b5aa1894de324139196310509ccc (diff)
downloadlibfuse-15af1b81cfcc81b9f25d4155d191c071e35dabac.tar.gz
fix
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