diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2022-09-06 12:38:34 +0200 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2022-09-06 12:38:34 +0200 |
commit | 6c98fab02a2f0e8130ef377a3249a3d79ce48162 (patch) | |
tree | 8c626400f7ea3b908a0b8b9a043e7b6ad98bcd70 /configure.ac | |
parent | afea0eea1ecfa41150fdf9ee052acac75eee6534 (diff) | |
download | gnunet-6c98fab02a2f0e8130ef377a3249a3d79ce48162.tar.gz gnunet-6c98fab02a2f0e8130ef377a3249a3d79ce48162.zip |
-some notes on curl detection
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 217b54210..2db474684 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -719,16 +719,20 @@ AS_IF([test "x$pulse" != "x1" || test "x$opus" != "x1" || test "x$ogg" != "x1"], | |||
719 | AM_CONDITIONAL([BUILD_CONVERSATION], [test "x$conversation_backend" != "xnone"]) | 719 | AM_CONDITIONAL([BUILD_CONVERSATION], [test "x$conversation_backend" != "xnone"]) |
720 | AC_MSG_RESULT([$conversation_backend]) | 720 | AC_MSG_RESULT([$conversation_backend]) |
721 | 721 | ||
722 | # NOTE: If we find libcurl-gnutls here we set LIBCURL to -lcurl-gnutls | ||
723 | # This affects the LIBCURL_CHECK_CONFIG call below as it takes LIBCURL into | ||
724 | # account when checking for curl. | ||
722 | AC_CHECK_LIB([curl-gnutls], | 725 | AC_CHECK_LIB([curl-gnutls], |
723 | [curl_easy_getinfo], | 726 | [curl_easy_getinfo], |
724 | [curl_gnutls=1 | 727 | [curl_gnutls=1 |
725 | LIBCURL="-lcurl-gnutls" | 728 | LIBCURL="-lcurl-gnutls"], |
726 | ], | ||
727 | [curl_gnutls=0]) | 729 | [curl_gnutls=0]) |
728 | 730 | ||
729 | LIBCURL_CHECK_CONFIG([], [7.34.0], [], | 731 | LIBCURL_CHECK_CONFIG([], [7.34.0], [], |
730 | [AC_MSG_ERROR([cURL must have a version >= 7.34.0])]) | 732 | [AC_MSG_ERROR([cURL must have a version >= 7.34.0])]) |
731 | 733 | ||
734 | # Even if curl is found, we check for this constant in order to determine | ||
735 | # if we can use this feature. | ||
732 | AC_CHECK_HEADER([curl/curl.h], | 736 | AC_CHECK_HEADER([curl/curl.h], |
733 | [AC_CHECK_DECLS([CURLINFO_TLS_SSL_PTR], | 737 | [AC_CHECK_DECLS([CURLINFO_TLS_SSL_PTR], |
734 | [], | 738 | [], |