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

CVS commit program cvs at parl.clemson.edu
Wed Feb 27 09:33:43 EST 2008


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

Modified Files:
      Tag: pvfs-2-7-branch
	kernel.m4 
Log Message:
merging device class configure test updates from trunk


Index: kernel.m4
===================================================================
RCS file: /projects/cvsroot/pvfs2-1/maint/config/kernel.m4,v
diff -p -u -r1.46.2.2 -r1.46.2.3
--- kernel.m4	16 Feb 2008 22:08:25 -0000	1.46.2.2
+++ kernel.m4	27 Feb 2008 14:33:43 -0000	1.46.2.3
@@ -829,15 +829,18 @@ AC_DEFUN([AX_KERNEL_FEATURES],
 	)
 
 	dnl old linux kernels do not have class_create and related functions
+        dnl
+        dnl check for class_device_destroy() to weed out RHEL4 kernels that
+        dnl have some class functions but not others
 	AC_MSG_CHECKING(if kernel has device classes)
 	AC_TRY_COMPILE([
 	    #define __KERNEL__
 	    #include <linux/device.h>
 	], [
-	    class_create(NULL, "pvfs2")
+	    class_device_destroy(NULL, "pvfs2")
 	],
 	AC_MSG_RESULT(yes)
-	AC_DEFINE(HAVE_KERNEL_DEVICE_CLASSES, 1, Define if kernel lacks device classes),
+	AC_DEFINE(HAVE_KERNEL_DEVICE_CLASSES, 1, Define if kernel has device classes),
 	AC_MSG_RESULT(no)
 	)
 



More information about the Pvfs2-cvs mailing list