[Pvfs2-cvs] commit by robl in pvfs2-1/maint/config: kernel.m4
CVS commit program
cvs at parl.clemson.edu
Mon Oct 23 18:25:42 EDT 2006
Update of /projects/cvsroot/pvfs2-1/maint/config
In directory parlweb1:/tmp/cvs-serv29683/maint/config
Modified Files:
kernel.m4
Log Message:
in 2.6.18.1 kernels, linux/config.h now complains whenever included.
Index: kernel.m4
===================================================================
RCS file: /projects/cvsroot/pvfs2-1/maint/config/kernel.m4,v
diff -u -w -p -u -r1.18 -r1.19
--- kernel.m4 20 Oct 2006 19:02:35 -0000 1.18
+++ kernel.m4 23 Oct 2006 22:25:41 -0000 1.19
@@ -586,6 +586,21 @@ AC_DEFUN([AX_KERNEL_FEATURES],
)
CFLAGS=$tmp_cflags
+ dnl In 2.6.18.1 and newer, including <linux/config.h> will throw off a
+ dnl warning
+ tmp_cflags=${CFLAGS}
+ CFLAGS="${CFLAGS} -Werror"
+ AC_MSG_CHECKING(for warnings when including linux/config.h)
+ AC_TRY_COMPILE([
+ #define __KERNEL__
+ #include <linux/config.h>
+ ], [],
+ AC_MSG_RESULT(no)
+ AC_DEFINE(HAVE_NOWARNINGS_WHEN_INCLUDING_LINUX_CONFIG_H, 1, Define if including linux/config.h gives no warnings),
+ AC_MSG_RESULT(yes)
+ )
+ CFLAGS=$tmp_cflags
+
AC_MSG_CHECKING(for compat_ioctl member in file_operations structure)
AC_TRY_COMPILE([
#define __KERNEL__
More information about the Pvfs2-cvs
mailing list