1 # Note: this file was auto-generated by Module::Build::Compat version 0.2808_01
2 # and then de-mangled by Jonathan Leto <jonathan@leto.net>
6 eval { require ExtUtils::PkgConfig };
8 print "\nI see that you are a CPANTester, you really should install ExtUtils::PkgConfig !\n"
9 if $ENV{AUTOMATED_TESTING};
11 ExtUtils::PkgConfig is currently needed to find GSL for the compilation of this module.
12 It may be bundled with Math::GSL in the future.
18 unless (eval "use Module::Build::Compat 0.02; 1" ) {
19 print "This module requires Module::Build to install itself.\n";
21 require ExtUtils::MakeMaker;
22 my $yn = ExtUtils::MakeMaker::prompt('Install Module::Build now from CPAN?', 'y');
24 unless ($yn =~ /^y/i) {
25 die " *** Cannot install without Module::Build. Exiting ...\n";
32 my $cwd = Cwd::cwd(); # Save this 'cause CPAN will chdir all over the place.
34 CPAN::Shell->install('Module::Build::Compat');
35 CPAN::Shell->expand("Module", "Module::Build::Compat")->uptodate
36 or die "Couldn't install Module::Build, giving up.\n";
38 chdir $cwd or die "Cannot chdir() back to $cwd: $!";
41 eval "use Module::Build::Compat 0.02; 1" or die $@;
43 Module::Build::Compat->run_build_pl(args => \@ARGV);
44 require MyModuleBuilder;
45 Module::Build::Compat->write_makefile(build_class => 'MyModuleBuilder');