[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:
octave_save_CXXFLAGS=$CXXFLAGS
AX_CXX_COMPILE_STDCXX([11], [ext], [optional])
CXX11_SWITCH=$(echo "$CXXFLAGS" | $SED "s,^$octave_save_CXXFLAGS ,,")
XTRA_CXXFLAGS="$XTRA_CXXFLAGS $CXX11_SWITCH"
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
XTRA_CXXFLAGS
If this is good, then I will work in a AX_CC_COMPILE_STDCC macro
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/patch/?8906>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-patch-tracker] [patch #8906] configure check support for c11 and c++11, Carnë Draug, 2016/02/07
- [Octave-patch-tracker] [patch #8906] configure check support for c11 and c++11, Mike Miller, 2016/02/09
- [Octave-patch-tracker] [patch #8906] configure check support for c11 and c++11, John W. Eaton, 2016/02/11
- [Octave-patch-tracker] [patch #8906] configure check support for c11 and c++11, Carnë Draug, 2016/02/12
- [Octave-patch-tracker] [patch #8906] configure check support for c11 and c++11, Carnë Draug, 2016/02/12
- [Octave-patch-tracker] [patch #8906] configure check support for c11 and c++11, Mike Miller, 2016/02/12
- [Octave-patch-tracker] [patch #8906] configure check support for c11 and c++11, Carnë Draug, 2016/02/13
- [Octave-patch-tracker] [patch #8906] configure check support for c11 and c++11, Mike Miller, 2016/02/15
- [Octave-patch-tracker] [patch #8906] configure check support for c11 and c++11,
Carnë Draug <=
- [Octave-patch-tracker] [patch #8906] configure check support for c11 and c++11, Carnë Draug, 2016/02/17
- [Octave-patch-tracker] [patch #8906] configure check support for c11 and c++11, Carnë Draug, 2016/02/18
- [Octave-patch-tracker] [patch #8906] configure check support for c11 and c++11, Carnë Draug, 2016/02/18
- [Octave-patch-tracker] [patch #8906] configure check support for c11 and c++11, John W. Eaton, 2016/02/18
- [Octave-patch-tracker] [patch #8906] configure check support for c11 and c++11, Carnë Draug, 2016/02/18
- [Octave-patch-tracker] [patch #8906] configure check support for c11 and c++11, John W. Eaton, 2016/02/18
- [Octave-patch-tracker] [patch #8906] configure check support for c11 and c++11, Carnë Draug, 2016/02/18
- [Octave-patch-tracker] [patch #8906] configure check support for c11 and c++11, Carnë Draug, 2016/02/18