From: Amos Jeffries Date: Wed, 26 Aug 2015 10:05:35 +0000 (-0700) Subject: Remove GCC 2.x and 3.x detection and support X-Git-Tag: SQUID_4_0_1~96 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=179d18e726757c0de0f2161dcc1dcb1463925c7a;p=thirdparty%2Fsquid.git Remove GCC 2.x and 3.x detection and support C++11 support is now required and the detection for that should error far more nicely for these old compilers than these $GCCVER hacks --- diff --git a/configure.ac b/configure.ac index 8d14695019..d0c55fed2b 100644 --- a/configure.ac +++ b/configure.ac @@ -296,21 +296,6 @@ case $withval in ]) AC_SUBST(DEFAULT_SWAP_DIR) -if test "$squid_cv_compiler" = "gcc"; then - GCCVER=`$CC -v 2>&1 | awk '$2 == "version" {print $3}'` - GCCVER2=`echo $GCCVER | awk '{print $1 * 100}'` - case "$host" in - i386-*-freebsd*) - if test $GCCVER2 -lt 300 ; then - AC_MSG_FAILURE([GCC $GCCVER causes a coredump on $host. - Please use a more recent GCC version]) - fi - ;; - esac - unset GCCVER - unset GCCVER2 -fi - dnl Set Default CFLAGS if test "x$PRESET_CFLAGS" = "x"; then if test "$squid_cv_compiler" = "gcc"; then @@ -3267,18 +3252,6 @@ assert(myBar != NULL); ;; esac -# Remove optimization for GCC 2.95.[123] -# gcc -O[2] on *BSD and Linux (x86) causes pointers to magically become NULL -if test "x$GCC" = "xyes"; then - GCCVER=`$CC -v 2>&1 | awk '$2 == "version" {print $3}'` - case "$GCCVER" in - [2.95.[123]]) - AC_MSG_NOTICE([Removing -O for gcc on $host with GCC $GCCVER]) - CFLAGS="`echo $CFLAGS | sed -e 's/-O[[0-9]]*//'`" - ;; - esac -fi - dnl This has to be before AC_CHECK_FUNCS # Disable poll() on certain platforms. Override by setting ac_cv_func_poll # when running configure.