]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Make huge-objects macro only test for GCC
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 22 Nov 2009 23:19:33 +0000 (12:19 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 22 Nov 2009 23:19:33 +0000 (12:19 +1300)
acinclude.m4
configure.in

index 95e7a8827aad661c555dcf3a9d4e786461f68f51..72bb8956ee9eacf2fde29336830c362ab15c1697 100644 (file)
@@ -70,6 +70,7 @@ dnl
 dnl Test whether -fhuge-objects is available with this c++ compiler. gcc-29.5 series compilers need this on some platform with large objects.
 dnl
 AC_DEFUN([AC_TEST_CHECKFORHUGEOBJECTS],[
+ if test "$GCC" = "yes"; then
   AC_MSG_CHECKING([whether compiler accepts -fhuge-objects])
   AC_CACHE_VAL([ac_cv_test_checkforhugeobjects],[
     ac_cv_test_checkforhugeobjects=`echo "int main(int argc, char **argv) { int foo; }" > conftest.cc
@@ -92,6 +93,7 @@ exit $res`
   else
     HUGE_OBJECT_FLAG=""
   fi
+ fi
 ]) # end of AC_DEFUN of AC_TEST_CHECKFORHUGEOBJECTS
 
 
index 441737526cf4cae69b851cf7ee91c01aa866753b..f43a1a7e202e9c3f737ba6667ddcd45ecfacdec0 100644 (file)
@@ -306,10 +306,8 @@ fi
 AC_SUBST(SQUID_CFLAGS)
 AC_SUBST(SQUID_CXXFLAGS)
 
-if test "$GCC" = "yes"; then
-       AC_TEST_CHECKFORHUGEOBJECTS
-       SQUID_CXXFLAGS="$SQUID_CXXFLAGS $HUGE_OBJECT_FLAG"
-fi
+AC_TEST_CHECKFORHUGEOBJECTS
+SQUID_CXXFLAGS="$SQUID_CXXFLAGS $HUGE_OBJECT_FLAG"
 
 dnl Set LDFLAGS
 if test -z "$PRESET_LDFLAGS"; then