(_AC_PROG_CXX_EXIT_DECLARATION):
commit1512240def0ad68873788a4b2d1a9fcd414b8aff
authorJim Meyering <meyering@lucent.com>
Fri, 23 May 2003 09:36:17 +0000 (23 09:36 +0000)
committerJim Meyering <meyering@lucent.com>
Fri, 23 May 2003 09:36:17 +0000 (23 09:36 +0000)
treeb815f87e4ff5dce53964051a5c5fc7d6865f704b
parent7be200c5395dedb3c4ededed0ef0e9be1d0689d4
(_AC_PROG_CXX_EXIT_DECLARATION):
Remove `#include <stdlib.h>' from the list; we should never
make confdefs.h include <stdlib.h> or <cstdlib>, because the
resulting namespace pollution would cause other tests to fail.
Configure scripts run with some older versions of g++ and HP's
aCC would fail due to such an #include.  Problems reported by
Matthew Mueller in <http://bugs.debian.org/120704> and by
Keith Bostic in
<http://mail.gnu.org/archive/html/autoconf/2003-05/msg00063.html>.
In the test, use the test declaration before including <stdlib.h>,
as that's closer to how it'll be used.
lib/autoconf/c.m4