+if [ "$GXX" = yes ]; then
+ # if CXXFLAGS does not have a "-std=" setting, set it now to -std=c++0x,
+ # and check that the compiler still works.
+ if ! echo "$CXXFLAGS" | grep '\-std=' >/dev/null 2>&1; then
+ OLD_CXXFLAGS="${CXXFLAGS}"
+ CXXFLAGS="$CXXFLAGS --std=c++0x"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have a C++11 compiler" >&5
+$as_echo_n "checking if we have a C++11 compiler... " >&6; }
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+ cxx11_okay=yes
+else
+ cxx11_okay=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cxx11_okay" >&5
+$as_echo "$cxx11_okay" >&6; }
+ if [ $cxx11_okay = yes ]; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Adding CXXFLAGS option --std=c++0x" >&5
+$as_echo "$as_me: Adding CXXFLAGS option --std=c++0x" >&6;}
+ UCONFIG_CXXFLAGS="${UCONFIG_CXXFLAGS} --std=c++0x"
+ else
+ CXXFLAGS="$OLD_CXXFLAGS"
+ fi
+ fi
+fi
+