[Pvfs2-cvs] commit by kunkel in pvfs2/maint/config: kernel.m4
CVS commit program
cvs at parl.clemson.edu
Sat Jan 13 05:16:54 EST 2007
Update of /projects/cvsroot/pvfs2/maint/config
In directory parlweb1:/tmp/cvs-serv19417/maint/config
Modified Files:
Tag: kunkel-hint-branch
kernel.m4
Log Message:
Synchronization with HEAD
Index: kernel.m4
===================================================================
RCS file: /projects/cvsroot/pvfs2/maint/config/kernel.m4,v
diff -p -u -r1.12.2.2 -r1.12.2.3
--- kernel.m4 2 Dec 2006 11:12:22 -0000 1.12.2.2
+++ kernel.m4 13 Jan 2007 10:16:53 -0000 1.12.2.3
@@ -343,7 +343,7 @@ AC_DEFUN([AX_KERNEL_FEATURES],
AC_MSG_RESULT(no)
)
- AC_MSG_CHECKING(if get_sb callbacks' in kernel has struct vfsmount argument)
+ AC_MSG_CHECKING(if get_sb callback in kernel has struct vfsmount argument)
dnl if this test passes, the kernel has it
dnl if this test fails, the kernel does not have it
AC_TRY_COMPILE([
@@ -617,6 +617,8 @@ AC_DEFUN([AX_KERNEL_FEATURES],
AC_MSG_RESULT(no)
)
+ dnl Gives wrong answer if header is missing; don't try then.
+ if test x$ac_cv_header_linux_ioctl32_h = xyes ; then
AC_MSG_CHECKING(for register_ioctl32_conversion kernel exports)
dnl if this test passes, the kernel does not have it
dnl if this test fails, the kernel has it defined
@@ -633,6 +635,35 @@ AC_DEFUN([AX_KERNEL_FEATURES],
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_REGISTER_IOCTL32_CONVERSION, 1, Define if kernel has register_ioctl32_conversion),
)
+ fi
+
+ AC_MSG_CHECKING(for int return value of kmem_cache_destroy)
+ AC_TRY_COMPILE([
+ #define __KERNEL__
+ #include <linux/slab.h>
+ ], [
+ int i = kmem_cache_destroy(NULL);
+ ],
+ AC_MSG_RESULT(yes)
+ AC_DEFINE(HAVE_KMEM_CACHE_DESTROY_INT_RETURN, 1, Define if kmem_cache_destroy returns int),
+ AC_MSG_RESULT(no)
+ )
+
+ dnl As of 2.6.19, combined readv/writev into aio_read and aio_write
+ dnl functions. Detect this by not finding a readv member.
+ AC_MSG_CHECKING(for combined file_operations readv and aio_read)
+ AC_TRY_COMPILE([
+ #define __KERNEL__
+ #include <linux/fs.h>
+ ], [
+ struct file_operations filop = {
+ .readv = NULL
+ };
+ ],
+ AC_MSG_RESULT(no),
+ AC_MSG_RESULT(yes)
+ AC_DEFINE(HAVE_COMBINED_AIO_AND_VECTOR, 1, Define if struct file_operations has combined aio_read and readv functions),
+ )
CFLAGS=$oldcflags
])
More information about the Pvfs2-cvs
mailing list