------------------------------------------------------------ revno: 12298 revision-id: kinkie@squid-cache.org-20120824105403-9c1zahgbualxfwuu parent: kinkie@squid-cache.org-20120824095700-ifbshhz725hev1py fixes bug(s): http://bugs.squid-cache.org/show_bug.cgi?id=3613 committer: Francesco Chemolli branch nick: trunk timestamp: Fri 2012-08-24 12:54:03 +0200 message: Bug 3613: relax standard-compliance strctness on clang to enable build When clang is invoked with the -std=c++0x option, it won't make available some system functions defined in c99. For some reason configure fails to detect this, and so the built-in implementation is not invoked. This change prevents enabling the -std=c++0x option for clang. ------------------------------------------------------------ # Bazaar merge directive format 2 (Bazaar 0.90) # revision_id: kinkie@squid-cache.org-20120824105403-9c1zahgbualxfwuu # target_branch: http://bzr.squid-cache.org/bzr/squid3/trunk/ # testament_sha1: 38f9c405bd8bbe3a5bc74e9f755231d8b6f0819c # timestamp: 2012-08-24 11:51:58 +0000 # source_branch: http://bzr.squid-cache.org/bzr/squid3/trunk/ # base_revision_id: kinkie@squid-cache.org-20120824095700-\ # ifbshhz725hev1py # # Begin patch === modified file 'configure.ac' --- configure.ac 2012-08-14 22:51:53 +0000 +++ configure.ac 2012-08-24 10:54:03 +0000 @@ -67,7 +67,13 @@ AX_CXX_COMPILE_STDCXX_0X if test "x$ax_cv_cxx_compile_cxx0x_cxx" = "xyes" -a \ "x$squid_host_os" != "xmingw" ; then - CXXFLAGS="$CXXFLAGS -std=c++0x" + #BUG 3613: when clang -std=c++0x is used, it activates a "strict mode" + # in the system libraries, which makes some c99 methods unavailable + # (e.g. strtoll), yet configure detects them as avilable. + case "$CXX" in + *clang++*) ;; #do nothing + *) CXXFLAGS="$CXXFLAGS -std=c++0x" ;; + esac fi # test for programs