$NetBSD: patch-ab,v 1.5 2008/09/02 00:58:07 grant Exp $

--- configure.orig	2008-05-08 08:59:26.000000000 +1000
+++ configure
@@ -22585,11 +22585,11 @@ else
 echo $ECHO_N "checking if openssl is wanted... $ECHO_C" >&6
 
 # Check whether --with-openssl or --without-openssl was given.
-if test "${with_openssl+set}" = set; then
+if test "${with_openssl+set}" = set -a x${with_openssl} != xno; then
   withval="$with_openssl"
    echo "$as_me:$LINENO: result: yes" >&5
 echo "${ECHO_T}yes" >&6
-    for dir in $withval /usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr; do
+    for dir in $withval; do
         ssldir="$dir"
         if test -f "$dir/include/openssl/ssl.h"; then
             found_ssl="yes"
