]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Implemented alternate approach to -pipe flag detection
authorFrancesco Chemolli <kinkie@squid-cache.org>
Tue, 8 Dec 2009 14:01:39 +0000 (15:01 +0100)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Tue, 8 Dec 2009 14:01:39 +0000 (15:01 +0100)
configure.in

index ee055128146f74db7710d3e6e0e45604ffa4f91c..0102c0e866130cb90925b884c4edeed7e522bf66 100644 (file)
@@ -341,9 +341,11 @@ if test "$squid_cv_cxx_arg_fhugeobjects" = "yes"; then
        SQUID_CXXFLAGS="$SQUID_CXXFLAGS -fhuge-objects"
 fi
 # see if we can use cc -pipe (Sunstudio c++ is more lenient, let's test with c)
-AC_LANG_PUSH([C])
+SQUID_STATE_SAVE([squid_pipe])
+CFLAGS="$CFLAGS $squid_cv_cc_option_werror"
+CXXFLAGS="$CXXFLAGS $squid_cv_cc_option_werror"
 SQUID_CC_CHECK_ARGUMENT([squid_cv_cc_arg_pipe],[-pipe])
-AC_LANG_POP([C])
+SQUID_STATE_ROLLBACK([squid_pipe])
 if test "$squid_cv_cc_arg_pipe" ; then
     SQUID_CXXFLAGS="$SQUID_CXXFLAGS -pipe"
     SQUID_CFLAGS="$SQUID_CFLAGS -pipe"