From a3d39efa3b0ea9f1887449db744f5b77ea0b4787 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 11 Feb 2004 21:14:54 +0000 Subject: =?UTF-8?q?Andr=E9s=20Garc=EDa's=20additional=20fix=20to=20make=20?= =?UTF-8?q?the=20OpenSSL=20stuff=20work=20for=20msys/mingw?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- configure.ac | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 2cc42af37..f40533ca1 100644 --- a/configure.ac +++ b/configure.ac @@ -259,7 +259,7 @@ then AC_TRY_LINK([#include ], [gethostbyname("www.dummysite.com");], [ dnl worked! - AC_MSG_CHECKING([yes]) + AC_MSG_RESULT([yes]) HAVE_GETHOSTBYNAME="1"], [ dnl failed, restore LIBS LIBS=$my_ac_save_LIBS @@ -692,6 +692,20 @@ else dnl This is only reasonable to do if crypto actually is there: check for dnl SSL libs NOTE: it is important to do this AFTER the crypto lib + dnl This is for Msys/Mingw + AC_MSG_CHECKING([for gdi32]) + my_ac_save_LIBS=$LIBS + LIBS="-lgdi32 $LIBS" + AC_TRY_LINK([#include + #include ], + [GdiFlush();], + [ dnl worked! + AC_MSG_RESULT([yes])], + [ dnl failed, restore LIBS + LIBS=$my_ac_save_LIBS + AC_MSG_RESULT(no)] + ) + AC_CHECK_LIB(crypto, CRYPTO_add_lock) AC_CHECK_LIB(ssl, SSL_connect) -- cgit v1.2.3