diff options
author | Enrico M. Crisostomo <enrico.m.crisostomo@gmail.com> | 2016-03-20 14:17:15 +0100 |
---|---|---|
committer | Enrico M. Crisostomo <enrico.m.crisostomo@gmail.com> | 2016-03-21 11:36:12 +0100 |
commit | 34104ea9e635fae5551fd1d6495a80f8041c4adc (patch) | |
tree | 7926889d72ed145d32327719288430f062abbc12 /m4/ax_cxx_compile_stdcxx.m4 | |
parent | f7dd9928d94cdc780fea4fe17da03f9ccea24891 (diff) | |
download | autoconf-archive-34104ea9e635fae5551fd1d6495a80f8041c4adc.tar.gz |
Update CXXCPP after updating CXX.
Rewrap text.
Rewrap.
Diffstat (limited to 'm4/ax_cxx_compile_stdcxx.m4')
-rw-r--r-- | m4/ax_cxx_compile_stdcxx.m4 | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/m4/ax_cxx_compile_stdcxx.m4 b/m4/ax_cxx_compile_stdcxx.m4 index 8adc765..2c18e49 100644 --- a/m4/ax_cxx_compile_stdcxx.m4 +++ b/m4/ax_cxx_compile_stdcxx.m4 @@ -9,9 +9,9 @@ # DESCRIPTION # # Check for baseline language coverage in the compiler for the specified -# version of the C++ standard. If necessary, add switches to CXX to -# enable support. VERSION may be '11' (for the C++11 standard) or '14' -# (for the C++14 standard). +# version of the C++ standard. If necessary, add switches to CXX and +# CXXCPP to enable support. VERSION may be '11' (for the C++11 standard) +# or '14' (for the C++14 standard). # # The second argument, if specified, indicates whether you insist on an # extended mode (e.g. -std=gnu++11) or a strict conformance mode (e.g. @@ -39,7 +39,7 @@ # and this notice are preserved. This file is offered as-is, without any # warranty. -#serial 3 +#serial 4 dnl This macro is based on the code from the AX_CXX_COMPILE_STDCXX_11 macro dnl (serial version number 13). @@ -82,6 +82,9 @@ AC_DEFUN([AX_CXX_COMPILE_STDCXX], [dnl CXX="$ac_save_CXX"]) if eval test x\$$cachevar = xyes; then CXX="$CXX $switch" + if test -n "$CXXCPP" ; then + CXXCPP="$CXXCPP $switch" + fi ac_success=yes break fi @@ -105,6 +108,9 @@ AC_DEFUN([AX_CXX_COMPILE_STDCXX], [dnl CXX="$ac_save_CXX"]) if eval test x\$$cachevar = xyes; then CXX="$CXX $switch" + if test -n "$CXXCPP" ; then + CXXCPP="$CXXCPP $switch" + fi ac_success=yes break fi |