]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* aclang.m4 (_AC_PROG_CXX_EXIT_DECLARATION): First try no declaration,
authorAkim Demaille <akim@epita.fr>
Mon, 22 Jan 2001 14:29:24 +0000 (14:29 +0000)
committerAkim Demaille <akim@epita.fr>
Mon, 22 Jan 2001 14:29:24 +0000 (14:29 +0000)
then '#include <stdlib.h>', before trying the explicit declarations.

ChangeLog
aclang.m4
lib/autoconf/c.m4
lib/autoconf/fortran.m4
lib/autoconf/lang.m4

index c3985586c3f85ec6dd821f3cede22b8c663039dd..c5bdda75ebe7f67d96bcad99ee3570861ea3037c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index 52d6efcf13276f99aff93f7bd59e5497708e8a59..6ff59ff49bce8352228897874c312d9774ce6635 100644 (file)
--- a/aclang.m4
+++ b/aclang.m4
@@ -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],
index 52d6efcf13276f99aff93f7bd59e5497708e8a59..6ff59ff49bce8352228897874c312d9774ce6635 100644 (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],
index 52d6efcf13276f99aff93f7bd59e5497708e8a59..6ff59ff49bce8352228897874c312d9774ce6635 100644 (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],
index 52d6efcf13276f99aff93f7bd59e5497708e8a59..6ff59ff49bce8352228897874c312d9774ce6635 100644 (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],