--- configure.old	2007-01-25 14:23:50.000000000 -0500
+++ configure	2007-01-25 14:25:56.000000000 -0500
@@ -2846,7 +2846,7 @@
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lssl  $LIBS"
+LIBS="-lssl -lcrypto $LIBS"
 cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF
@@ -2909,7 +2909,7 @@
 #define HAVE_LIBSSL 1
 _ACEOF
 
-  LIBS="-lssl $LIBS"
+  LIBS="-lssl -lcrypto $LIBS"
 
 else
   { { echo "$as_me:$LINENO: error: error, OpenSSL required" >&5
