[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-patch-tracker] [patch #8906] configure check support for c11 and

From: Carnë Draug
Subject: [Octave-patch-tracker] [patch #8906] configure check support for c11 and c++11
Date: Tue, 16 Feb 2016 20:38:39 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0 Iceweasel/38.6.0

Follow-up Comment #8, patch #8906 (project octave):

Speaking with Mike Miller on IRC, we came up with the following solution:

AX_CXX_COMPILE_STDCXX([11], [ext], [optional])
CXX11_SWITCH=$(echo "$CXXFLAGS" | $SED "s,^$octave_save_CXXFLAGS ,,")

This has the following properties:

0 whatever CXXFLAGS we get at the start are used by AX_CXX_COMPILE_STDCXX
(because they affect the result of the test, e.g., maybe there's no need to
add any flag at all)
0 whatever flag AX_CXX_COMPILE_STDCXX adds to CXXFLAGS is kept there for
future configure checks
0 only the new flags added by AX_CXX_COMPILE_STDCXX get added to

If this is good, then I will work in a AX_CC_COMPILE_STDCC macro


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]