useithreads needs usemultiplicity
authorGurusamy Sarathy <gsar@cpan.org>
Mon, 10 Jan 2000 04:38:45 +0000 (04:38 +0000)
committerGurusamy Sarathy <gsar@cpan.org>
Mon, 10 Jan 2000 04:38:45 +0000 (04:38 +0000)
p4raw-id: //depot/perl@4778

Configure
perl.h

index c9e4e0d..e2751bc 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -2678,7 +2678,7 @@ case "$usethreads" in
 $define)
        $cat <<EOM
 
-As of 5.5.64, Perl has two different internal threading implementations,
+As of 5.5.640, Perl has two different internal threading implementations,
 the 5.005 version (5005threads) and an interpreter-based version
 (ithreads) that has one interpreter per thread.  Both are very 
 experimental.  This arrangement exists to help developers work out
@@ -2741,24 +2741,31 @@ EOM
        ;;
 esac
 
-cat <<EOM
+case "$useithreads" in
+$define|true|[yY]*)
+       echo "Interpreter threads requested, multiple interpreter support enabled..." >&4
+       val="$define" ;;
+*)
+       cat <<EOM
 
-Perl can be built so that multiple Perl interpreters can coexist
-within the same Perl executable.  To do so, Configure must be run with
--Dusemultiplicity.
+       Perl can be built so that multiple Perl interpreters can coexist
+       within the same Perl executable.  To do so, Configure must be run with
+       -Dusemultiplicity.
 
-Normally you do not need this and you should answer no.
+       Normally you do not need this and you should answer no.
 
 EOM
-case "$usemultiplicity" in
-$define|true|[yY]*)    dflt='y';;
-*) dflt='n';;
-esac
-rp='Build Perl for multiplicity?'
-. ./myread
-case "$ans" in
-y|Y)   val="$define" ;;     
-*)      val="$undef" ;;
+       case "$usemultiplicity" in
+       $define|true|[yY]*)     dflt='y';;
+       *) dflt='n';;
+       esac
+       rp='Build Perl for multiplicity?'
+       . ./myread
+       case "$ans" in
+       y|Y)    val="$define" ;;     
+       *)      val="$undef" ;;
+       esac
+       ;;
 esac
 set usemultiplicity
 eval $setvar 
diff --git a/perl.h b/perl.h
index ab150a5..ecc1ce1 100644 (file)
--- a/perl.h
+++ b/perl.h
 #  endif
 #endif
 
+#if defined(USE_ITHREADS) && !defined(MULTIPLICITY)
+#  include "error: USE_ITHREADS must be built with MULTIPLICITY"
+#endif
+
 #if defined(MULTIPLICITY)
 #  ifndef PERL_IMPLICIT_CONTEXT
 #    define PERL_IMPLICIT_CONTEXT