From patchwork Mon Aug 3 12:46:05 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 30513 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by bilbo.ozlabs.org (Postfix) with ESMTPS id 6B4D9B7079 for ; Mon, 3 Aug 2009 23:11:27 +1000 (EST) Received: from localhost ([127.0.0.1]:35859 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MXxJy-00028T-4Y for incoming@patchwork.ozlabs.org; Mon, 03 Aug 2009 09:11:22 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MXwyu-00039D-AB for qemu-devel@nongnu.org; Mon, 03 Aug 2009 08:49:36 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MXwyo-00035r-BC for qemu-devel@nongnu.org; Mon, 03 Aug 2009 08:49:34 -0400 Received: from [199.232.76.173] (port=51660 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MXwyn-00035X-JO for qemu-devel@nongnu.org; Mon, 03 Aug 2009 08:49:29 -0400 Received: from mx2.redhat.com ([66.187.237.31]:40767) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MXwym-0006tq-Uz for qemu-devel@nongnu.org; Mon, 03 Aug 2009 08:49:29 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n73CnSU1006420; Mon, 3 Aug 2009 08:49:28 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n73CnRJC025998; Mon, 3 Aug 2009 08:49:27 -0400 Received: from localhost.localdomain (vpn-12-117.rdu.redhat.com [10.11.12.117]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n73Cn8MI009715; Mon, 3 Aug 2009 08:49:26 -0400 From: Juan Quintela To: qemu-devel@nongnu.org Date: Mon, 3 Aug 2009 14:46:05 +0200 Message-Id: <600a53108ac0214fdbda40d0573a8b49b8b99dc2.1249301360.git.quintela@redhat.com> In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.58 on 172.16.27.26 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Cc: aliguori@us.ibm.com Subject: [Qemu-devel] [PATCH 14/81] Add CURL_CFLAGS X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Juan Quintela --- Makefile | 1 + configure | 4 +++- 2 files changed, 4 insertions(+), 1 deletions(-) diff --git a/Makefile b/Makefile index d3f999e..fb16eb0 100644 --- a/Makefile +++ b/Makefile @@ -167,6 +167,7 @@ LIBS+=$(VDE_LIBS) obj-$(CONFIG_XEN) += xen_backend.o xen_devconfig.o obj-$(CONFIG_XEN) += xen_console.o xenfb.o xen_disk.o xen_nic.o +CPPFLAGS+=$(CURL_CFLAGS) LIBS+=$(CURL_LIBS) cocoa.o: cocoa.m diff --git a/configure b/configure index 2074daf..03467cd 100755 --- a/configure +++ b/configure @@ -1107,8 +1107,9 @@ if test "$curl" = "yes" ; then #include int main(void) { return curl_easy_init(); } EOF + curl_cflags=`curl-config --cflags 2>/dev/null` curl_libs=`curl-config --libs 2>/dev/null` - if compile_prog "" "$curl_libs" ; then + if compile_prog "$curl_cflags" "$curl_libs" ; then curl=yes fi fi # test "$curl" @@ -1695,6 +1696,7 @@ if test "$bswap_h" = "yes" ; then fi if test "$curl" = "yes" ; then echo "CONFIG_CURL=y" >> $config_host_mak + echo "CURL_CFLAGS=$curl_cflags" >> $config_host_mak echo "CURL_LIBS=$curl_libs" >> $config_host_mak fi if test "$brlapi" = "yes" ; then