From 056bce2128f1cd4680058a72e5b7be148f219468 Mon Sep 17 00:00:00 2001 From: Roland Kaufmann Date: Wed, 24 Oct 2012 10:28:48 +0200 Subject: [PATCH] Distinguish between C++0x and C++11 in conf. opts. Surely this must have been a copy&paste error. --- m4/cxx0x_compiler.m4 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/m4/cxx0x_compiler.m4 b/m4/cxx0x_compiler.m4 index ac8f22b9..5fb27045 100644 --- a/m4/cxx0x_compiler.m4 +++ b/m4/cxx0x_compiler.m4 @@ -7,12 +7,12 @@ AC_DEFUN([GXX0X],[ # try flag -std=c++11 AC_CACHE_CHECK([whether $CXX accepts -std=c++11], dune_cv_gplusplus_accepts_cplusplus11, [ AC_REQUIRE([AC_PROG_CXX]) - AC_ARG_ENABLE(gxx0xcheck, - AC_HELP_STRING([--disable-gxx0xcheck], + AC_ARG_ENABLE(gxx11check, + AC_HELP_STRING([--disable-gxx11check], [try flag -std=c++11 to enable C++11 features [[default=yes]]]), - [gxx0xcheck=$enableval], - [gxx0xcheck=yes]) - if test "x$GXX" = xyes && test "x$gxx0xcheck" = xyes; then + [gxx11check=$enableval], + [gxx11check=yes]) + if test "x$GXX" = xyes && test "x$gxx11check" = xyes; then AC_LANG_PUSH([C++]) CXX="$CXX -std=c++11" AC_TRY_COMPILE([