From: Jarkko Hietaniemi Date: Fri, 21 May 1999 21:59:46 +0000 (+0000) Subject: fflush. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a32a45b66b48d4e07952978721dcf122197519a7;p=p5sagit%2Fp5-mst-13.2.git fflush. p4raw-id: //depot/cfgperl@3442 --- diff --git a/Configure b/Configure index eb93907..83e41da 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 Thu May 20 10:07:46 EET DST 1999 [metaconfig 3.0 PL70] +# Generated on Sat May 22 00:54:37 EET DST 1999 [metaconfig 3.0 PL70] # (with additional metaconfig patches by perlbug@perl.com) cat >/tmp/c1$$ <try.c < #$t_unistd I_UNISTD #ifdef I_UNISTD -#include +# include #endif #$d_sysconf HAS_SYSCONF #$d_stdio_stream_array HAS_STDIO_STREAM_ARRAY @@ -11053,12 +11053,16 @@ case "$fflushNULL" in '') set try -DTRY_FFLUSH_NULL $output $rm -f try.out if eval $compile; then - $cat >&4 </dev/null - if $test -s try.out -a "X$?" = X42; then + code="$?" + if $test -s try.out -a "X$code" = X42; then fflushNULL="`$cat try.out`" + else + if $test "X$code" != X42; then + $cat >&4 <&4 </dev/null - if $test -s try.out -a "X$?" = X42; then - fflushall="`$cat try.out`" + ./try$exe_ext 2>/dev/null + if $test -s try.out -a "X$?" = X42; then + fflushall="`$cat try.out`" + fi fi - fi - $rm -f core try.core core.try.* - case "$fflushall" in - x) $cat >&4 <&4 <&4 <&4 <&4 <&4 <&4 <config.h -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un- * This symbol, if defined, tells that to flush * all pending stdio output one must loop through all * the stdio file handles stored in an array and fflush them. + * Note that if fflushNULL is defined, fflushall will not + * even be probed for and will be left undefined. */ #$fflushNULL FFLUSH_NULL /**/ #$fflushall FFLUSH_ALL /**/