From 56594f6f10ba04aa51af976bc8339ea9ae54ea21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Dejean?= Date: Sun, 2 Aug 2015 06:37:21 +0200 Subject: Add a smart CXXFLAGS / std=c++11 switch. Code from glom and murrayc http://www.murrayc.com/permalink/2015/07/31/gtkmm-now-uses-c11/ . --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 4afb816..b7759db 100644 --- a/configure.ac +++ b/configure.ac @@ -20,6 +20,7 @@ AC_PROG_CC AC_PROG_CXX AC_LANG([C++]) AC_LANG_COMPILER_REQUIRE +AX_CXX_COMPILE_STDCXX_11([],[mandatory]) PKG_PROG_PKG_CONFIG([0.19]) # Initialize libtool @@ -103,7 +104,7 @@ if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then -Wnested-externs -Wpointer-arith \ -Wcast-align -Wsign-compare \ $CFLAGS" - CXXFLAGS="-Wall -std=c++98 $CXXFLAGS" + CXXFLAGS="-Wall $CXXFLAGS" else AC_MSG_RESULT(no) fi -- cgit v1.2.1