From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:40407) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QUnBS-0006wu-N5 for qemu-devel@nongnu.org; Thu, 09 Jun 2011 17:54:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QUnBQ-0001r0-Kr for qemu-devel@nongnu.org; Thu, 09 Jun 2011 17:54:34 -0400 From: Peter Maydell Date: Thu, 9 Jun 2011 22:54:29 +0100 Message-Id: <1307656469-29424-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH] configure: Detect and don't try to use older libcurl List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org, patches@linaro.org 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 --- configure | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/configure b/configure index d38b952..03d693a 100755 --- a/configure +++ b/configure @@ -1709,7 +1709,7 @@ fi if test "$curl" != "no" ; then cat > $TMPC << EOF #include -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` -- 1.7.1