$NetBSD: patch-aa,v 1.3 2003/02/09 08:09:09 shell Exp $ --- Makefile.PL.orig Sun Feb 9 14:08:27 2003 +++ Makefile.PL @@ -13,7 +13,7 @@ my $currdir = dirname($0) || '.'; chdir($currdir) || die("can't change to $currdir: $!"); # FIND POSSIBLE SSL INSTALLATIONS -my @POSSIBLE_SSL_DIRS = qw(/usr/local/openssl /usr/local/ssl /local/ssl /opt/ssl /usr/local /local /usr); +my @POSSIBLE_SSL_DIRS = qw(%%SSLBASE%%); if($^O eq 'MSWin32') { unshift(@POSSIBLE_SSL_DIRS, 'c:/openssl'); } @@ -40,7 +40,8 @@ if (@CANDIDATE == 1) { } } -my $SSL_DIR; +my $SSL_DIR = $CANDIDATE[0][0]; +<<__SKIP__; if($opt_default && (@CANDIDATE == 1) && $CANDIDATE[0][0]) { $SSL_DIR = $CANDIDATE[0][0]; print "Using --default OpenSSL candidate found at $SSL_DIR\n"; @@ -51,9 +52,10 @@ if($opt_default && (@CANDIDATE == 1) && unless($CANDIDATE[0][0]) { print "No OpenSSL installation found, usually in $POSSIBLE_SSL_DIRS[0]\n"; } - $SSL_DIR = prompt "Which OpenSSL build path do you want to link against?", $CANDIDATE[0][0]; + $SSL_DIR = $CANDIDATE[0][0]; } } +__SKIP__ my $candidate = &Candidate($SSL_DIR); unless($candidate) {