diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2007-06-01 07:31:03 +0300 |
---|---|---|
committer | H.Merijn Brand <h.m.brand@xs4all.nl> | 2007-06-01 06:39:32 +0000 |
commit | 4dd8f9b3e73c1cf5316433b1f968dcf927e1f499 (patch) | |
tree | 7834a5552eda26dbb617069098dd6a47bfd8dc34 /Configure | |
parent | b9c1e3f192d182f7ea3280581f122b80912fc7d2 (diff) | |
download | perl-4dd8f9b3e73c1cf5316433b1f968dcf927e1f499.tar.gz |
Configure: O_NONBLOCK test uses fork() and pipe()
Message-Id: <200706010131.l511V3kv417484@kosh.hut.fi>
p4raw-id: //depot/perl@31323
Diffstat (limited to 'Configure')
-rwxr-xr-x | Configure | 28 |
1 files changed, 18 insertions, 10 deletions
@@ -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$$ <<EOF @@ -12160,6 +12160,14 @@ esac set i_fcntl eval $setvar +: see if fork exists +set fork d_fork +eval $inlibc + +: see if pipe exists +set pipe d_pipe +eval $inlibc + : check for non-blocking I/O stuff case "$h_sysfile" in true) echo "#include <sys/file.h>" > 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 <<EOCP #include <errno.h> @@ -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 |