From: Jarkko Hietaniemi Date: Tue, 20 Oct 1998 08:08:33 +0000 (+0000) Subject: Mumble about _yields() only when threaded. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f1994c67466226ad5ce4a4d81f1da5b2830797fa;p=p5sagit%2Fp5-mst-13.2.git Mumble about _yields() only when threaded. p4raw-id: //depot/cfgperl@2023 --- diff --git a/Configure b/Configure index eb68a06..1452c03 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 Wed Oct 14 17:00:29 EET DST 1998 [metaconfig 3.0 PL70] +# Generated on Tue Oct 20 11:18:44 EET DST 1998 [metaconfig 3.0 PL70] # (with additional metaconfig patches by jhi@iki.fi) cat >/tmp/c1$$ <try.c < #include @@ -10658,12 +10658,17 @@ EOP set try -DSCHED_YIELD if eval $compile; then val="$define" - echo 'sched_yield() found.' >&4 sched_yield='sched_yield()' else val="$undef" - echo 'sched_yield() NOT found.' >&4 fi +case "$usethreads" in +$define) + case "$val" in + $define) echo 'sched_yield() found.' >&4 ;; + *) echo 'sched_yield() NOT found.' >&4 ;; + esac +esac set d_sched_yield eval $setvar @@ -10685,9 +10690,13 @@ else val="$undef" fi fi -case "$val" in -$define) echo 'pthread_yield() found.' >&4 ;; -*) echo 'pthread_yield() NOT found.' >&4 ;; +case "$usethreads" in +$define) + case "$val" in + $define) echo 'pthread_yield() found.' >&4 ;; + *) echo 'pthread_yield() NOT found.' >&4 ;; + esac + ;; esac set d_pthread_yield eval $setvar