diff options
author | Olly Betts <olly@survex.com> | 2015-05-12 15:38:45 +1200 |
---|---|---|
committer | Olly Betts <olly@survex.com> | 2015-05-12 15:38:45 +1200 |
commit | db244e7d19638e12be78ab38d6d69eb378cb20a2 (patch) | |
tree | b93a556e927f5fd63f900e1cfb3cb639a27c8b3c /m4/ax_cxx_compile_stdcxx_11.m4 | |
parent | 821cdb97d7e123504b2c96f0bb303dc2bc3d5cf5 (diff) | |
download | autoconf-archive-db244e7d19638e12be78ab38d6d69eb378cb20a2.tar.gz |
ax_cxx_compile_stdcxx_11.m4: Support HP aCC
This compiler needs +std=c++11 to enable C++11 mode:
http://h21007.www2.hp.com/portal/download/files/unprot/aCxx/PDF_Release_Notes/769149-001.pdf
Diffstat (limited to 'm4/ax_cxx_compile_stdcxx_11.m4')
-rw-r--r-- | m4/ax_cxx_compile_stdcxx_11.m4 | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/m4/ax_cxx_compile_stdcxx_11.m4 b/m4/ax_cxx_compile_stdcxx_11.m4 index a9a8f58..395b13d 100644 --- a/m4/ax_cxx_compile_stdcxx_11.m4 +++ b/m4/ax_cxx_compile_stdcxx_11.m4 @@ -34,7 +34,7 @@ # and this notice are preserved. This file is offered as-is, without any # warranty. -#serial 10 +#serial 11 m4_define([_AX_CXX_COMPILE_STDCXX_11_testbody], [[ template <typename T> @@ -128,7 +128,9 @@ AC_DEFUN([AX_CXX_COMPILE_STDCXX_11], [dnl m4_if([$1], [ext], [], [dnl if test x$ac_success = xno; then - for switch in -std=c++11 -std=c++0x; do + dnl HP's aCC needs +std=c++11 according to: + dnl http://h21007.www2.hp.com/portal/download/files/unprot/aCxx/PDF_Release_Notes/769149-001.pdf + for switch in -std=c++11 -std=c++0x +std=c++11; do cachevar=AS_TR_SH([ax_cv_cxx_compile_cxx11_$switch]) AC_CACHE_CHECK(whether $CXX supports C++11 features with $switch, $cachevar, |