From: Amos Jeffries Date: Sat, 21 May 2016 12:12:51 +0000 (+1200) Subject: Do not override user defined -std option X-Git-Tag: SQUID_4_0_11~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=79987b1a6827ccde1dc0fd07ac86d6244299099f;p=thirdparty%2Fsquid.git Do not override user defined -std option --- diff --git a/configure.ac b/configure.ac index 6a4a2c97f5..02273d290a 100644 --- a/configure.ac +++ b/configure.ac @@ -92,8 +92,12 @@ if test "x$squid_host_os" = "solaris" -a "x$GCC" != "x" ; then AC_USE_SYSTEM_EXTENSIONS fi -# Check for C++11 compiler support -AX_CXX_COMPILE_STDCXX_11([noext],[mandatory]) +# If the user did not specify a C++ version. +user_cxx=`echo "$PRESET_CXXFLAGS" | grep -o -E "\-std="` +if test "x$user_cxx" = "x"; then + # Check for C++11 compiler support + AX_CXX_COMPILE_STDCXX_11([noext],[mandatory]) +fi # test for programs AC_PROG_RANLIB