Actually its slightly more complicated then that.

PERL_OPTS come after perl but before ARGS.
ExtUtils::MakeMaker ARGS come after Makefile.PL

I'm going to all this trouble because I installed my mp2 libs outside of my 
perl lib tree.
Also, I'm trying to install libapreq2 outside of mp2 and perl lib trees.

Making my configure line now:

./configure \
 --with-perl-opts=-I$PREFIX/mp-2.0.2-dev/lib \
 --with-mm-opts="PREFIX=$PREFIX/libapreq-2.07-dev" \
 --enable-perl-glue \
 --enable-maintainer-mode \
 --with-perl=$PREFIX/perl-5.8.7/bin/perl \
 --with-apache2-apxs=$PREFIX/httpd-2.3.0/bin/apxs \
 --with-expat=/usr/local

New Patch follows:

[EMAIL PROTECTED] /home/pgollucci/dev/repos/asf/httpd/apreq/trunk rv=0 190 >svn 
diff
Index: glue/Makefile.am
===================================================================
--- glue/Makefile.am    (revision 279712)
+++ 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 279712)
+++ acinclude.m4        (working copy)
@@ -28,8 +28,11 @@
                 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=""])
@@ -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