Randy Kobes wrote:
On Tue, 29 Jul 2003, Stas Bekman wrote:


Randy Kobes wrote:

On Tue, 29 Jul 2003, Stas Bekman wrote:


Randy Kobes wrote:


I've been looking at getting apxs for Win32 working on Apache 2.

where would it go? Apache::Test? mod_perl?

If there's consensus, I think the better place would be Apache-Test, as it can be used outside of mod_perl. If so, I'll clean things up a bit, and put up a new version; I could also generate something for Apache-Test's Makefile.PL to have it configure and install this on Win32, if wanted.

+1


Here's a diff to do this for the top-level Apache-Test
Makefile.PL:
============================================================
Index: Makefile.PL
===================================================================
RCS file: /home/cvs/httpd-test/perl-framework/Apache-Test/Makefile.PL,v
retrieving revision 1.13
diff -u -r1.13 Makefile.PL
--- Makefile.PL 18 Jun 2003 08:55:57 -0000      1.13
+++ Makefile.PL 30 Jul 2003 04:56:53 -0000
@@ -10,6 +10,8 @@
 # Makefile.PL, top-level sets this env var
 use constant TOP_LEVEL => !exists $ENV{MOD_PERL_2_BUILD};

+use constant WIN32 => $^O =~ /Win32/;
+
 use ExtUtils::MakeMaker;
 use Symbol;

@@ -26,6 +28,8 @@
     Apache::TestMM::generate_script($_);
 }

+ask_about_apxs() if WIN32;
+
 set_version();

 # if built with mod_perl 2.0, it top-level Makefile.PL already
@@ -97,4 +101,24 @@

         $string;
     };
+}
+
+sub ask_about_apxs {
+    print <<'END';
+
+I see you're on Win32. If you use Apache 2, I can install a
+version of apxs, which is a tool that automates many of the
+steps to build Apache C modules, if you like. Just answer 'yes'
+at the prompt below.
+
+END
+    my $ans = prompt('Install apxs?', 'yes');
+    if ($ans =~ /^y/i) {
+        my $file =  'apxs_win32_PL';
+        unless (my $return = do $file) {
+            warn "Couldn't parse $file: $@"  if $@;
+            warn "Couldn't do $file: $!"     unless defined $return;
+            warn "Couldn't run $file"        unless $return;
+        }
+    }
 }

will this work when Apache::Test is installed as a part of the mod_perl-2.0 distro?


====================================================================
This requires two files at the same level as Makefile.PL -
apxs_win32 and apxs_win32_PL, which I've put up under
http://theoryx5.uwinnipeg.ca/. apxs_win32 isn't the cleanest
script ever been written :); part of the reason is that
I tried to make minimal changes, in case it was desired to
merge the changes at some point into the unix version.

Where apxs_win32_PL is coming from? Is it possible to somehow integrate it within httpd-2.0?



__________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com



Reply via email to