X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=Makefile.PL;h=d541a7c00c1f6e49cd582573d44098b1b4c6e023;hb=6a204757f3b9c5d10bc57e21cbb65c0e29688066;hp=644bb90b051aee2da50b66e2bfaa0c09c088ed1e;hpb=fa610aaeffe7ea7bcfdcac659811a64dc0fde6af;p=perl%2Fmodules%2FVariable-Magic.git diff --git a/Makefile.PL b/Makefile.PL index 644bb90..d541a7c 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -19,6 +19,7 @@ if (defined $pl && length $pl) { push @DEFINES, '-DVMG_PERL_PATCHLEVEL=' . $pl; print $pl, "\n"; } else { + $pl = undef; print "none\n"; } @@ -40,6 +41,17 @@ if ($^V eq v5.8.8) { } print $is_as ? "yes\n" : "no\n"; +my $is_5110rel = 0; +print "Checking if this is a released perl 5.11.0... "; +if ($^V eq v5.11.0 and not defined $pl) { + my $describe = $Config{git_describe}; + if (defined $describe and $describe !~ /^GitLive-/) { + $is_5110rel = 1; + push @DEFINES, '-DVMG_COMPAT_ARRAY_PUSH_NOLEN=0'; + } +} +print $is_5110rel ? "yes\n" : "no\n"; + # Threads, Windows and 5.8.x don't seem to be best friends if ($^O eq 'MSWin32' && $^V lt v5.9.0) { push @DEFINES, '-DVMG_MULTIPLICITY=0';