Mercurial > hg > octave-kai > gnulib-hg
changeset 15433:2b7d01b95963
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 <P@draigBrady.com>
author | Pádraig Brady <P@draigBrady.com> |
---|---|
date | Tue, 19 Jul 2011 17:22:49 +0100 |
parents | 6bebbb324858 |
children | 2cf9eb4a011c |
files | ChangeLog m4/getopt.m4 modules/getopt-gnu |
diffstat | 3 files changed, 12 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- a/m4/getopt.m4 +++ b/m4/getopt.m4 @@ -231,8 +231,12 @@ [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. */