]> granicus.if.org Git - curl/commitdiff
fix configure's SSL-detection for msys/mingw (from Andres Garcia)
authorDaniel Stenberg <daniel@haxx.se>
Wed, 30 Mar 2005 20:55:44 +0000 (20:55 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 30 Mar 2005 20:55:44 +0000 (20:55 +0000)
CHANGES
RELEASE-NOTES
configure.ac

diff --git a/CHANGES b/CHANGES
index f189d18ffa4c743c740dc75f59ff46d0f23e751f..719230dba3c5c09dc04b59bbe5eab83a45974e50 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -7,6 +7,10 @@
                                   Changelog
 
 
+Daniel (30 March 2005)
+- Andres Garcia modified the configure script to check for libgdi32 before
+  libcrypto, to make the SSL check work fine on msys/mingw.
+
 Daniel (29 March 2005)
 - Tom Moers identified a flaw when you sent a POST with Digest authentication,
   as in the first request when curl sends a POST with Content-Length: 0, it
index b658d2202b1785602456997d0ebb5c63ed2e98c0..b92024b9ea992d5f90dce62f13495c66741d469c 100644 (file)
@@ -18,6 +18,7 @@ This release includes the following changes:
 
 This release includes the following bugfixes:
 
+ o configure's SSL-detection for msys/mingw
  o better connection keep-alive when POSTing with HTTP Digest
  o FTP-SSL
  o reading FTP server response in multiple reads
@@ -32,8 +33,8 @@ This release includes the following bugfixes:
 
 Other curl-related news since the previous public release:
 
- o the cURL projected is now over 7 years old
- o we now provide daily CVS windows-builds:
+ o the cURL project is now over 7 years old
+ o daily curl binary builds for Windows fresh from CVS:
    http://cool.haxx.se/curl-daily/
  o curl-tracker is a new mailinglist for "tracker" activities:
    http://cool.haxx.se/mailman/listinfo/curl-tracker
@@ -48,6 +49,6 @@ advice from friends like these:
  Dan Fandrich, Ignacio Vazquez-Abrams, Randy McMurchy, Dominick Meglio,
  Jean-Marc Ranger, Tor Arntsen, Nodak Sodak, David Houlder, Gisle Vanem,
  Christopher R. Palmer, Gwenole Beauchesne, Augustus Saunders, Jesper Jensen,
- Tom Moers
+ Tom Moers, Andres Garcia
 
         Thanks! (and sorry if I forgot to mention someone)
index 5edbb6ca68e0f9422620c0941f006904f0a48543..f87ef3a60de308b568b6401d2b3d328008c28989 100644 (file)
@@ -810,6 +810,20 @@ else
     fi
   fi
 
+  dnl This is for Msys/Mingw
+  AC_MSG_CHECKING([for gdi32])
+  my_ac_save_LIBS=$LIBS
+  LIBS="-lgdi32 $LIBS"
+  AC_TRY_LINK([#include <windef.h>
+               #include <wingdi.h>],
+               [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_lock,[
      HAVECRYPTO="yes"
      LIBS="-lcrypto $LIBS"
@@ -833,20 +847,6 @@ 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 <windef.h>
-                 #include <wingdi.h>],
-               [GdiFlush();],
-               [ dnl worked!
-               AC_MSG_RESULT([yes])],
-               [ dnl failed, restore LIBS
-               LIBS=$my_ac_save_LIBS
-               AC_MSG_RESULT(no)]
-              )
-
     AC_CHECK_LIB(ssl, SSL_connect)
 
     if test "$ac_cv_lib_ssl_SSL_connect" != yes; then