summaryrefslogtreecommitdiff
path: root/Configure
diff options
context:
space:
mode:
authorMalcolm Beattie <mbeattie@sable.ox.ac.uk>1997-12-10 13:43:32 +0000
committerMalcolm Beattie <mbeattie@sable.ox.ac.uk>1997-12-10 13:43:32 +0000
commitc6ee37c52f2ca9e544af4866d4237b0404bcddb7 (patch)
treed695d1ef9ec0dfb5446fa9908cbe5b8d130af4b5 /Configure
parent02128f118302118e0f22c5a676a0b7040065fcd1 (diff)
downloadperl-c6ee37c52f2ca9e544af4866d4237b0404bcddb7.tar.gz
Fix perl_os_thread typedef for pthreads. Tweak SvTAINT so that
sv_setfoo functions go back to not needing dTHR. Fix Configure to check for already-existing -thread on archname and to check better for d_pthread_created_joinable. p4raw-id: //depot/perl@356
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure29
1 files changed, 15 insertions, 14 deletions
diff --git a/Configure b/Configure
index 36cb6d4cab..934958b4ce 100755
--- a/Configure
+++ b/Configure
@@ -2099,8 +2099,15 @@ esac
rp='What is your architecture name'
. ./myread
case "$usethreads" in
-$define) archname="$ans-thread"
- echo "Threads selected... architecture name is now $archname." >&4
+$define) echo "Threads selected." >&4
+ case "$ans" in
+ *-thread) echo "...and architecture name already ends in -thread." >&4
+ archname="$ans"
+ ;;
+ *) archname="$ans-thread"
+ echo "...setting architecture name to $archname." >&4
+ ;;
+ esac
;;
*) archname="$ans" ;;
esac
@@ -9913,12 +9920,6 @@ if test "X$usethreads" != X; then
if test "X$d_pthreads_created_joinable" = X; then
echo >&4 "Checking whether pthreads are created joinable."
$cat >try.c <<EOCP
-/* Note: this program returns 1 if detached, 0 if not.
- * Easier this way because the PTHREAD_CREATE_DETACHED is more
- * portable than the obsolete PTHREAD_CREATE_UNDETACHED.
- * Testing for joinable (aka undetached) as opposed to detached
- * is then again logically more sensible because that's
- * the more modern default state in the pthreads implementations. */
#include <pthread.h>
#include <stdio.h>
int main() {
@@ -9935,21 +9936,21 @@ EOCP
: Compile and link separately because the used cc might not be
: able to link the right CRT and libs for pthreading.
if $cc $ccflags -c try.c >/dev/null 2>&1 &&
- $ld $lddlflags $ldflags -o try try$obj_ext $libs >/dev/null 2>&1; then
+ $ld $ldflags -o try try$obj_ext $libs >/dev/null 2>&1; then
yyy=`./try`
else
echo "(I can't execute the test program--assuming they are.)"
yyy=joinable
fi
case "$yyy" in
- joinable)
+ detached)
+ val="$undef"
+ echo "Nope, they aren't."
+ ;;
+ *)
val="$define"
echo "Yup, they are."
;;
- *)
- val="$undef"
- echo "Nope, they aren't."
- ;;
esac
set d_pthreads_created_joinable
eval $setvar