From c729b6d0ab5c377b983fe58f10940ba2a4069b0a Mon Sep 17 00:00:00 2001 From: Thomas Deutschmann Date: Sat, 11 Jun 2016 16:18:17 +0200 Subject: [PATCH] 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. --- build/find_curl.m4 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build/find_curl.m4 b/build/find_curl.m4 index 6b23ad69..3310e404 100644 --- a/build/find_curl.m4 +++ b/build/find_curl.m4 @@ -2,6 +2,7 @@ dnl Check for CURL Libraries dnl CHECK_CURL(ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]) dnl Sets: dnl CURL_CFLAGS +dnl CURL_LDADD dnl CURL_LIBS CURL_CONFIG="" @@ -57,7 +58,8 @@ if test -n "${curl_path}"; then if test "$verbose_output" -eq 1; then AC_MSG_NOTICE(curl VERSION: $CURL_VERSION); fi CURL_CFLAGS="`${CURL_CONFIG} --cflags`" if test "$verbose_output" -eq 1; then AC_MSG_NOTICE(curl CFLAGS: $CURL_CFLAGS); fi - CURL_LDADD="`${CURL_CONFIG} --libs`" + CURL_LIBS="`${CURL_CONFIG} --libs`" + CURL_LDADD="${CURL_LIBS}" if test "$verbose_output" -eq 1; then AC_MSG_NOTICE(curl LDADD: $CURL_LIBS); fi dnl # Check version is ok