diff options
author | Ulf Möller <ulf@openssl.org> | 1999-04-09 16:25:25 +0000 |
---|---|---|
committer | Ulf Möller <ulf@openssl.org> | 1999-04-09 16:25:25 +0000 |
commit | a5a47e4afbdc1cc1ec8c98f63cbc49705b8a6f4f (patch) | |
tree | 33d1c92f460daf9eac84d3dd5e59ee0d461e557d /config | |
parent | a8da89186c447932b9f5abced708330a3bff313b (diff) |
Use Perl 5 even if Perl 4 comes first in the search path.
Diffstat (limited to 'config')
-rwxr-xr-x | config | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -344,13 +344,15 @@ fi if [ ".$PERL" = . ] ; then for i in . `echo $PATH | sed 's/:/ /g'`; do if [ -f "$i/perl" ] ; then - PERL="$i/perl" - break; + if "$i/perl" -e 'exit($]<5.0)'; then + PERL="$i/perl" + break; + fi; fi; done fi -if $PERL -e 'exit($]>=5.0);' ; then +if [ ".$PERL" = . ] ; then echo "You need Perl 5." exit 1 fi |