summaryrefslogtreecommitdiff
path: root/Configure
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-05-28 13:14:02 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-05-28 13:14:02 +0000
commit76589481ae6732624713d707581bc3c71f1dde5b (patch)
tree981bfc9907c2bb1ea70ce275fea438912ad9a11b /Configure
parent38378574b9a8ff09020260d6092054ca334507b6 (diff)
downloadperl-76589481ae6732624713d707581bc3c71f1dde5b.tar.gz
gcc 3 defensiveness from H. Merijn B and Rafael.
p4raw-id: //depot/perl@16831
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure13
1 files changed, 12 insertions, 1 deletions
diff --git a/Configure b/Configure
index a1522f8a62..429e4292a7 100755
--- a/Configure
+++ b/Configure
@@ -20,7 +20,7 @@
# $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $
#
-# Generated on Sat May 25 22:51:20 EET DST 2002 [metaconfig 3.0 PL70]
+# Generated on Tue May 28 16:40:58 EET DST 2002 [metaconfig 3.0 PL70]
# (with additional metaconfig patches by perlbug@perl.org)
cat >c1$$ <<EOF
@@ -3766,6 +3766,17 @@ case "$ccname" in
'') ccname="$cc" ;;
esac
+# gcc 3.1 complains about adding -Idirectories that it already knows 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!!`
+ done
+ $rm -f try try.*
+esac
: decide how portable to be. Allow command line overrides.
case "$d_portable" in