Jeff Trawick <[EMAIL PROTECTED]> writes:

> 3) a cool problem you'll run into after fixing the above
> 
> download a binary build
> install it
> run apxs
> ouch!
> 
> apxs doesn't pick up the environment variable needed to find libapr,
> libaprutil, libexpat, so "httpd -l" bombs...

This doesn't seem to hurt a regular build (non-binbuild).  I think it
will probably work fine for a binary build.  Before I roll yet another
binary build and install it yet again and rename my build directories
and try this out, does anyone have any concerns about the solution?

Index: support/apxs.in
===================================================================
RCS file: /home/cvs/httpd-2.0/support/apxs.in,v
retrieving revision 1.36
diff -u -r1.36 apxs.in
--- support/apxs.in     13 Mar 2002 20:48:05 -0000      1.36
+++ support/apxs.in     26 Apr 2002 19:36:15 -0000
@@ -223,6 +223,9 @@
 my $httpd = get_vars("sbindir") . "/" . get_vars("progname");
 $httpd = eval qq("$httpd");
 $httpd = eval qq("$httpd");
+my $envvars = get_vars("bindir") . "/envvars";
+$envvars = eval qq("$envvars");
+$envvars = eval qq("$envvars");
 
 #allow apxs to be run from the source tree, before installation
 if ($0 =~ m:support/apxs$:) {
@@ -234,7 +237,7 @@
        exit 1;
 }
 
-unless (grep /mod_so/, `$httpd -l`) {
+unless (grep /mod_so/, `. $envvars && $httpd -l`) {
     error("Sorry, no shared object support for Apache");
     error("available under your platform. Make sure");
     error("the Apache module mod_so is compiled into");

-- 
Jeff Trawick | [EMAIL PROTECTED]
Born in Roswell... married an alien...

Reply via email to