Skip to content

Commit c729b6d

Browse files
Whissizimmerle
authored andcommitted
configure: Fix detection whether libcurl is linked against gnutls
The find_curl macro is also checking whether libcurl is linked against gnutls. However the check depends on "CURL_LIBS" which wasn't defined by the macro. This commit will define "CURL_LIBS" so that the check works as expected.
1 parent 808ea48 commit c729b6d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build/find_curl.m4

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ dnl Check for CURL Libraries
22
dnl CHECK_CURL(ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND])
33
dnl Sets:
44
dnl CURL_CFLAGS
5+
dnl CURL_LDADD
56
dnl CURL_LIBS
67

78
CURL_CONFIG=""
@@ -57,7 +58,8 @@ if test -n "${curl_path}"; then
5758
if test "$verbose_output" -eq 1; then AC_MSG_NOTICE(curl VERSION: $CURL_VERSION); fi
5859
CURL_CFLAGS="`${CURL_CONFIG} --cflags`"
5960
if test "$verbose_output" -eq 1; then AC_MSG_NOTICE(curl CFLAGS: $CURL_CFLAGS); fi
60-
CURL_LDADD="`${CURL_CONFIG} --libs`"
61+
CURL_LIBS="`${CURL_CONFIG} --libs`"
62+
CURL_LDADD="${CURL_LIBS}"
6163
if test "$verbose_output" -eq 1; then AC_MSG_NOTICE(curl LDADD: $CURL_LIBS); fi
6264
6365
dnl # Check version is ok

0 commit comments

Comments
 (0)