summaryrefslogtreecommitdiff
path: root/Configure
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>1999-08-10 17:18:57 +0000
committerJarkko Hietaniemi <jhi@iki.fi>1999-08-10 17:18:57 +0000
commit10a234571704a4c4c978964f3ef028b9b885cd5e (patch)
tree87b999b5e434eb4b4812a30a0ff91debe54d5af9 /Configure
parent9853a804c5ee6ba358f5279ea580f8fe915925b6 (diff)
downloadperl-10a234571704a4c4c978964f3ef028b9b885cd5e.tar.gz
AIX is different, again. Now in cc -E output.
p4raw-id: //depot/cfgperl@3952
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure10
1 files changed, 8 insertions, 2 deletions
diff --git a/Configure b/Configure
index 2d310f4ec7..60df7961d6 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 Aug 7 00:11:31 EET DST 1999 [metaconfig 3.0 PL70]
+# Generated on Tue Aug 10 20:19:08 EET DST 1999 [metaconfig 3.0 PL70]
# (with additional metaconfig patches by perlbug@perl.com)
cat >/tmp/c1$$ <<EOF
@@ -3827,7 +3827,13 @@ ABC.XYZ
EOT
cd ..
if test ! -f cppstdin; then
- echo 'cat >.$$.c; '"$cc"' -E ${1+"$@"} .$$.c; rm .$$.c' >cppstdin
+ if test "X$osname" = "Xaix" -a "X$gccversion" = X; then
+ # AIX cc -E doesn't show the absolute headerfile
+ # locations but we'll cheat by using the -M flag.
+ echo 'cat >.$$.c; rm -f .$$.u; '"$cc"' ${1+"$@"} -M -c .$$.c 2>/dev/null; test -s .$$.u && awk '"'"'$2 ~ /\.h$/ { print "# 0 \""$2"\"" }'"'"' .$$.u; rm -f .$$.o .$$.u; '"$cc"' -E ${1+"$@"} .$$.c; rm .$$.c' > cppstdin
+ else
+ echo 'cat >.$$.c; '"$cc"' -E ${1+"$@"} .$$.c; rm .$$.c' >cppstdin
+ fi
else
echo "Keeping your $hint cppstdin wrapper."
fi