diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2006-10-13 09:54:24 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2006-10-13 09:54:24 +0000 |
commit | d6f8db71b84a139c1d74d6d0c654659951219c38 (patch) | |
tree | 58b30d5e92983a13bd4f294aaf6a0965733b7554 /kernel/configure.ac | |
parent | 856e5cb2e11d39e5051d1bcf0bd872aadfb777ae (diff) | |
download | libfuse-d6f8db71b84a139c1d74d6d0c654659951219c38.tar.gz |
kernel: Fix compilation on patched 2.6.18 (fc6) and 2.6.9
Diffstat (limited to 'kernel/configure.ac')
-rw-r--r-- | kernel/configure.ac | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/kernel/configure.ac b/kernel/configure.ac index 29e6ee3..bf4c8cd 100644 --- a/kernel/configure.ac +++ b/kernel/configure.ac @@ -149,6 +149,14 @@ if test "$ENABLE_FUSE_MODULE" = y; then 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 + AC_DEFINE(HAVE_LOOKUP_INSTANTIATE_FILP, 1, [lookup_instantiate_filp() is defined]) + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) + fi + AC_MSG_CHECKING([if umount_begin is passed a vfsmount]) if egrep -q "\(\*umount_begin\) *\(struct vfsmount \*" $kernelsrc/include/linux/fs.h; then AC_DEFINE(UMOUNT_BEGIN_VFSMOUNT, 1, [umount_begin is passed a vfsmount]) @@ -157,9 +165,16 @@ if test "$ENABLE_FUSE_MODULE" = y; then 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 - AC_DEFINE(HAVE_LOOKUP_INSTANTIATE_FILP, 1, [lookup_instantiate_filp() is defined]) + AC_MSG_CHECKING([if inode has i_blksize field]) + if egrep -qw "i_blksize" $kernelsrc/include/linux/fs.h; then + AC_DEFINE(HAVE_I_BLKSIZE, 1, [inode has i_blksize field]) + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) + fi + AC_MSG_CHECKING([if inode has i_private field]) + if egrep -qw "i_private" $kernelsrc/include/linux/fs.h; then + AC_DEFINE(HAVE_I_PRIVATE, 1, [inode has i_private field]) AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) |