From patchwork Wed Aug 12 16:20:30 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 31210 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 D3742B6EDE for ; Thu, 13 Aug 2009 02:41:50 +1000 (EST) Received: from localhost ([127.0.0.1]:33790 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MbGtU-00085s-2c for incoming@patchwork.ozlabs.org; Wed, 12 Aug 2009 12:41:44 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MbGbP-0004Dk-Rq for qemu-devel@nongnu.org; Wed, 12 Aug 2009 12:23:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MbGbF-00042K-0X for qemu-devel@nongnu.org; Wed, 12 Aug 2009 12:22:56 -0400 Received: from [199.232.76.173] (port=34680 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MbGbE-00041X-1I for qemu-devel@nongnu.org; Wed, 12 Aug 2009 12:22:52 -0400 Received: from mx2.redhat.com ([66.187.237.31]:44185) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MbGbD-0002Z1-9m for qemu-devel@nongnu.org; Wed, 12 Aug 2009 12:22:51 -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 n7CGMoYZ014783 for ; Wed, 12 Aug 2009 12:22:50 -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 n7CGMnjg012689; Wed, 12 Aug 2009 12:22:49 -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 n7CGMdlO001987; Wed, 12 Aug 2009 12:22:48 -0400 From: Juan Quintela To: qemu-devel@nongnu.org Date: Wed, 12 Aug 2009 18:20:30 +0200 Message-Id: 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) Subject: [Qemu-devel] [PATCH 09/20] Add curses 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 Signed-off-by: Juan Quintela --- configure | 19 +++++++++++++++---- 1 files changed, 15 insertions(+), 4 deletions(-) diff --git a/configure b/configure index cd2f1e1..1efe412 100755 --- a/configure +++ b/configure @@ -180,6 +180,7 @@ esac # --enable-foo that exits if feature is not found brlapi="" +curses="" vde="" vnc_tls="" vnc_sasl="" @@ -209,7 +210,6 @@ bsd_user="no" guest_base="" build_docs="yes" uname_release="" -curses="yes" curl="yes" pthread="yes" aio="yes" @@ -519,6 +519,8 @@ for opt do ;; --disable-curses) curses="no" ;; + --enable-curses) curses="yes" + ;; --disable-curl) curl="no" ;; --disable-nptl) nptl="no" @@ -648,6 +650,7 @@ echo " --enable-vnc-tls enable TLS encryption for VNC server" echo " --disable-vnc-sasl disable SASL encryption for VNC server" echo " --enable-vnc-sasl enable SASL encryption for VNC server" echo " --disable-curses disable curses output" +echo " --enable-curses enable curses output" echo " --disable-curl disable curl connectivity" echo " --disable-bluez disable bluez stack connectivity" echo " --disable-kvm disable KVM acceleration support" @@ -1130,8 +1133,8 @@ fi # curses probe curses_list="-lncurses -lcurses" -if test "$curses" = "yes" ; then - curses=no +if test "$curses" != "no" ; then + curses_found=no cat > $TMPC << EOF #include #ifdef __OpenBSD__ @@ -1141,11 +1144,19 @@ int main(void) { resize_term(0, 0); return curses_version(); } EOF for curses_lib in $curses_list; do if compile_prog "" "$curses_lib" ; then - curses=yes + curses_found=yes libs_softmmu="$curses_lib $libs_softmmu" break fi done + if test "$curses_found" = "yes" ; then + curses=yes + else + if test "$curses" = "yes" ; then + feature_not_found "curses" + fi + curses=no + fi fi ##########################################