comparison auto/lib/perl/conf @ 872:1c4a5b3f9110

Axe several perl interpreter instances: they may be useful in currently unsupported threaded environment, but now they complicate code: *) perl_clone() requires at least duplicating nginx stash; *) the multiplicity requires to re-evalute all precompiled subroutines and nginx stash in new interpreter context.
author Igor Sysoev <igor@sysoev.ru>
date Sun, 26 Nov 2006 14:35:27 +0000
parents 7e24168b0853
children 9581fba9ea12
comparison
equal deleted inserted replaced
871:a980f66c04fb 872:1c4a5b3f9110
34 if $NGX_PERL -V:usemultiplicity | grep define > /dev/null; then 34 if $NGX_PERL -V:usemultiplicity | grep define > /dev/null; then
35 have=NGX_HAVE_PERL_MULTIPLICITY . auto/have 35 have=NGX_HAVE_PERL_MULTIPLICITY . auto/have
36 echo " + perl interpreter multiplicity found" 36 echo " + perl interpreter multiplicity found"
37 fi 37 fi
38 38
39 if $NGX_PERL -V:useithreads | grep define > /dev/null; then 39 if $NGX_PERL -V:useithreads | grep undef > /dev/null; then
40 have=NGX_HAVE_PERL_CLONE . auto/have
41 echo " + perl_clone() found"
42
43 else
44 # FreeBSD port wants to link with -pthread non-threaded perl 40 # FreeBSD port wants to link with -pthread non-threaded perl
45 ngx_perl_ldopts=`echo $ngx_perl_ldopts | sed 's/ -pthread//'` 41 ngx_perl_ldopts=`echo $ngx_perl_ldopts | sed 's/ -pthread//'`
46 fi 42 fi
47 43
48 CORE_LINK="$CORE_LINK $ngx_perl_ldopts" 44 CORE_LINK="$CORE_LINK $ngx_perl_ldopts"