summaryrefslogtreecommitdiff
path: root/Configure
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-09-09 03:07:46 +0300
committerhv <hv@crypt.org>2002-09-09 09:23:53 +0000
commit224cb7cbee6b71a946a9d1403e4050c1be7bab4c (patch)
treea503602c015b74da668d1dc41513d27b53991191 /Configure
parent702fa71c711a708b512dca4870841461f8f582ee (diff)
downloadperl-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-xConfigure11
1 files changed, 7 insertions, 4 deletions
diff --git a/Configure b/Configure
index 00fcdd596e..19f71f7240 100755
--- a/Configure
+++ b/Configure
@@ -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