- AC_CHECK_LIB(ssl32, SSL_connect,,
- AC_MSG_ERROR([openssl not found: shared lib eay32 found but ssl32 not found]))
- AC_MSG_NOTICE([Enabling support for SSL via OpenSSL (shared)])
+ AC_CHECK_LIB(ssl32, SSL_connect, [
+ ssl_found=yes
+ AC_MSG_NOTICE([Enabling support for SSL via OpenSSL (shared)])
+ AC_LIBOBJ([openssl])
+ LIBS="${LIBS} -lssl32"
+ AC_DEFINE([HAVE_LIBSSL32], [1], [Define to 1 if you have the `ssl32' library (-lssl32).])
+ ],
+ AC_MSG_ERROR([openssl not found: shared lib eay32 found but ssl32 not found]))