configure: Detect and don't try to use older libcurl
Older versions of libcurl don't have some of the features we try to use, in particular curl_multi_setopt(). Check for this in the 'is libcurl available?' configure test so we disable curl support if the library is too old. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
This commit is contained in:
parent
5f04e36882
commit
0b862cedf3
2
configure
vendored
2
configure
vendored
@ -1710,7 +1710,7 @@ fi
|
||||
if test "$curl" != "no" ; then
|
||||
cat > $TMPC << EOF
|
||||
#include <curl/curl.h>
|
||||
int main(void) { return curl_easy_init(); }
|
||||
int main(void) { curl_easy_init(); curl_multi_setopt(0, 0, 0); return 0; }
|
||||
EOF
|
||||
curl_cflags=`$curlconfig --cflags 2>/dev/null`
|
||||
curl_libs=`$curlconfig --libs 2>/dev/null`
|
||||
|
Loading…
Reference in New Issue
Block a user