3 use vars qw($bootstrapping);
6 if (grep { /^--bootstrap(?:=(.*))?$/ } @ARGV) {
8 my @args = (defined $1 ? ($1) : ());
16 local::lib->import(@args);
18 push(@ARGV,$ENV{PERL_MM_OPT});
20 system($^X, '-MExtUtils::MakeMaker 6.31', '-e1');
23 system($^X, '-MCPAN 1.80', '-e1');
25 my $cpan_command = '';
27 # XXX - remove the force on EUMM once its test suite survive PERL_MM_OPT
29 if ($eumm) { # non-zero exit
30 $cpan_command .= 'force("install","ExtUtils::MakeMaker"); ';
33 $cpan_command .= 'install("CPAN"); ';
35 if(length $cpan_command) {
36 system($^X, '-MCPAN', '-e', $cpan_command);
42 use inc::Module::Install;
45 all_from 'lib/local/lib.pm';
47 requires 'ExtUtils::MakeMaker' => '6.31'; # version INSTALL_BASE was added
48 requires 'ExtUtils::CBuilder'; # this and ParseXS are needed for MB C_support
49 requires 'ExtUtils::ParseXS';
50 requires 'Module::Build' => '0.28'; # lib -> lib/perl5 change
51 requires 'CPAN' => '1.80'; # sudo support