--- configure.orig	2002-06-12 09:31:31 UTC
+++ configure
@@ -7612,8 +7612,11 @@ if test "${with_ssl+set}" = set; then
     if test "x$withval" = "xyes"; then
       withval=$ssllib
       SSLINC=$sslinc
+      LIBS="$LIBS $withval"
+    else
+      SSLINC="-I$withval/include/openssl"
+      LIBS="$LIBS -L$withval/lib -lssl -lcrypto"
     fi
-    LIBS="$LIBS $withval"
     cat > conftest.$ac_ext <<EOF
 #line 7619 "configure"
 #include "confdefs.h"
