c-stack: make configure-time check more robust
authorEric Blake <ebb9@byu.net>
Tue, 2 Sep 2008 01:59:38 +0000 (19:59 -0600)
committerEric Blake <ebb9@byu.net>
Tue, 2 Sep 2008 02:02:05 +0000 (20:02 -0600)
* m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
successful sigaction call.
Reported by Tom G. Christensen.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
m4/c-stack.m4

index c8d71a4..0277d1c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-09-01  Eric Blake  <ebb9@byu.net>
+
+       c-stack: make configure-time check more robust
+       * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
+       successful sigaction call.
+       Reported by Tom G. Christensen.
+
 2008-09-01  Bruno Haible  <bruno@clisp.org>
 
        New module 'findprog-lgpl'.
index 885b662..4f0300b 100644 (file)
@@ -7,7 +7,7 @@
 
 # Written by Paul Eggert.
 
-# serial 5
+# serial 6
 
 AC_DEFUN([AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC],
   [# for STACK_DIRECTION
@@ -85,8 +85,7 @@ AC_DEFUN([AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC],
           setrlimit (RLIMIT_STACK, &rl);
           #endif
 
-          c_stack_action ();
-          return recurse ("\1");
+          return c_stack_action () || recurse ("\1");
         }
        ],
        [ac_cv_sys_stack_overflow_works=yes],
@@ -201,8 +200,7 @@ AC_DEFUN([AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC],
           setrlimit (RLIMIT_STACK, &rl);
           #endif
 
-          c_stack_action ();
-          return recurse ("\1");
+          return c_stack_action () || recurse ("\1");
         }
        ],
        [ac_cv_sys_xsi_stack_overflow_heuristic=yes],