Mailing List Archive

cvs commit: modperl/apaci libperl.module
rse 98/06/09 06:50:55

Modified: apaci libperl.module
Log:
After fiddling around with a lot of tricks I have to came to the conclusion
that we Cannot build mod_include with Perl support (USE_PERL_SSI) when
mod_perl is compiled itself as DSO because of a lot of problems. All problems
can be solved (like linking httpd against Perl lib for mod_include, even if
mod_perl is a DSO, etc.) except for twoi cross-module calls from mod_include
to mod_perl. Such cross-module calls are the death for any DSO mechanism
(that's why I've removed those for the standard modules of Apache 1.3). I
don't know how we can replace them in mod_include. Unless we can USE_DSO=1 has
to force PERL_SSI=0. Hmmmm...

Revision Changes Path
1.3 +17 -7 modperl/apaci/libperl.module

Index: libperl.module
===================================================================
RCS file: /export/home/cvs/modperl/apaci/libperl.module,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- libperl.module 1998/06/05 10:39:45 1.2
+++ libperl.module 1998/06/09 13:50:55 1.3
@@ -50,14 +50,24 @@
my_perl_libs="`egrep '^PERL_LIBS=' $my_outfile | tail -1 | awk -F= '{ print $2 }'`"
LIBS="$LIBS $my_perl_libs"
fi
+
+ # Perl support for SSI (mod_include)
if [ ".`egrep '^PERL_SSI[ ]*=[ ]*yes' $my_outfile`" != . ]; then
- echo "$my_prefix enabling Perl support for SSI (mod_include)"
- CFLAGS="$CFLAGS -DUSE_PERL_SSI"
- my_perl_inc="`egrep '^PERL_INC=' $my_outfile | tail -1 | awk -F= '{ print $2 }'`"
- INCLUDES="$INCLUDES -I\$(SRCDIR) $my_perl_inc"
- if [ ".`egrep '^PERL_THREADS[ ]*=[ ]*yes' $my_config`" != . ]; then
- echo "$my_prefix enabling Perl Thread support"
- CFLAGS="$CFLAGS -DPERL_THREADS"
+ if [ ".$my_buildtype" = .DSO ]; then
+ echo ""
+ echo "** Error: Cannot build mod_include with Perl support (USE_PERL_SSI) **"
+ echo "** when mod_perl is compiled as DSO because of cross-module calls. **"
+ echo "** Ignoring PERL_SSI flag now. **"
+ echo ""
+ else
+ echo "$my_prefix enabling Perl support for SSI (mod_include)"
+ CFLAGS="$CFLAGS -DUSE_PERL_SSI"
+ my_perl_inc="`egrep '^PERL_INC=' $my_outfile | tail -1 | awk -F= '{ print $2 }'`"
+ INCLUDES="$INCLUDES -I\$(SRCDIR) $my_perl_inc"
+ if [ ".`egrep '^PERL_THREADS[ ]*=[ ]*yes' $my_config`" != . ]; then
+ echo "$my_prefix enabling Perl Thread support"
+ CFLAGS="$CFLAGS -DPERL_THREADS"
+ fi
fi
fi