From patchwork Wed Aug 12 16:29:50 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 31215 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 A1C16B6F34 for ; Thu, 13 Aug 2009 02:54:19 +1000 (EST) Received: from localhost ([127.0.0.1]:37824 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MbH5b-0005gW-3W for incoming@patchwork.ozlabs.org; Wed, 12 Aug 2009 12:54:15 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MbGkL-000809-Rm for qemu-devel@nongnu.org; Wed, 12 Aug 2009 12:32:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MbGkG-0007w6-Gd for qemu-devel@nongnu.org; Wed, 12 Aug 2009 12:32:16 -0400 Received: from [199.232.76.173] (port=39160 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MbGkG-0007vv-59 for qemu-devel@nongnu.org; Wed, 12 Aug 2009 12:32:12 -0400 Received: from mx2.redhat.com ([66.187.237.31]:55710) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MbGkF-0004JL-Dk for qemu-devel@nongnu.org; Wed, 12 Aug 2009 12:32:11 -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 n7CGWAQo018286 for ; Wed, 12 Aug 2009 12:32:10 -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 n7CGW9ik015765; Wed, 12 Aug 2009 12:32:09 -0400 Received: from localhost.localdomain (vpn-12-196.rdu.redhat.com [10.11.12.196]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n7CGW578003505; Wed, 12 Aug 2009 12:32:08 -0400 From: Juan Quintela To: qemu-devel@nongnu.org Date: Wed, 12 Aug 2009 18:29:50 +0200 Message-Id: <1b324d374ab1315688487ef40bc3962b5694b6c9.1250093910.git.quintela@redhat.com> In-Reply-To: <71025e96da7eb85957e11d9cf4530c1ee81577d5.1250093910.git.quintela@redhat.com> References: <71025e96da7eb85957e11d9cf4530c1ee81577d5.1250093910.git.quintela@redhat.com> 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) Subject: [Qemu-devel] [PATCH 13/20] Add bluez to new feature convencion 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 Once there, remove extra check for package and output if bluez was found or not as the other features Signed-off-by: Juan Quintela --- configure | 15 ++++++++++----- 1 files changed, 10 insertions(+), 5 deletions(-) diff --git a/configure b/configure index 0732344..1f71fdf 100755 --- a/configure +++ b/configure @@ -179,6 +179,7 @@ esac # to ensure that several features are compiled in, and it is impossible without a # --enable-foo that exits if feature is not found +bluez="" brlapi="" curl="" curses="" @@ -216,7 +217,6 @@ uname_release="" aio="yes" io_thread="no" mixemu="no" -bluez="yes" kvm="no" kerneldir="" aix="no" @@ -480,6 +480,8 @@ for opt do ;; --disable-bluez) bluez="no" ;; + --enable-bluez) bluez="yes" + ;; --disable-kvm) kvm="no" ;; --enable-profiler) profiler="yes" @@ -660,6 +662,7 @@ echo " --enable-curses enable curses output" echo " --disable-curl disable curl connectivity" echo " --enable-curl enable curl connectivity" echo " --disable-bluez disable bluez stack connectivity" +echo " --enable-bluez enable bluez stack connectivity" echo " --disable-kvm disable KVM acceleration support" echo " --disable-nptl disable usermode NPTL support" echo " --enable-nptl disable usermode NPTL support" @@ -1200,10 +1203,7 @@ fi # test "$curl" ########################################## # bluez support probe -if test "$bluez" = "yes" ; then - `pkg-config bluez 2> /dev/null` || bluez="no" -fi -if test "$bluez" = "yes" ; then +if test "$bluez" != "no" ; then cat > $TMPC << EOF #include int main(void) { return bt_error(0); } @@ -1211,8 +1211,12 @@ EOF bluez_cflags=`pkg-config --cflags bluez 2> /dev/null` bluez_libs=`pkg-config --libs bluez 2> /dev/null` if compile_prog "$bluez_cflags" "$bluez_libs" ; then + bluez=yes libs_softmmu="$bluez_libs $libs_softmmu" else + if test "$bluez" = "yes" ; then + feature_not_found "bluez" + fi bluez="no" fi fi @@ -1615,6 +1619,7 @@ fi echo "kqemu support $kqemu" echo "xen support $xen" echo "brlapi support $brlapi" +echo "bluez support $bluez" echo "Documentation $build_docs" [ ! -z "$uname_release" ] && \ echo "uname -r $uname_release"