From patchwork Wed Aug 12 16:29:51 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 31216 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 957C9B6EDE for ; Thu, 13 Aug 2009 02:56:28 +1000 (EST) Received: from localhost ([127.0.0.1]:33164 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MbH7e-0006rf-VD for incoming@patchwork.ozlabs.org; Wed, 12 Aug 2009 12:56:22 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MbGkM-00080T-DP for qemu-devel@nongnu.org; Wed, 12 Aug 2009 12:32:18 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MbGkH-0007xR-AF for qemu-devel@nongnu.org; Wed, 12 Aug 2009 12:32:17 -0400 Received: from [199.232.76.173] (port=39161 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MbGkH-0007xE-3r for qemu-devel@nongnu.org; Wed, 12 Aug 2009 12:32:13 -0400 Received: from mx2.redhat.com ([66.187.237.31]:55712) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MbGkG-0004JX-Ca for qemu-devel@nongnu.org; Wed, 12 Aug 2009 12:32:12 -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 n7CGWBkO018300 for ; Wed, 12 Aug 2009 12:32:11 -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 n7CGWADc015770; Wed, 12 Aug 2009 12:32:10 -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 n7CGW579003505; Wed, 12 Aug 2009 12:32:09 -0400 From: Juan Quintela To: qemu-devel@nongnu.org Date: Wed, 12 Aug 2009 18:29:51 +0200 Message-Id: <5cf54e7722b0f3d59af49bc29a4664b2e85393ea.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 14/20] Add build_docs to new feature convention 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 | 16 +++++++++++++--- 1 files changed, 13 insertions(+), 3 deletions(-) diff --git a/configure b/configure index 1f71fdf..97a3161 100755 --- a/configure +++ b/configure @@ -183,6 +183,7 @@ bluez="" brlapi="" curl="" curses="" +build_docs="" nptl="" pthread="" vde="" @@ -212,7 +213,6 @@ linux_user="no" darwin_user="no" bsd_user="no" guest_base="" -build_docs="yes" uname_release="" aio="yes" io_thread="no" @@ -549,6 +549,8 @@ for opt do ;; --disable-docs) build_docs="no" ;; + --enable-docs) build_docs="yes" + ;; *) echo "ERROR: unknown option $opt"; show_help="yes" ;; esac @@ -1444,8 +1446,16 @@ if compile_prog "" "" ; then fi # Check if tools are available to build documentation. -if test "$build_docs" = "yes" -a \( ! -x "`which texi2html 2>/dev/null`" -o ! -x "`which pod2man 2>/dev/null`" \) ; then - build_docs="no" +if test "$build_docs" != "no" ; then + if test -x "`which texi2html 2>/dev/null`" -a \ + -x "`which pod2man 2>/dev/null`" ; then + build_docs=yes + else + if test "$build_docs" = "yes" ; then + feature_not_found "build_docs" + fi + build_docs=no + fi fi # Search for bsawp_32 function