]> git.saurik.com Git - bison.git/commit
build: beware of Clang++ not supporting POSIXLY_CORRECT
authorAkim Demaille <akim@lrde.epita.fr>
Sat, 8 Dec 2012 18:33:50 +0000 (19:33 +0100)
committerAkim Demaille <akim@lrde.epita.fr>
Sun, 9 Dec 2012 12:07:47 +0000 (13:07 +0100)
commitd4728d92c7c03279612271a5a4c1ae7e1e324971
treef10f3ab655e8a6a8d484beeeb89014f14ca7f2a7
parent09a1cd5e5865d8d8cf2c5e172f6f0fdaf6e01960
build: beware of Clang++ not supporting POSIXLY_CORRECT

* m4/c-working.m4 (BISON_LANG_COMPILER_POSIXLY_CORRECT): New.
(BISON_C_COMPILER_POSIXLY_CORRECT): Use it.
For consistency with C++, also define BISON_C_WORKS.
* m4/cxx.m4 (BISON_CXX_COMPILER_POSIXLY_CORRECT): New.
* configure.ac: Use it.
* tests/atlocal.in: Get its result.
Propagate properly CXX values when used to compile C.
When POSIXLY_CORRECT, adjust BISON_C_WORKS and BISON_CXX_WORKS.
* tests/local.at (AT_COMPILE): Use BISON_C_WORKS.
configure.ac
m4/c-working.m4
m4/cxx.m4
tests/atlocal.in
tests/local.at