This section of Makefile.PL in modperl 1.x:

if ($] < 5.005_60) {
     $USE_THREADS = (defined($Config{usethreads}) &&
                    ($Config{usethreads} eq "define"));
}
else {
     $USE_THREADS = (defined($Config{use5005threads}) &&
                    ($Config{use5005threads} eq "define"));
}

#hmm, seems the #include flip/flop isn't needed anymore
#so ignore the stuff above for now
$USE_THREADS = $ENV{PERL_USE_THREADS} || 0;

Needs to be revived at least for 5.7.3+ithreads. Currently if you try to 
build an extension, it fails, because the httpd includes aren't included 
before their definitions are used. e.g. try building Apache::Scoreboard 
with threaded bleadperl and modperl 1.x, it doesn't work. It does work 
if modperl was built with USE_THREADS=1, or manually removing the ifdef 
USE_THREADS in mod_perl.h

Something like this is needed. and removing the || 0;

elsif ($] >= 5.007003) {
     $USE_THREADS = (defined($Config{useithreads}) &&
                    ($Config{useithreads} eq "define"));
}

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to