On Nov 08, 2001 at 11:31:39 -0800, Randal L. Schwartz wrote:
> 
>      sudo perl Makefile.PL \ 
>          APACHE_SRC=/opt/apache/1.3.22/src/apache_1.3.22/src \
>          NO_HTTPD=1 \ 
>          USE_APACI=1 \ 
>          PREP_HTTPD=1 \ 
>          EVERYTHING=1 
>      # hit return a bunch of times

That "hit return a bunch of times" has always bugged me.
It seems to me that the combination of NO_HTTPD=1,
PREP_HTTPD=1, and APACHE_SRC=??? has already answered the
three questions that it's going to ask.

Here's a little patch I wrote up for 1.25 to eliminate the
questions. It still applies to the current 1.xx cvs versions
with a bit of skew.

--- Makefile.PL.orig    Fri Mar  9 15:14:14 2001
+++ Makefile.PL Fri Mar  9 15:17:08 2001
@@ -493,6 +493,9 @@
 }
 
 }
+elsif ($NO_HTTPD && !$PREP_HTTPD && !$DO_HTTPD && $APACHE_SRC) {
+  push(@adirs,$APACHE_SRC);
+}
 
        if($PERL_EXTRA_CFLAGS) {
            $PERL_EXTRA_CFLAGS = join(" ", split(",",  $PERL_EXTRA_CFLAGS));
@@ -525,7 +528,7 @@
 
     if (-e $httpd_h) {
        unless($NO_HTTPD and not $DYNAMIC and not $PREP_HTTPD) {
-           unless($DO_HTTPD) {
+           unless($DO_HTTPD || $PREP_HTTPD && $NO_HTTPD) {
                $ans = prompt("Configure mod_perl with $adir ?", "y");
                next unless $ans =~ /^y$/i;
            }

Rick Myers                            [EMAIL PROTECTED]
----------------------------------------------------
The Feynman Problem       1) Write down the problem.
Solving Algorithm         2) Think real hard.
                          3) Write down the answer.

Reply via email to