1 # Add -std=c++11 before existing CXXFLAGS, in case those already contain some -std= (which will thus
2 # override the preceding -std=c++11, which is likely what the caller passing in those CXXFLAGS
8 # AS_IF([test "x$with_sharedptr" = "xc++11"], [
9 # AC_MSG_CHECKING([for c++11 shared ptr])
10 # save_CXXFLAGS="$CXXFLAGS"
11 #- CXXFLAGS="$CXXFLAGS -std=c++11"
12 #+ CXXFLAGS="-std=c++11 $CXXFLAGS"
15 # [[#include <memory>]],
19 # AC_MSG_RESULT([yes])
20 #- CXXFLAGS="$CXXFLAGS -std=c++11"
21 #+ CXXFLAGS="-std=c++11 $CXXFLAGS"
24 # AS_IF([test "x$with_sharedptr" = "xtr1"], [
27 @@ -16723,7 +16723,7 @@
28 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++11 shared ptr" >&5
29 $as_echo_n "checking for c++11 shared ptr... " >&6; }
30 save_CXXFLAGS="$CXXFLAGS"
31 - CXXFLAGS="$CXXFLAGS -std=c++11"
32 + CXXFLAGS="-std=c++11 $CXXFLAGS"
33 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36 @@ -16780,7 +16780,7 @@
38 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40 - CXXFLAGS="$CXXFLAGS -std=c++11"
41 + CXXFLAGS="-std=c++11 $CXXFLAGS"
44 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext