Fix MANIFEST and make distribution tests pass
[Math-GSL.git] / Makefile.PL
blobb5350530bf3b6f0f76e8cbdff4e49fd1ef386bc4
1 # Note: this file was auto-generated by Module::Build::Compat version 0.2808_01
2 require 5.8.0;
3     
4     unless (eval "use Module::Build::Compat 0.02; 1" ) {
5       print "This module requires Module::Build to install itself.\n";
6       
7       require ExtUtils::MakeMaker;
8       my $yn = ExtUtils::MakeMaker::prompt
9         ('  Install Module::Build now from CPAN?', 'y');
10       
11       unless ($yn =~ /^y/i) {
12         die " *** Cannot install without Module::Build.  Exiting ...\n";
13       }
14       
15       require Cwd;
16       require File::Spec;
17       require CPAN;
18       
19       # Save this 'cause CPAN will chdir all over the place.
20       my $cwd = Cwd::cwd();
21       
22       CPAN::Shell->install('Module::Build::Compat');
23       CPAN::Shell->expand("Module", "Module::Build::Compat")->uptodate
24         or die "Couldn't install Module::Build, giving up.\n";
25       
26       chdir $cwd or die "Cannot chdir() back to $cwd: $!";
27     }
28     eval "use Module::Build::Compat 0.02; 1" or die $@;
29     use lib 'inc';
30     Module::Build::Compat->run_build_pl(args => \@ARGV);
31     require GSLBuilder;
32     Module::Build::Compat->write_makefile(build_class => 'GSLBuilder');