From: Jarkko Hietaniemi Date: Fri, 1 Jun 2007 04:31:03 +0000 (+0300) Subject: Configure: O_NONBLOCK test uses fork() and pipe() X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4dd8f9b3e73c1cf5316433b1f968dcf927e1f499;p=p5sagit%2Fp5-mst-13.2.git Configure: O_NONBLOCK test uses fork() and pipe() Message-Id: <200706010131.l511V3kv417484@kosh.hut.fi> p4raw-id: //depot/perl@31323 --- diff --git a/Configure b/Configure index bee57d9..dc7a7bf 100755 --- a/Configure +++ b/Configure @@ -26,7 +26,7 @@ # $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $ # -# Generated on Wed May 16 19:31:47 CEST 2007 [metaconfig 3.0 PL70] +# Generated on Fri Jun 1 08:37:13 CEST 2007 [metaconfig 3.0 PL70] # (with additional metaconfig patches by perlbug@perl.org) cat >c1$$ <" > head.c;; @@ -12220,6 +12228,8 @@ echo " " echo "Let's see what value errno gets from read() on a $o_nonblock file..." >&4 case "$eagain" in '') + case "$d_fork:$d_pipe" in + define:define) $cat head.c > try.c $cat >>try.c < @@ -12352,6 +12362,12 @@ EOCP echo "I can't compile the test program--assuming errno EAGAIN will do." eagain=EAGAIN fi + ;; + *) echo "Can't figure out how to test this--assuming errno EAGAIN will do." + eagain=EAGAIN + val="$define" + ;; + esac set d_eofnblk eval $setvar ;; @@ -12836,10 +12852,6 @@ echo " " set d_flockproto flock $i_sysfile sys/file.h eval $hasproto -: see if fork exists -set fork d_fork -eval $inlibc - : see if fp_class exists set fp_class d_fp_class eval $inlibc @@ -14605,7 +14617,7 @@ EOCP echo "Yes, it does ($foo)" >&4 d_libm_lib_version="$define" else - echo "No, it does not (probably harmless)\n" >&4 + echo "No, it does not (probably harmless)" >&4 fi $rm_try ;; @@ -15539,10 +15551,6 @@ fi set pause d_pause eval $inlibc -: see if pipe exists -set pipe d_pipe -eval $inlibc - : see if poll exists set poll d_poll eval $inlibc