[ 19109]
Subject: [PATCH 5.8.1 @19053] Time::HiRes
Message-ID: <
20030331205301.GA3687@math.berkeley.edu>
[ 19111]
A cleaner way to detect PERL_CORE, from IlyaZ.
p4raw-link: @19111 on //depot/maint-5.8/perl:
180158515bf55baba130dc335fb25e9d48016830
p4raw-link: @19109 on //depot/maint-5.8/perl:
0de7851241e3f1d50d1f426c11333d0f72bd7fcb
p4raw-id: //depot/perl@19121
p4raw-integrated: from //depot/maint-5.8/perl@19120 'copy in'
ext/Time/HiRes/HiRes.t (@18080..) ext/Time/HiRes/Makefile.PL
(@18922..)
use Config;
-my $xdefine;
+my $xdefine = '';
if (open(XDEFINE, "xdefine")) {
chomp($xdefine = <XDEFINE>);
my $LIBS;
my $XSOPT;
-unless($ENV{PERL_CORE}) { # This trick from Encode/Makefile.PL.
- $ENV{PERL_CORE} = 1 if ($^X =~ m{\bminiperl[^/\\\]>:]*$}o);
+unless($ENV{PERL_CORE}) {
+ $ENV{PERL_CORE} = 1 if grep { $_ eq 'PERL_CORE=1' } @ARGV;
}
# Perls 5.002 and 5.003 did not have File::Spec, fake what we need.