Distinguish between C++0x and C++11 in conf. opts.

Surely this must have been a copy&paste error.
This commit is contained in:
Roland Kaufmann committed 2012-10-24 10:28:48 +02:00
1 parent 2a43bd305a
commit 056bce2128
1 file changed
+5 -5
+5 -5
View File
@@ -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([