summaryrefslogtreecommitdiff
path: root/configpm
diff options
context:
space:
mode:
authoralex <alex@alemate.ru>2010-08-25 13:38:28 +0100
committerDavid Mitchell <davem@iabyn.com>2010-08-25 14:23:11 +0100
commitb982c5de5a0d9f6f77b3776ebcade4b34d29cfc2 (patch)
treea82f69ba391c046a7505d1e5b9d2b78b67138a9b /configpm
parent94ca877552a4c313bb412c469660433935f8dc00 (diff)
downloadperl-b982c5de5a0d9f6f77b3776ebcade4b34d29cfc2.tar.gz
Config.pm: report perl path in version conflict.
When Config.pm dies with a perl/library version mismatch error, include the path of the perl executable in the error message. This helps avoid confusion during perl build when a cc wrapper written in perl is used (such as colorgcc)
Diffstat (limited to 'configpm')
-rwxr-xr-xconfigpm4
1 files changed, 2 insertions, 2 deletions
diff --git a/configpm b/configpm
index 87feab57fb..0f353093dd 100755
--- a/configpm
+++ b/configpm
@@ -215,11 +215,11 @@ sub import {
return;
}
-die "Perl lib version (%s) doesn't match executable version ($])"
+die "Perl lib version (%s) doesn't match executable '$0' version ($])"
unless $^V;
$^V eq %s
- or die "Perl lib version (%s) doesn't match executable version (" .
+ or die "Perl lib version (%s) doesn't match executable '$0' version (" .
sprintf("v%%vd",$^V) . ")";
ENDOFBEG