Commit a472cd93 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Anything that looks like gcc 5.0 or more is no longer treated as gcc. I hope

this will make us exclude icc 8.0 etc.
parent 8794cb28
Loading
Loading
Loading
Loading
+28 −25
Original line number Diff line number Diff line
@@ -1199,6 +1199,9 @@ AC_HELP_STRING([--disable-debug],[Disable debug options]),
       gccnum=`(expr $num1 "*" 100 + $num2) 2>/dev/null`
       AC_MSG_RESULT($gccver)

       if test "$gccnum" -lt "500"; then
         dnl we only like gcc less than 5.0, since if it is above that it is
         dnl likely just a compiler that looks like gcc (like icc 8.0)!
         dnl here's the standard setup
         WARN="-W -Wall -Wwrite-strings -pedantic -Wno-long-long -Wno-format-nonliteral -Wundef -Wpointer-arith -Wnested-externs -Wcast-align -Winline -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wsign-compare"
         if test "$gccnum" -ge "296"; then
@@ -1211,7 +1214,6 @@ AC_HELP_STRING([--disable-debug],[Disable debug options]),
             dnl gcc 3.3 and later
             WARN="$WARN -Wendif-labels"
           fi
       
         fi

         NEWFLAGS=""
@@ -1226,6 +1228,7 @@ AC_HELP_STRING([--disable-debug],[Disable debug options]),
         done

         CFLAGS="$CFLAGS $WARN $NEWFLAGS"
       fi

    fi
    dnl strip off optimizer flags