Whamcloud - gitweb
add configure warning if building without CONFIG_KMOD
[fs/lustre-release.git] / build / autoconf / lustre-build-linux.m4
index c6a78de..43f711e 100644 (file)
@@ -283,6 +283,27 @@ AC_DEFUN([LB_LINUX_TRY_MAKE],
 [LB_LINUX_COMPILE_IFELSE([AC_LANG_PROGRAM([[$1]], [[$2]])], [$3], [$4], [$5], [$6])])
 
 #
+# LB_LINUX_CONFIG_BIG_STACK
+#
+# check for big stack patch
+#
+AC_DEFUN([LB_LINUX_CONFIG_BIG_STACK],
+[if test "x$ARCH_UM" = "x" -a "x$linux25" = "xno" ; then
+       case $target_cpu in
+               i?86 | x86_64)
+                       LB_LINUX_CONFIG([STACK_SIZE_16KB],[],[
+                               LB_LINUX_CONFIG([STACK_SIZE_32KB],[],[
+                                       LB_LINUX_CONFIG([STACK_SIZE_64KB],[],[
+                                               AC_MSG_ERROR([Lustre requires that Linux is configured with at least a 16KB stack.])
+                                       ])
+                               ])
+                       ])
+                       ;;
+       esac
+fi
+])
+
+#
 # LB_PROG_LINUX
 #
 # linux tests
@@ -306,11 +327,24 @@ if test "x$ARCH_UM" = "x" ; then
 fi
 ])
 
-# Portals tests
-LP_PROG_LINUX
+LB_LINUX_CONFIG([KMOD],[],[
+       AC_MSG_WARN([])
+       AC_MSG_WARN([Kernel module loading support is highly recommended.])
+       AC_MSG_WARN([])
+])
+
+#LB_LINUX_CONFIG_BIG_STACK
+
+# LNet tests
+LN_PROG_LINUX
 
 # Lustre tests
 LC_PROG_LINUX
+
+# Portals tests
+if test "$PORTALS" ; then
+       LP_PROG_LINUX
+fi
 ])
 
 #