[Ocfs2-commits] rev 751 - trunk

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Tue Mar 2 17:07:03 CST 2004


Author: manish
Date: 2004-03-02 17:07:01 -0600 (Tue, 02 Mar 2004)
New Revision: 751

Modified:
   trunk/Config.make.in
   trunk/configure.in
Log:
--enable-kernel-26 framework


Modified: trunk/Config.make.in
===================================================================
--- trunk/Config.make.in	2004-03-02 22:48:31 UTC (rev 750)
+++ trunk/Config.make.in	2004-03-02 23:07:01 UTC (rev 751)
@@ -39,6 +39,8 @@
 CPPFLAGS = @CPPFLAGS@
 LDFLAGS = @LDFLAGS@
 
+KERNEL_26 = @KERNEL_26@
+
 KERNELDIR = @KERNELDIR@
 KERNELINC = $(KERNELDIR)/include
 KERNELVER = @KERNELVER@

Modified: trunk/configure.in
===================================================================
--- trunk/configure.in	2004-03-02 22:48:31 UTC (rev 750)
+++ trunk/configure.in	2004-03-02 23:07:01 UTC (rev 751)
@@ -175,9 +175,26 @@
   AC_MSG_ERROR([Could not determine kernel version.])
 fi
 
+AC_ARG_ENABLE(kernel-26, [  --enable-kernel-26=[yes/no]   (BROKEN!) Enable building on Linux kernel version 2.6.x (default=no)],enable_kernel26=yes,enable_kernel26=no)
+KERNEL_26=
+if test "x$enable_kernel26" = "xyes"; then
+  KERNEL_26=yes
+fi
+AC_SUBST(KERNEL_26)
+
 case "$kversion" in
   2.4.*)
     ;;
+  2.6.*)
+    if test "x$enable_kernel26" = "xyes"; then
+      AC_MSG_WARN([
+Support for kernel version 2.6 is BROKEN at this time! Your system WILL hang.])
+    else
+      AC_MSG_ERROR([
+Support for kernel version 2.6 is BROKEN (Your system WILL hang!) at this time.
+You can use --enable-kernel-26 if you realy know what you're doing.])
+    fi
+    ;;
   *)
     AC_MSG_ERROR([This module only supports kernel version 2.4.x])
     ;;



More information about the Ocfs2-commits mailing list