X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=Makefile.PL;h=b04024596c0bbfdb9d4494ec19e3a2ae67ca5702;hb=refs%2Ftags%2Fv0.46;hp=05b4eb3fb0a34e47faed575a274e08d2c1efb706;hpb=d29a774d106d145036eda849ab57f42410100008;p=perl%2Fmodules%2FVariable-Magic.git diff --git a/Makefile.PL b/Makefile.PL index 05b4eb3..b040245 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -7,23 +7,12 @@ use ExtUtils::MakeMaker; BEGIN { eval { require Config }; die 'OS unsupported' if $@; - Config->import(qw/%Config/); + Config->import(qw<%Config>); } my @DEFINES; my %macro; -my $pl = $Config{perl_patchlevel}; -print "Checking perl patchlevel... "; -if (defined $pl && length $pl) { - $pl = int $pl; - push @DEFINES, '-DVMG_PERL_PATCHLEVEL=' . $pl; - print $pl, "\n"; -} else { - $pl = undef; - print "none\n"; -} - my $as_perl = eval { require ActivePerl; defined &ActivePerl::BUILD ? ActivePerl::BUILD() : undef @@ -40,15 +29,15 @@ print $is_as_822 ? "yes\n" : "no\n"; my $is_gcc_34 = 0; print "Checking if this is gcc 3.4 on Windows trying to link against an import library... "; if ($^O eq 'MSWin32' and not grep /^LD[A-Z]*=/, @ARGV) { - my ($libperl, $gccversion) = map $_ || '', @Config{qw/libperl gccversion/}; + my ($libperl, $gccversion) = map $_ || '', @Config{qw}; if ($gccversion =~ /^3\.4\.[0-9]+/ and $libperl =~ s/\.lib$//) { $is_gcc_34 = 1; - my ($lddlflags, $ldflags) = @Config{qw/lddlflags ldflags/}; + my ($lddlflags, $ldflags) = @Config{qw}; $_ ||= '', s/-L(?:".*?"|\S+)//g for $lddlflags, $ldflags; $libperl = "-l$libperl"; my $libdirs = join ' ', map { s/(?}; $macro{LDDLFLAGS} = "$lddlflags $libdirs $libperl"; $macro{LDFLAGS} = "$ldflags $libdirs $libperl"; $macro{PERL_ARCHIVE} = '',