Check for the executable $openssl, not just the file.

Part of PR: 75
This commit is contained in:
Richard Levitte 2002-06-13 19:59:26 +00:00
parent 2028c2800a
commit ff3dd00370

View File

@ -17,10 +17,10 @@ if(defined $ENV{OPENSSL}) {
$ENV{PATH} .= ":$dir/bin";
if(! -f $openssl) {
if(! -x $openssl) {
my $found = 0;
foreach (split /:/, $ENV{PATH}) {
if(-f "$_/$openssl") {
if(-x "$_/$openssl") {
$found = 1;
last;
}