getopt-gnu: suppress core dumps from detection code
authorPádraig Brady <P@draigBrady.com>
Tue, 19 Jul 2011 16:22:49 +0000 (17:22 +0100)
committerPádraig Brady <P@draigBrady.com>
Tue, 19 Jul 2011 17:47:38 +0000 (18:47 +0100)
* m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
to suppress core dumps that may well occur on glibc systems.
These core dumps might not be cleaned up automatically, or could
trigger some system core dump handling logic.
* modules/getopt-gnu: Depend on nocrash.

Signed-off-by: Pádraig Brady <P@draigBrady.com>
ChangeLog
m4/getopt.m4
modules/getopt-gnu

index a521e9b..e72af4c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-07-19  Pádraig Brady  <P@draigBrady.com>
+
+       getopt-gnu: suppress core dumps from detection code
+       * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
+       to suppress core dumps that may well occur on glibc systems.
+       * modules/getopt-gnu: Depend on nocrash.
+
 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
 
        pthread_sigmask: ensure usleep is declared
index 7e49ddd..047a3db 100644 (file)
@@ -231,8 +231,12 @@ dnl is ambiguous with environment values that contain newlines.
         [AC_LANG_PROGRAM([[#include <getopt.h>
                            #include <stddef.h>
                            #include <string.h>
+           ]GL_NOCRASH[
            ]], [[
              int result = 0;
+
+             nocrash_init();
+
              /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
                 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
                 OSF/1 5.1, Solaris 10.  */
index 3e5876a..6ad3643 100644 (file)
@@ -5,6 +5,7 @@ process command line arguments.
 Files:
 
 Depends-on:
+nocrash
 getopt-posix
 
 configure.ac: