This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
With XSLoader on CPAN now, add XSLoader as a prerequisite in Makefile.PL
[perl5.git]
/
utils
/
h2xs.PL
diff --git
a/utils/h2xs.PL
b/utils/h2xs.PL
index
19452de
..
6eaa97e
100644
(file)
--- a/
utils/h2xs.PL
+++ b/
utils/h2xs.PL
@@
-1883,15
+1883,16
@@
EOP
warn "Writing $ext$modpname/Makefile.PL\n";
open(PL, ">Makefile.PL") || die "Can't create $ext$modpname/Makefile.PL: $!\n";
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 )
{
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";
}
print PL <<"END";