Change 25662 by [EMAIL PROTECTED] on 2005/09/29 18:04:29
With XSLoader on CPAN now, add XSLoader as a prerequisite in Makefile.PL
if the compatible version is less than 5.006 (the first version with
XSLoader).
Affected files ...
... //depot/perl/utils/h2xs.PL#97 edit
Differences ...
==== //depot/perl/utils/h2xs.PL#97 (text) ====
Index: perl/utils/h2xs.PL
--- perl/utils/h2xs.PL#96~25388~ Mon Sep 12 07:32:29 2005
+++ perl/utils/h2xs.PL Thu Sep 29 11:04:29 2005
@@ -1883,15 +1883,16 @@
warn "Writing $ext$modpname/Makefile.PL\n";
open(PL, ">Makefile.PL") || die "Can't create $ext$modpname/Makefile.PL: $!\n";
-my $prereq_pm;
+my $prereq_pm = '';
if ( $compat_version < 5.00702 and $new_test )
{
- $prereq_pm = q%'Test::More' => 0%;
+ $prereq_pm .= q%'Test::More' => 0, %;
}
-else
+
+if ( $compat_version < 5.00600 and !$opt_X)
{
- $prereq_pm = '';
+ $prereq_pm .= q%'XSLoader' => 0, %;
}
print PL <<"END";
End of Patch.