}])
])
-# check if the c++ compiler supports the -fhuge-objects flag
-# sets the variable squid_cv_cxx_arg_fhugeobjects to either "yes" or "no"
-#
-AC_DEFUN([SQUID_CXX_CHECK_ARG_FHUGEOBJECTS],[
- AC_LANG_PUSH([C++])
- if test "$GCC" = "yes"; then
- SQUID_CC_CHECK_ARGUMENT([squid_cv_cxx_arg_fhugeobjects],[-Werror -fhuge-objects])
- else
- squid_cv_cxx_arg_fhugeobjects=no
- fi
- AC_LANG_POP([C++])
-])
-
# detect what kind of compiler we're using, either by using hints from
# autoconf itself, or by using predefined preprocessor macros
# sets the variable squid_cv_compiler to one of
SQUID_CXXFLAGS="$SQUID_CXXFLAGS $squid_cv_cxx_option_werror"
fi
-SQUID_CXX_CHECK_ARG_FHUGEOBJECTS
-if test "x$squid_cv_cxx_arg_fhugeobjects" = "xyes"; then
- SQUID_CXXFLAGS="$SQUID_CXXFLAGS -fhuge-objects"
-fi
# squid_cv_cc_arg_pipe is set by SQUID_CC_GUESS_OPTIONS
SQUID_CXXFLAGS="$SQUID_CXXFLAGS $squid_cv_cc_arg_pipe"
SQUID_CFLAGS="$SQUID_CFLAGS $squid_cv_cc_arg_pipe"
dnl
-dnl thanks to autogen, for the template..
-dnl
-dnl @synopsis AC_TEST_CHECKFORHUGEOBJECTS
-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
-HUGE_OBJECT_FLAG=""
-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
-${CXX} -Werror -fhuge-objects -o conftest.bin conftest.cc 2>/dev/null
-res=$?
-rm -f conftest.*
-echo yes
-exit $res`
- if [[ $? -ne 0 ]]
- then ac_cv_test_checkforhugeobjects=no
- else if [[ -z "$ac_cv_test_checkforhugeobjects" ]]
- then ac_cv_test_checkforhugeobjects=yes
- fi ; fi
- ]) # end of CACHE_VAL
- AC_MSG_RESULT([${ac_cv_test_checkforhugeobjects}])
-
- if test "X${ac_cv_test_checkforhugeobjects}" != Xno
- then
- HUGE_OBJECT_FLAG="-fhuge-objects"
- fi
- fi #gcc
-]) # end of AC_DEFUN of AC_TEST_CHECKFORHUGEOBJECTS
-
TRIE_CXXFLAGS="-Werror $TRIE_CXXFLAGS"
fi
- AC_TEST_CHECKFORHUGEOBJECTS
- TRIE_CXXFLAGS="$TRIE_CXXFLAGS $HUGE_OBJECT_FLAG"
fi
AC_SUBST(TRIE_CFLAGS)