| 2000-10-02 Morten Eriksen <[EMAIL PROTECTED]>
|
| * aclang.m4 (AC_LANG_SOURCE(C++)): don't define exit(), it'll
| mismatch with the native exit() definition on some platforms
| (happens at least with g++ 2.96 and glibc 2.1.92 on Red Hat Linux
| v7).
|
| Index: ChangeLog
| ===================================================================
| RCS file: /cvs/autoconf/ChangeLog,v
| retrieving revision 1.895
| diff -u -r1.895 ChangeLog
| --- ChangeLog 2000/10/02 13:11:27 1.895
| +++ ChangeLog 2000/10/02 17:24:17
| @@ -1,3 +1,10 @@
| +2000-10-02 Morten Eriksen <[EMAIL PROTECTED]>
| +
| + * aclang.m4 (AC_LANG_SOURCE(C++)): don't define exit(), it'll
| + mismatch with the native exit() definition on some platforms
| + (happens at least with g++ 2.96 and glibc 2.1.92 on Red Hat Linux
| + v7).
| +
| 2000-10-02 Akim Demaille <[EMAIL PROTECTED]>
|
| * aclang.m4 (_AC_LANG_ABBREV, _AC_LANG_ABBREV(C))
| Index: aclang.m4
| ===================================================================
| RCS file: /cvs/autoconf/aclang.m4,v
| retrieving revision 1.68
| diff -u -r1.68 aclang.m4
| --- aclang.m4 2000/10/02 13:11:28 1.68
| +++ aclang.m4 2000/10/02 17:19:28
| @@ -412,9 +412,6 @@
| define([AC_LANG_SOURCE(C++)],
| [#line __oline__ "configure"
| #include "confdefs.h"
| -#ifdef __cplusplus
| -extern "C" void exit (int);
| -#endif
| $1])
I'm in favor of this patch given that it applies only to C++. Note
however, that it does not solve the problem for people who use CC=g++.