diff options
author | Richard Levitte <levitte@openssl.org> | 2016-03-31 09:27:15 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2016-04-01 07:24:04 +0200 |
commit | 5902821d81ced5e7c5db972e4b569848500940f7 (patch) | |
tree | 870bfa988b1416a7f27f05b045521d98d7aa1388 /Configure | |
parent | 475965f2ef8eaeb67f065a7eabd3a781da76305b (diff) |
Make the use of perl more consistent
- In Configure, register the perl interpreter used to run Configure,
so that's the one being used throughout instead of something else
that Configure happens to find. This is helpful for using a perl
version that's not necessarely first in $PATH:
/opt/perl/5.22.1/bin/perl ./Configure
- Make apps/tsget a generated file, just like apps/CA.pl, so the
perl interpreter registered by Configure becomes the hashbang path
instead of a hardcoded /usr/bin/perl
Reviewed-by: Andy Polyakov <appro@openssl.org>
Diffstat (limited to 'Configure')
-rwxr-xr-x | Configure | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -875,7 +875,7 @@ $config{cross_compile_prefix} = $ENV{'CROSS_COMPILE'} if $config{cross_compile_prefix} eq ""; # Allow overriding the names of some tools. USE WITH CARE -$config{perl} = $ENV{'PERL'} || which("perl5") || which("perl") || "perl"; +$config{perl} = $ENV{'PERL'} || ($^O ne "VMS" ? $^X : "perl"); $target{cc} = $ENV{'CC'} || $target{cc} || "cc"; $target{ranlib} = $ENV{'RANLIB'} || $target{ranlib} || which("ranlib") || "true"; $target{ar} = $ENV{'AR'} || $target{ar} || "ar"; |