blob: e7446866bc27fa291836f370b24746be0d77e202 [file] [log] [blame]
sub usage {
my $script = shift;
print <<"END";
Usage: perl $script [--with-apache2=C:\Path\to\Apache2]
perl $script --help
Options:
--with-apache2=C:\Path\to\Apache2 : specify the top-level Apache2 directory
--help : print this help message
With no options specified, an attempt will be made to find a suitable
Apache2 directory.
END
exit;
}
sub check {
my $apache = shift;
die qq{No libhttpd library found under $apache/lib}
unless -e qq{$apache/lib/libhttpd.lib};
die qq{No httpd header found under $apache/include}
unless -e qq{$apache/include/httpd.h};
my $vers = qx{"$apache/bin/Apache.exe" -v};
die qq{"$apache" does not appear to be version 2.0}
unless $vers =~ m!Apache/2.0!;
return 1;
}
1;