AC_HEADER_STDBOOL: avoid spurious failure with modern xlc
commitd9847652188d94dd8205725400f43dbe0153b0b5
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 24 Aug 2010 21:03:32 +0000 (24 14:03 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 24 Aug 2010 21:04:16 +0000 (24 14:04 -0700)
tree14168c0648604e7155f696cc2e8be206e4908cf9
parent9a3024065070d715b15d2b10b357e522c0855e3c
AC_HEADER_STDBOOL: avoid spurious failure with modern xlc

* lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Move the "bool e =
&s;" test into the main program, as C99 might plausibly be
interpreted as not requiring support for this construction in
static initializers.  Remove the "#if defined __xlc__" stuff, as
the bug is not present in recent xlc implementations, and they
reject the test for other (valid) reasons.  People using ancient
xlc versions, if any, are suggested to update to fixed versions.
Reported by Ralf Wildenhues in the thread starting at:
http://lists.gnu.org/archive/html/bug-autoconf/2010-08/msg00103.html
ChangeLog
lib/autoconf/headers.m4