couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject svn commit: r1086934 - in /couchdb/trunk: configure.ac src/couchdb/priv/Makefile.am
Date Wed, 30 Mar 2011 12:45:52 GMT
Author: davisp
Date: Wed Mar 30 12:45:52 2011
New Revision: 1086934

URL: http://svn.apache.org/viewvc?rev=1086934&view=rev
Log:
Avoid -lcurl when libcurl is not found.

Closes COUCHDB-1042


Modified:
    couchdb/trunk/configure.ac
    couchdb/trunk/src/couchdb/priv/Makefile.am

Modified: couchdb/trunk/configure.ac
URL: http://svn.apache.org/viewvc/couchdb/trunk/configure.ac?rev=1086934&r1=1086933&r2=1086934&view=diff
==============================================================================
--- couchdb/trunk/configure.ac (original)
+++ couchdb/trunk/configure.ac Wed Mar 30 12:45:52 2011
@@ -212,20 +212,18 @@ AC_ARG_WITH([win32-curl], [AC_HELP_STRIN
     [set PATH to the Win32 native curl directory])], [
     # default build on windows is a static lib, and that's what we want too
     CURL_CFLAGS="-I$withval/include -DCURL_STATICLIB"
-    CURL_LIBS="$withval/lib/libcurl"
-    CURL_LDFLAGS="-l$CURL_LIBS -lWs2_32 -lkernel32 -luser32 -ladvapi32 -lWldap32"
+    CURL_LIBS="-L$withval/lib -lcurl -lWs2_32 -lkernel32 -luser32 -ladvapi32 -lWldap32"
 ], [
     AC_CHECK_CURL([7.18.0],
         [AC_DEFINE([HAVE_CURL], [1], ["Provide HTTP support to couchjs"])], [
         AC_MSG_WARN([You will be unable to run some JavaScript unit tests.])
         use_curl=no
+        CURL_LIBS=
     ])
-    CURL_LDFLAGS=-lcurl
 ])
 
 AC_SUBST(CURL_CFLAGS)
 AC_SUBST(CURL_LIBS)
-AC_SUBST(CURL_LDFLAGS)
 
 case "$(uname -s)" in
   Linux)

Modified: couchdb/trunk/src/couchdb/priv/Makefile.am
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/priv/Makefile.am?rev=1086934&r1=1086933&r2=1086934&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/priv/Makefile.am (original)
+++ couchdb/trunk/src/couchdb/priv/Makefile.am Wed Mar 30 12:45:52 2011
@@ -46,9 +46,8 @@ COUCHJS_SRCS = \
 
 locallibbin_PROGRAMS = couchjs
 couchjs_SOURCES = $(COUCHJS_SRCS)
-couchjs_LDFLAGS = $(CURL_LDFLAGS)
 couchjs_CFLAGS = -D_BSD_SOURCE $(CURL_CFLAGS)
-couchjs_LDADD = $(CURL_LDFLAGS) @JSLIB@
+couchjs_LDADD = $(CURL_LIBS) @JSLIB@
 
 couchpriv_DATA = stat_descriptions.cfg
 couchpriv_PROGRAMS = couchspawnkillable



Mime
View raw message