I have more one minor change to make to this:

The perl invoking build/version_check.pl also needs the @PERL_OPTS@
to find the libraries.

The below patch encompasses everything:

Index: glue/Makefile.am
===================================================================
--- glue/Makefile.am    (revision 280240)
+++ glue/Makefile.am    (working copy)
@@ -6,7 +6,7 @@
        cd perl; @PERL@ ../../build/xsbuilder.pl run

 perl/Makefile: perl/xsbuilder perl/Makefile.PL
-       cd perl; @PERL@ Makefile.PL -apxs @APACHE2_APXS@ @PERL_OPTS@
+       cd perl; @PERL@ @PERL_OPTS@ Makefile.PL -apxs @APACHE2_APXS@ @MM_OPTS@

 perl_glue: perl/Makefile
        cd perl; $(MAKE)
Index: acinclude.m4
===================================================================
--- acinclude.m4        (revision 280240)
+++ acinclude.m4        (working copy)
@@ -28,13 +28,16 @@
                 AC_HELP_STRING([--with-apache1-apxs],[path to apache1's apxs]),
                 [APACHE1_APXS=$withval],[APACHE1_APXS=""])
         AC_ARG_WITH(perl-opts,
-                AC_HELP_STRING([--with-perl-opts],[extra MakeMaker options]),
+                AC_HELP_STRING([--with-perl-opts],[extra PERL options]),
                 [PERL_OPTS=$withval],[PERL_OPTS=""])
+        AC_ARG_WITH(mm-opts,
+                AC_HELP_STRING([--with-mm-opts], [extra ExtUtils::MakeMaker 
options]),
+                [MM_OPTS=$withval], [MM_OPTS=""])
         AC_ARG_WITH(expat,
                 AC_HELP_STRING([--with-expat],[specify expat location]),
                 [EXPAT_DIR=$withval],[EXPAT_DIR=""])

-        prereq_check="$PERL build/version_check.pl"
+        prereq_check="$PERL $PERL_OPTS build/version_check.pl"

         if test -n "$APACHE2_SRC"; then
                 # no apxs: must compile httpd from source
@@ -235,6 +238,7 @@

         AC_SUBST(PERL)
         AC_SUBST(PERL_OPTS)
+        AC_SUBST(MM_OPTS)
 ])

 dnl APR_CONFIG_NICE(filename)

--
END
------------------------------------------------------------
    What doesn't kill us can only make us stronger.
                Nothing is impossible.
                                
Philip M. Gollucci ([EMAIL PROTECTED]) 301.254.5198
Consultant / http://p6m7g8.net/Resume/
Senior Developer / Liquidity Services, Inc.
  http://www.liquidityservicesinc.com
       http://www.liquidation.com
       http://www.uksurplus.com
       http://www.govliquidation.com
       http://www.gowholesale.com

Reply via email to