[Pvfs2-cvs] commit by robl in pvfs2-1/maint/config: kernel.m4

CVS commit program cvs at parl.clemson.edu
Mon Nov 27 15:47:20 EST 2006


Update of /projects/cvsroot/pvfs2-1/maint/config
In directory parlweb1:/tmp/cvs-serv22114/maint/config

Modified Files:
      Tag: WALT3
	kernel.m4 
Log Message:
from HEAD: 2.6.18.1 no longer provides linux/config.h


Index: kernel.m4
===================================================================
RCS file: /projects/cvsroot/pvfs2-1/maint/config/kernel.m4,v
diff -u -w -p -u -r1.9.6.3 -r1.9.6.4
--- kernel.m4	7 Nov 2006 16:52:41 -0000	1.9.6.3
+++ kernel.m4	27 Nov 2006 20:47:19 -0000	1.9.6.4
@@ -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