From patchwork Wed Aug 12 16:20:25 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 31205 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 38AACB7080 for ; Thu, 13 Aug 2009 02:32:26 +1000 (EST) Received: from localhost ([127.0.0.1]:56211 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MbGkP-00072p-I2 for incoming@patchwork.ozlabs.org; Wed, 12 Aug 2009 12:32:21 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MbGbG-000441-51 for qemu-devel@nongnu.org; Wed, 12 Aug 2009 12:22:54 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MbGbA-0003w2-J1 for qemu-devel@nongnu.org; Wed, 12 Aug 2009 12:22:53 -0400 Received: from [199.232.76.173] (port=34670 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MbGbA-0003ve-0u for qemu-devel@nongnu.org; Wed, 12 Aug 2009 12:22:48 -0400 Received: from mx2.redhat.com ([66.187.237.31]:44180) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MbGb8-0002XJ-3g for qemu-devel@nongnu.org; Wed, 12 Aug 2009 12:22:46 -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 n7CGMjgA014749 for ; Wed, 12 Aug 2009 12:22:45 -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 n7CGMipZ012673; Wed, 12 Aug 2009 12:22:44 -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 n7CGMdlJ001987; Wed, 12 Aug 2009 12:22:43 -0400 From: Juan Quintela To: qemu-devel@nongnu.org Date: Wed, 12 Aug 2009 18:20:25 +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 04/20] Add error message for feature not found 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 | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/configure b/configure index cda8213..1a12c43 100755 --- a/configure +++ b/configure @@ -766,6 +766,16 @@ if test -z "$target_list" ; then exit 1 fi +feature_not_found() { + feature=$1 + + echo "ERROR" + echo "ERROR: User requested feature $feature" + echo "ERROR: configure was not able to found it" + echo "ERROR" + exit 1; +} + if test -z "$cross_prefix" ; then # ---