]> git.vpit.fr Git - perl/modules/Variable-Magic.git/blobdiff - Makefile.PL
A terser way to display versions for modules used in tests
[perl/modules/Variable-Magic.git] / Makefile.PL
index 93598a12ae03c4039ae9da44604663be90be4e92..57d8b81816c4242d993eeef3a867d2180b1a4173 100644 (file)
@@ -13,17 +13,6 @@ BEGIN {
 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
@@ -37,18 +26,6 @@ if ($^V eq v5.8.8 and defined $as_perl and $as_perl >= 822) {
 }
 print $is_as_822 ? "yes\n" : "no\n";
 
-my $is_5110rel = 0;
-print "Checking if this is a released perl 5.11.0 or higher... ";
-if ($^V ge v5.11.0 and not defined $pl) {
- my $describe = $Config{git_describe};
- # An empty 'describe' is fine
- if (defined $describe and $describe !~ /^GitLive-/) {
-  $is_5110rel = 1;
-  push @DEFINES, '-DVMG_COMPAT_ARRAY_PUSH_NOLEN=0';
- }
-}
-print $is_5110rel ? "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) {