From: Pádraig Brady Date: Tue, 19 Jul 2011 16:22:49 +0000 (+0100) Subject: getopt-gnu: suppress core dumps from detection code X-Git-Tag: v0.1~2093 X-Git-Url: http://erislabs.net/gitweb/?a=commitdiff_plain;ds=sidebyside;h=a2eb92ef60dd05e9423948534ab483f7ffeb0647;p=gnulib.git 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. 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 --- diff --git a/ChangeLog b/ChangeLog index a521e9b2b..e72af4c8c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-07-19 Pádraig Brady + + 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 pthread_sigmask: ensure usleep is declared diff --git a/m4/getopt.m4 b/m4/getopt.m4 index 7e49ddde9..047a3db02 100644 --- a/m4/getopt.m4 +++ b/m4/getopt.m4 @@ -231,8 +231,12 @@ dnl is ambiguous with environment values that contain newlines. [AC_LANG_PROGRAM([[#include #include #include + ]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. */ diff --git a/modules/getopt-gnu b/modules/getopt-gnu index 3e5876a1b..6ad3643aa 100644 --- a/modules/getopt-gnu +++ b/modules/getopt-gnu @@ -5,6 +5,7 @@ process command line arguments. Files: Depends-on: +nocrash getopt-posix configure.ac: