]> git.ipfire.org Git - thirdparty/git.git/commit - configure.ac
./configure.ac: detect SSL in libcurl using curl-config
authorДилян Палаузов <git-dpa@aegee.org>
Tue, 28 Jun 2016 12:04:34 +0000 (12:04 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 28 Jun 2016 16:25:06 +0000 (09:25 -0700)
commit924b7eb1c983c845203a5c2fd80fe499acff6e84
treec689ab7f6bc64a5f69e02f446394941f0cd163e7
parent05219a1276341e72d8082d76b7f5ed394b7437a4
./configure.ac: detect SSL in libcurl using curl-config

The API of libcurl does not mention Curl_ssl_init() and when curl is
built with -flto, the Curl_ssl_init symbol is not exported.

https://curl.haxx.se/libcurl/using/ suggests calling

  curl-config --feature | grep SSL

to see, if the installed curl has SSL support.  Another approach
would be calling curl_version_info and checking the returned struct.

This patch removes the check for the Curl_ssl_init exported symbol
from libcurl and uses curl-config to detect SSL support in libcurl.

Signed-off-by: Дилян Палаузов <git-dpa@aegee.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
configure.ac