From: Jarkko Hietaniemi Date: Mon, 31 Jan 2000 19:15:22 +0000 (+0000) Subject: Cppsym saga continues. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b10bc96c16d924a28f3bb50015955eba756bfc29;p=p5sagit%2Fp5-mst-13.2.git Cppsym saga continues. p4raw-id: //depot/cfgperl@4934 --- diff --git a/Configure b/Configure index b15faae..e8f39f9 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 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$$ < +#define I_STDLIB $i_stdlib #ifdef I_STDLIB #include #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 < 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 < Cppsym.try cat <<'EOCP' > try.c #include 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