From 54d148fbba26593c42b1ec886f2193d76ff128a3 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Mon, 23 Nov 2009 15:11:13 +1300 Subject: [PATCH] Author: Francesco Chemolli Make huge-objects macro only test for GCC --- acinclude.m4 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/acinclude.m4 b/acinclude.m4 index 95e7a8827a..72bb8956ee 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -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 -- 2.47.3