From 5d95c0ac79f28270ca9d8059ea0ebb715756c783 Mon Sep 17 00:00:00 2001 From: jacob Date: Fri, 13 May 2005 17:49:35 +0000 Subject: [PATCH] b=6279 r=adilger require CONFIG_STACK_SIZE_16KB on i386 + x86_64 non-UML --- build/autoconf/lustre-build-linux.m4 | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/build/autoconf/lustre-build-linux.m4 b/build/autoconf/lustre-build-linux.m4 index c6a78de..f96e0c5 100644 --- a/build/autoconf/lustre-build-linux.m4 +++ b/build/autoconf/lustre-build-linux.m4 @@ -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,6 +327,8 @@ if test "x$ARCH_UM" = "x" ; then fi ]) +LB_LINUX_CONFIG_BIG_STACK + # Portals tests LP_PROG_LINUX -- 1.8.3.1