Mercurial > vim
comparison src/configure.in @ 804:db73a88f4c2d
updated for version 7.0b01
author | vimboss |
---|---|
date | Sat, 25 Mar 2006 21:55:52 +0000 |
parents | 95dac6af3b3a |
children | 4f1b94b51e99 |
comparison
equal
deleted
inserted
replaced
803:dc38b8b94a55 | 804:db73a88f4c2d |
---|---|
27 if test -z "$CFLAGS"; then | 27 if test -z "$CFLAGS"; then |
28 CFLAGS="-O" | 28 CFLAGS="-O" |
29 test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall" | 29 test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall" |
30 fi | 30 fi |
31 if test "$GCC" = yes; then | 31 if test "$GCC" = yes; then |
32 gccversion=`"$CC" --version | sed -e '2,$d;s/^[[^0-9]]*\(darwin.[[^0-9]]*\)*\([[0-9]]\.[[0-9.]]*\).*$/\2/g'` | 32 gccversion=`"$CC" --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[[^0-9]]*\([[0-9]]\.[[0-9.]]*\).*$/\1/g'` |
33 dnl version 4.0.1 was reported to cause trouble on Macintosh by Marcin Dalecki | 33 dnl version 4.0.1 was reported to cause trouble on Macintosh by Marcin Dalecki |
34 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then | 34 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then |
35 echo 'GCC [[34]].0.[[12]] has a bug in the optimizer, disabling "-O#"' | 35 echo 'GCC [[34]].0.[[12]] has a bug in the optimizer, disabling "-O#"' |
36 CFLAGS=`echo "$CFLAGS" | sed 's/-O[[23456789]]/-O/'` | 36 CFLAGS=`echo "$CFLAGS" | sed 's/-O[[23456789]]/-O/'` |
37 else | 37 else |
2832 dnl Mac gcc returns "powerpc-apple-darwin8-gcc-4.0.1 (GCC)...", need to allow | 2832 dnl Mac gcc returns "powerpc-apple-darwin8-gcc-4.0.1 (GCC)...", need to allow |
2833 dnl the number before the version number. | 2833 dnl the number before the version number. |
2834 AC_MSG_CHECKING(for GCC 3 or later) | 2834 AC_MSG_CHECKING(for GCC 3 or later) |
2835 DEPEND_CFLAGS_FILTER= | 2835 DEPEND_CFLAGS_FILTER= |
2836 if test "$GCC" = yes; then | 2836 if test "$GCC" = yes; then |
2837 gccmajor=`"$CC" --version | sed -e '2,$d;s/^[[^0-9]]*\(darwin.[[^0-9]]*\)*\([[1-9]]\)\.[[0-9]].*$/\2/g'` | 2837 gccmajor=`echo "$gccversion" | sed -e 's/^\([[1-9]]\)\..*$/\1/g'` |
2838 if test "$gccmajor" -gt "2"; then | 2838 if test "$gccmajor" -gt "2"; then |
2839 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'" | 2839 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'" |
2840 fi | 2840 fi |
2841 fi | 2841 fi |
2842 if test "$DEPEND_CFLAGS_FILTER" = ""; then | 2842 if test "$DEPEND_CFLAGS_FILTER" = ""; then |