From 79987b1a6827ccde1dc0fd07ac86d6244299099f Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Sun, 22 May 2016 00:12:51 +1200 Subject: [PATCH] Do not override user defined -std option --- configure.ac | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 -- 2.47.3