From: Gurusamy Sarathy Date: Tue, 28 Dec 1999 02:38:44 +0000 (+0000) Subject: better variant of change#4644 (from Andy Dougherty) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6764938d2d6f3ec10fa11fdf44e5fa19314373a4;p=p5sagit%2Fp5-mst-13.2.git better variant of change#4644 (from Andy Dougherty) p4raw-link: @4644 on //depot/perl: 53d4e464026d47e82a58aab9b922fdc92a91a7f3 p4raw-id: //depot/perl@4715 --- diff --git a/Configure b/Configure index f20ba17..e71aefc 100755 --- a/Configure +++ b/Configure @@ -12857,13 +12857,12 @@ esac : Remove SIGSTKSIZE used by Linux. : Remove SIGSTKSZ used by Posix. : Remove SIGTYP void lines used by OS2. +: Some cpps, like os390, dont give the file name anywhere if [ "X$fieldn" = X ]; then - xxx=`echo '#include ' | - $cppstdin $cppminus $cppflags 2>/dev/null | - $grep '^[ ]*#.*include' | - $sed 's!"!!g' | $sort | $uniq` + : Just make some guesses. We check them later. + xxx='/usr/include/signal.h /usr/include/sys/signal.h' else - xxx=`echo '#include ' | + xxx=`echo '#include ' | $cppstdin $cppminus $cppflags 2>/dev/null | $grep '^[ ]*#.*include' | $awk "{print \\$$fieldn}" | $sed 's!"!!g' | $sort | $uniq` @@ -12887,10 +12886,12 @@ $1 == "#" && $2 ~ /^define$/ && $3 ~ /^SIG[A-Z0-9]*$/ && $3 !~ /SIGARRAYSIZE/ && print substr($3, 4, 20) }' $xxxfiles` : Append some common names just in case the awk scan failed. -xxx="$xxx ABRT ALRM BUS CHLD CLD CONT DIL EMT FPE HUP ILL INT IO IOT KILL" -xxx="$xxx LOST PHONE PIPE POLL PROF PWR QUIT SEGV STKFLT STOP SYS TERM TRAP" -xxx="$xxx TSTP TTIN TTOU URG USR1 USR2 USR3 USR4 VTALRM" -xxx="$xxx WINCH WIND WINDOW XCPU XFSZ" +xxx="$xxx ABRT ALRM BUS CANCEL CHLD CLD CONT DIL EMT FPE" +xxx="$xxx FREEZE HUP ILL INT IO IOT KILL LOST LWP PHONE" +xxx="$xxx PIPE POLL PROF PWR QUIT RTMAX RTMIN SEGV STKFLT STOP" +xxx="$xxx SYS TERM THAW TRAP TSTP TTIN TTOU URG USR1 USR2" +xxx="$xxx USR3 USR4 VTALRM WAITING WINCH WIND WINDOW XCPU XFSZ" + : generate a few handy files for later $cat > signal.c <<'EOCP' #include