Modification of CXX and re-evaluation of dependent variables

2016-03-15 Thread Enrico Maria Crisostomo
Hi all, I'm currently facing this issue: I'm using the AX_CXX_COMPILE_STDCXX_11 macro (which in turn uses AX_CXX_COMPILE_STDCXX) to check for C++11 compiler support. If C++11 compiler support is detected, this macro sets CXX by appending the relevant switch: ``` CXX="$CXX $switch" ``` So f

Re: C11 and C++11 support detection fails with clang

2016-03-15 Thread Paul Eggert
On 02/24/2016 10:51 AM, Nick Bowler wrote: Right, the C11 standard says that the controlling expression of _Static_assert must be an integer constant expression. Thanks, I installed the attached into autoconf master; it should fix these problems. From d393c88f8f170c203052d1aacc7fb876b651ed4d M

Re: Add clang++ to AC_PROG_CXX

2016-03-15 Thread Paul Eggert
On 10/04/2012 12:41 AM, Václav Zeman wrote: Does attached patch work for you? Following up on this old thread, I applied the attached. In practice I expect this doesn't matter much, as people configure with CC=clang when they want clang. But we should at least fall back on clang if other C or

Re: C11 and C++11 support detection fails with clang

2016-03-15 Thread Mike Miller
On Tue, Mar 15, 2016 at 08:59:24 -0700, Paul Eggert wrote: > On 02/24/2016 10:51 AM, Nick Bowler wrote: > >Right, the C11 standard says that the controlling expression of > >_Static_assert must be an integer constant expression. > > Thanks, I installed the attached into autoconf master; it should