# $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
#include <stdio.h>
+#define I_STDLIB $i_stdlib
#ifdef I_STDLIB
#include <stdlib.h>
#endif
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
./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