* libcurl.m4: Use $LIBS instead of $LDFLAGS. This should help build
authorDavid Shaw <dshaw@jabberwocky.com>
Tue, 1 Mar 2005 00:05:16 +0000 (00:05 +0000)
committerDavid Shaw <dshaw@jabberwocky.com>
Tue, 1 Mar 2005 00:05:16 +0000 (00:05 +0000)
problems on Mingw32.

m4/ChangeLog
m4/libcurl.m4

index f99f643..28f1c31 100644 (file)
@@ -1,3 +1,8 @@
+2005-02-28  David Shaw  <dshaw@jabberwocky.com>
+
+       * libcurl.m4: Use $LIBS instead of $LDFLAGS.  This should help
+       build problems on Mingw32.
+
 2005-02-03  David Shaw  <dshaw@jabberwocky.com>
 
        * libcurl.m4: More comments.
index c090843..edf12a8 100644 (file)
@@ -132,8 +132,8 @@ AC_DEFUN([LIBCURL_CHECK_CONFIG],
            [
            _libcurl_save_cppflags=$CPPFLAGS
            CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
-           _libcurl_save_ldflags=$LDFLAGS
-           LDFLAGS="$LDFLAGS $LIBCURL"
+           _libcurl_save_libs=$LIBS
+           LIBS="$LIBS $LIBCURL"
 
            AC_LINK_IFELSE(AC_LANG_PROGRAM([#include <curl/curl.h>],[
 /* Try and use a few common options to force a failure if we are
@@ -149,9 +149,9 @@ x=CURLOPT_VERBOSE;
 ]),libcurl_cv_lib_curl_usable=yes,libcurl_cv_lib_curl_usable=no)
 
            CPPFLAGS=$_libcurl_save_cppflags
-           LDFLAGS=$_libcurl_save_ldflags
+           LIBS=$_libcurl_save_libs
            unset _libcurl_save_cppflags
-           unset _libcurl_save_ldflags
+           unset _libcurl_save_libs
            ])
 
         if test $libcurl_cv_lib_curl_usable = yes ; then