* aclang.m4 (_AC_PROG_CXX_EXIT_DECLARATION): First try no declaration,

then '#include <stdlib.h>', before trying the explicit declarations.
This commit is contained in:
Akim Demaille 2001-01-22 14:29:24 +00:00
parent b54be14bee
commit 938f1a75cb
5 changed files with 17 additions and 8 deletions

View File

@ -1,3 +1,8 @@
2001-01-22 Lars J. Aas <somelarsa@sim.no>
* aclang.m4 (_AC_PROG_CXX_EXIT_DECLARATION): First try no declaration,
then '#include <stdlib.h>', before trying the explicit declarations.
2001-01-22 Akim Demaille <akim@epita.fr>
* acgeneral.m4 (_AC_COMPILE_IFELSE): Wrap the test -s in

View File

@ -1129,12 +1129,13 @@ fi[]dnl
# Find a valid prototype for exit and declare it in confdefs.h.
m4_define([_AC_PROG_CXX_EXIT_DECLARATION],
[for ac_declaration in \
''\
'#include <stdlib.h>' \
'extern "C" void std::exit (int) throw (); using std::exit;' \
'extern "C" void std::exit (int); using std::exit;' \
'extern "C" void exit (int) throw ();' \
'extern "C" void exit (int);' \
'void exit (int);' \
''
'void exit (int);'
do
_AC_COMPILE_IFELSE([AC_LANG_PROGRAM([@%:@include <stdlib.h>
$ac_declaration],

View File

@ -1129,12 +1129,13 @@ fi[]dnl
# Find a valid prototype for exit and declare it in confdefs.h.
m4_define([_AC_PROG_CXX_EXIT_DECLARATION],
[for ac_declaration in \
''\
'#include <stdlib.h>' \
'extern "C" void std::exit (int) throw (); using std::exit;' \
'extern "C" void std::exit (int); using std::exit;' \
'extern "C" void exit (int) throw ();' \
'extern "C" void exit (int);' \
'void exit (int);' \
''
'void exit (int);'
do
_AC_COMPILE_IFELSE([AC_LANG_PROGRAM([@%:@include <stdlib.h>
$ac_declaration],

View File

@ -1129,12 +1129,13 @@ fi[]dnl
# Find a valid prototype for exit and declare it in confdefs.h.
m4_define([_AC_PROG_CXX_EXIT_DECLARATION],
[for ac_declaration in \
''\
'#include <stdlib.h>' \
'extern "C" void std::exit (int) throw (); using std::exit;' \
'extern "C" void std::exit (int); using std::exit;' \
'extern "C" void exit (int) throw ();' \
'extern "C" void exit (int);' \
'void exit (int);' \
''
'void exit (int);'
do
_AC_COMPILE_IFELSE([AC_LANG_PROGRAM([@%:@include <stdlib.h>
$ac_declaration],

View File

@ -1129,12 +1129,13 @@ fi[]dnl
# Find a valid prototype for exit and declare it in confdefs.h.
m4_define([_AC_PROG_CXX_EXIT_DECLARATION],
[for ac_declaration in \
''\
'#include <stdlib.h>' \
'extern "C" void std::exit (int) throw (); using std::exit;' \
'extern "C" void std::exit (int); using std::exit;' \
'extern "C" void exit (int) throw ();' \
'extern "C" void exit (int);' \
'void exit (int);' \
''
'void exit (int);'
do
_AC_COMPILE_IFELSE([AC_LANG_PROGRAM([@%:@include <stdlib.h>
$ac_declaration],