diff options
-rwxr-xr-x | Configure | 161 | ||||
-rw-r--r-- | INSTALL | 3 |
2 files changed, 91 insertions, 73 deletions
@@ -20,7 +20,7 @@ # $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $ # -# Generated on Wed Jun 5 04:17:01 EET DST 2002 [metaconfig 3.0 PL70] +# Generated on Wed Jun 5 05:41:33 EET DST 2002 [metaconfig 3.0 PL70] # (with additional metaconfig patches by perlbug@perl.org) cat >c1$$ <<EOF @@ -3426,13 +3426,88 @@ $undef$define) . ./whoa; eval "$var=\$tu";; *) eval "$var=$val";; esac' +case "$usesocks" in +$define|true|[yY]*) dflt='y';; +*) dflt='n';; +esac +cat <<EOM + +Perl can be built to use the SOCKS proxy protocol library. To do so, +Configure must be run with -Dusesocks. If you use SOCKS you also need +to use the PerlIO abstraction layer, this will be implicitly selected. + +If this doesn't make any sense to you, just accept the default '$dflt'. +EOM +rp='Build Perl for SOCKS?' +. ./myread +case "$ans" in +y|Y) val="$define" ;; +*) val="$undef" ;; +esac +set usesocks +eval $setvar + +case "$usesocks" in +$define|true|[yY]*) useperlio="$define";; +esac + +case "$useperlio" in +$define|true|[yY]*|'') dflt='y';; +*) dflt='n';; +esac +cat <<EOM + +Previous version of $package used the standard IO mechanisms as +defined in <stdio.h>. Versions 5.003_02 and later of $package allow +alternate IO mechanisms via the PerlIO abstraction layer, but the +stdio mechanism is still available if needed. The abstraction layer +can use AT&T's sfio (if you already have sfio installed) or regular stdio. +Using PerlIO with sfio may cause problems with some extension modules. + +If this doesn't make any sense to you, just accept the default '$dflt'. +EOM +rp='Use the PerlIO abstraction layer?' +. ./myread +case "$ans" in +y|Y) + val="$define" + ;; +*) + echo "Ok, doing things the stdio way." + val="$undef" + ;; +esac +set useperlio +eval $setvar + +case "$usesocks" in +$define|true|[yY]*) + case "$useperlio" in + $define|true|[yY]*) ;; + *) cat >&4 <<EOM + +You are using the SOCKS proxy protocol library which means that you +should also use the PerlIO layer. You may be headed for trouble. + +EOM + ;; + esac + ;; +esac + + case "$usethreads" in $define|true|[yY]*) dflt='y';; *) # Catch case where user specified ithreads or 5005threads but # forgot -Dusethreads (A.D. 4/2002) case "$useithreads$use5005threads" in - *$define*) dflt='y' ;; - *) dflt='n';; + *$define*) + case "$useperlio" in + "$define") dflt='y' ;; + *) dflt='n' ;; + esac + ;; + *) dflt='n';; esac ;; esac @@ -3514,6 +3589,16 @@ EOM ;; esac +if test X"$usethreads" = "X$define" -a "X$useperlio" = "Xundef"; then + cat >&4 <<EOF +*** +*** To build with ithreads you must also use the PerlIO layer. +*** Cannot continue, aborting. +*** +EOF + exit 1 +fi + case "$d_oldpthreads" in '') : Configure tests would be welcome here. For now, assume undef. val="$undef" ;; @@ -4365,31 +4450,6 @@ case "$firstmakefile" in '') firstmakefile='makefile';; esac -case "$usesocks" in -$define|true|[yY]*) dflt='y';; -*) dflt='n';; -esac -cat <<EOM - -Perl can be built to use the SOCKS proxy protocol library. To do so, -Configure must be run with -Dusesocks. If you use SOCKS you also need -to use the PerlIO abstraction layer, this will be implicitly selected. - -If this doesn't make any sense to you, just accept the default '$dflt'. -EOM -rp='Build Perl for SOCKS?' -. ./myread -case "$ans" in -y|Y) val="$define" ;; -*) val="$undef" ;; -esac -set usesocks -eval $setvar - -case "$usesocks" in -$define|true|[yY]*) useperlio="$define";; -esac - : Looking for optional libraries echo " " echo "Checking for optional libraries..." >&4 @@ -6103,51 +6163,6 @@ EOM uselongdouble=$undef fi -case "$useperlio" in -$define|true|[yY]*|'') dflt='y';; -*) dflt='n';; -esac -cat <<EOM - -Previous version of $package used the standard IO mechanisms as -defined in <stdio.h>. Versions 5.003_02 and later of $package allow -alternate IO mechanisms via the PerlIO abstraction layer, but the -stdio mechanism is still available if needed. The abstraction layer -can use AT&T's sfio (if you already have sfio installed) or regular stdio. -Using PerlIO with sfio may cause problems with some extension modules. - -If this doesn't make any sense to you, just accept the default '$dflt'. -EOM -rp='Use the PerlIO abstraction layer?' -. ./myread -case "$ans" in -y|Y) - val="$define" - ;; -*) - echo "Ok, doing things the stdio way." - val="$undef" - ;; -esac -set useperlio -eval $setvar - -case "$usesocks" in -$define|true|[yY]*) - case "$useperlio" in - $define|true|[yY]*) ;; - *) cat >&4 <<EOM - -You are using the SOCKS proxy protocol library which means that you -should also use the PerlIO layer. You may be headed for trouble. - -EOM - ;; - esac - ;; -esac - - : determine the architecture name echo " " if xxx=`./loc arch blurfl $pth`; $test -f "$xxx"; then @@ -719,6 +719,9 @@ unmaintained. By default, Configure selects ithreads if -Dusethreads is specified. +(You need to use also the PerlIO layer, explained later, if you decide +to use ithreads, to guarantee the good interworking of threads and I/O.) + However, you can select the old 5005threads behavior sh Configure -Dusethreads -Duse5005threads |