]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Perform the test for -pipe in C instead of C++
authorFrancesco Chemolli <kinkie@squid-cache.org>
Mon, 30 Nov 2009 15:55:24 +0000 (16:55 +0100)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Mon, 30 Nov 2009 15:55:24 +0000 (16:55 +0100)
configure.in

index 8cd52c2a99922908d1173cdc509a99d08975dc7d..2be89eff11a368947544cf0f35b52f9ed3a7beab 100644 (file)
@@ -341,8 +341,10 @@ SQUID_CXX_CHECK_ARG_FHUGEOBJECTS
 if test "$squid_cv_cxx_arg_fhugeobjects" = "yes"; then
        SQUID_CXXFLAGS="$SQUID_CXXFLAGS -fhuge-objects"
 fi
-# see if we can use cc -pipe
+# see if we can use cc -pipe (Sunstudio c++ is more lenient, let's test with c)
+AC_LANG_PUSH([C])
 SQUID_CC_CHECK_ARGUMENT([squid_cv_cc_arg_pipe],[-pipe])
+AC_LANG_POP([C])
 if test "$squid_cv_cc_arg_pipe" ; then
     SQUID_CXXFLAGS="$SQUID_CXXFLAGS -pipe"
     SQUID_CFLAGS="$SQUID_CFLAGS -pipe"