]> git.ipfire.org Git - thirdparty/autoconf.git/commit
Add checks of __STDC__ and __STDC_VERSION__ to C conformance tests.
authorZack Weinberg <zackw@panix.com>
Mon, 7 Dec 2020 16:49:52 +0000 (11:49 -0500)
committerZack Weinberg <zackw@panix.com>
Mon, 7 Dec 2020 16:49:52 +0000 (11:49 -0500)
commitd132ea0278f574fbb3c8d433ea094e36ece73ba1
treef38d3731a4e262658b35981efe7f0a306b54f4f7
parentb4ec547b86e6dd878d312cc79dddabce825a4492
Add checks of __STDC__ and __STDC_VERSION__ to C conformance tests.

This makes the C conformance tests more consistent with the C++
conformance tests, and should also speed up cycling through the
possible options to turn on C99/C11.

Tested with gcc, clang, SunPRO C, and AIX xlc.

* lib/autoconf/c.m4 (_AC_C_C89_TEST_GLOBALS): Add preprocessor test
  for __STDC__ being defined (to any value).
  (_AC_C_C99_TEST_GLOBALS, _AC_C_C11_TEST_GLOBALS): Add preprocessor
  test of the value of __STDC_VERSION__.
lib/autoconf/c.m4