Apache::BuildSection: User Contributed Perl Documentation (3)Updated: 2004-08-20 |
Apache::BuildSection: User Contributed Perl Documentation (3)Updated: 2004-08-20 |
use Apache::Build (); my $build = Apache::Build->new;
# rebuild mod_perl with build opts from the previous build % cd modperl-2.0 % perl -MApache::Build -e rebuild
Since mod_perl remembers what build options were used to build it, you can use this knowledge to rebuild it using the same options. Simply chdir to the mod_perl source directory and run:
% cd modperl-2.0 % perl -MApache::Build -e rebuild
If you want to rebuild not yet installed, but already built mod_perl, run from its root directory:
% perl -Ilib -MApache::Build -e rebuild
my $build = Apache::Build->new;
my $dir = $build->dir; -d $dir or die "can't stat $dir $!\n";
Example:
for my $dir ($build->find) {
my $yn = prompt "Configure with $dir ?", "y";
...
}
Example:
use ExtUtils::MakeMaker;
use Apache::Build ();
WriteMakefile(
'NAME' => 'Apache::Module',
'VERSION' => '0.01',
'INC' => Apache::Build->new->inc,
);
Example:
my $mmn = $build->module_magic_number;
Example:
my $v = $build->httpd_version;
Example:
use ExtUtils::MakeMaker;
use Apache::Build ();
WriteMakefile(
'NAME' => 'Apache::Module',
'VERSION' => '0.01',
'INC' => Apache::Build->new->inc,
'dynamic_lib' => {
'OTHERLDFLAGS' => Apache::Build->new->otherldflags,
},
);