Now that Module::Build supports PERL_MB_OPT, it can be bootstrapped
just like ExtUtils::MakeMaker is.
This is a critical change to support CPAN.pm being able to bootstrap
local::lib on old Perls. (Tested on 5.8.1)
Revision history for local::lib
+ - Bootstrap Module::Build just like ExtUtils::MakeMaker
+
1.008000
- Remove redundant prereqs now that Module::Build 0.36 is required
- Makefile.PL avoids CPAN client configuration when not required
system($^X, '-MExtUtils::Install 1.43', '-e1');
my $eui = $? >> 8;
+ system($^X, '-MModule::Build 0.36', '-e1');
+ my $mb = $? >> 8;
+
system($^X, '-MCPAN 1.82', '-e1');
my $cpan = $? >> 8;
my $cpan_command = '';
if ($eui) {
$cpan_command .= 'install("ExtUtils::Install"); ';
}
+ if ($mb) {
+ $cpan_command .= 'install("Module::Build"); ';
+ }
if ($cpan) {
$cpan_command .= 'force("install","CPAN"); ';
}