Cppsym saga continues.
authorJarkko Hietaniemi <jhi@iki.fi>
Mon, 31 Jan 2000 19:15:22 +0000 (19:15 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Mon, 31 Jan 2000 19:15:22 +0000 (19:15 +0000)
p4raw-id: //depot/cfgperl@4934

Configure

index b15faae..e8f39f9 100755 (executable)
--- 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 Mon Jan 31 08:35:08 EET 2000 [metaconfig 3.0 PL70]
+# Generated on Mon Jan 31 21:17:50 EET 2000 [metaconfig 3.0 PL70]
 # (with additional metaconfig patches by perlbug@perl.com)
 
 cat >/tmp/c1$$ <<EOF
@@ -7206,6 +7206,7 @@ char *myname = "sprintf";
 
 #include <stdio.h>
 
+#define I_STDLIB $i_stdlib
 #ifdef I_STDLIB
 #include <stdlib.h>
 #endif
@@ -13633,7 +13634,6 @@ eval $inhdr
 set poll.h i_poll
 eval $inhdr
 
-: get C preprocessor symbols handy
 echo " "
 $echo "Guessing which symbols your C compiler and preprocessor define..." >&4 
 $cat <<'EOSH' > Cppsym.know
@@ -13703,19 +13703,42 @@ EOSH
 ./tr '[a-z]' '[A-Z]' < Cppsym.know > Cppsym.a
 ./tr '[A-Z]' '[a-z]' < Cppsym.know > Cppsym.b
 $cat Cppsym.a Cppsym.b | $tr ' ' $trnl | sort | uniq > Cppsym.know
+$rm -f Cppsym.a Cppsym.b
+cat <<EOSH > Cppsym
+$startsh
+if $test \$# -gt 0; then
+ echo \$* | $tr " " "$trnl" | ./Cppsym.try > Cppsym.got
+else
+  $tr " " "$trnl" | ./Cppsym.try > Cppsym.got
+fi
+$test -s Cppsym.got && exit 0
+exit 1
+EOSH
+chmod +x Cppsym
+$eunicefix Cppsym
+cat <<EOSH > Cppsym.try
 cat <<'EOCP' > try.c
 #include <stdio.h>
 int main() {
 EOCP
-$awk 'length($1) > 0 {
+$awk \\
+EOSH
+cat <<'EOSH' >> Cppsym.try
+'length($1) > 0 {
     printf "#ifdef %s\nprintf(\"%s\\n\");\n#endif\n", $1, $1
     printf "#ifdef _%s\nprintf(\"_%s\\n\");\n#endif\n", $1, $1
     printf "#ifdef __%s\nprintf(\"__%s\\n\");\n#endif\n", $1, $1
     printf "#ifdef __%s__\nprintf(\"__%s__\\n\");\n#endif\n", $1, $1 }' \
-       Cppsym.know >> try.c
+        >> try.c
 echo '}' >> try.c
-       set try
-       eval $compile_ok && ./try$exe_ext > Cppsym.true
+EOSH
+cat <<'EOSH' >> Cppsym.try
+set try
+eval $compile_ok && ./try$exe_ext
+EOSH
+chmod +x Cppsym.try
+$eunicefix Cppsym.try
+./Cppsym < Cppsym.know > Cppsym.true
 : now check the C compiler for additional symbols
 postprocess_cc_v=''
 case "$osname" in