diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2002-09-09 03:07:46 +0300 |
---|---|---|
committer | hv <hv@crypt.org> | 2002-09-09 09:23:53 +0000 |
commit | 224cb7cbee6b71a946a9d1403e4050c1be7bab4c (patch) | |
tree | a503602c015b74da668d1dc41513d27b53991191 /Configure | |
parent | 702fa71c711a708b512dca4870841461f8f582ee (diff) | |
download | perl-224cb7cbee6b71a946a9d1403e4050c1be7bab4c.tar.gz |
Configure locincpth vs Jaguar gcc 3
Message-ID: <20020908210746.GB4136@lyta.hut.fi>
p4raw-id: //depot/perl@17879
Diffstat (limited to 'Configure')
-rwxr-xr-x | Configure | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -3853,14 +3853,17 @@ case "$ccname" in '') ccname="$cc" ;; esac -# gcc 3.1 complains about adding -Idirectories that it already knows about, +# gcc 3.* complain about adding -Idirectories that they already know about, # so we will take those off from locincpth. case "$gccversion" in 3*) echo "main(){}">try.c - for incdir in `$cc -v -c try.c 2>&1 | \ - sed '1,/^#include <\.\.\.>/d;/^End of search list/,$d;s/^ //'` ; do - locincpth=`echo $locincpth | sed s!$incdir!!` + for incdir in $locincpth; do + warn=`$cc $ccflags -I$incdir -c try.c 2>&1 | \ + grep '^cc1: warning: changing search order '` + if test "X$warn" != X; then + locincpth=`echo " $locincpth " | sed "s! $incdir ! !"` + fi done $rm -f try try.* esac |