public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Carlo Marcelo Arenas Belon <carenas-kLeDWSohozoJb6fo7hG9ng@public.gmane.org>
To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: [PATCH 4/5] configure: use passthrough for all unknown options into qemu
Date: Wed, 2 Jan 2008 05:39:28 -0600	[thread overview]
Message-ID: <20080102113928.GE15869@tapir> (raw)
In-Reply-To: <20080102113354.GA15869@tapir>

uses qemu to generate a hopefully complete usage in case of error

Signed-off-by: Carlo Marcelo Arenas Belon <carenas-kLeDWSohozoJb6fo7hG9ng@public.gmane.org>
---
 configure |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/configure b/configure
index 50a0e90..0464456 100755
--- a/configure
+++ b/configure
@@ -24,9 +24,17 @@ usage() {
 	    --qemu-cc=CC           specify compiler for qemu (must be gcc-3.x)
 	    --qemu-cflags=CFLAGS   CFLAGS to add to qemu configuration
 	    --qemu-ldflags=LDFLAGS LDFLAGS to add to qemu configuration
+
+	Any additional option is given to qemu's configure verbatim; including:
+
 	    --disable-gcc-check    don't insist on gcc-3.x
 	                           CAUTION: this will break running without kvm
 EOF
+    cd qemu
+    ./configure --help | egrep "enable-|disable-" \
+	| grep -v user | grep -v system | grep -v kqemu | grep -v kvm \
+	| sed -e "s/^  /    /g" \
+	| sed -e"s/  enable/enable/g" | sed -e "s/  disable/disable/g"
     exit 1
 }
 
@@ -66,7 +74,7 @@ while [[ "$1" = -* ]]; do
 	    usage
 	    ;;
 	*)
-	    usage
+	    qemu_opts="$qemu_opts $opt"
 	    ;;
     esac
 done
-- 
1.5.3.7


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

  parent reply	other threads:[~2008-01-02 11:39 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-02 11:33 [PATCH 0/5] configure passthrough for qemu Carlo Marcelo Arenas Belon
2008-01-02 11:35 ` [PATCH 1/5] Revert "kvm: configure: qemu vnc-tls configure flag" Carlo Marcelo Arenas Belon
2008-01-02 11:36 ` [PATCH 2/5] Revert "kvm: configure: qemu alsa configure option" Carlo Marcelo Arenas Belon
2008-01-02 11:38 ` [PATCH 3/5] Revert "kvm: configure: support --disable-gcc-check" Carlo Marcelo Arenas Belon
2008-01-02 11:39 ` Carlo Marcelo Arenas Belon [this message]
2008-01-02 11:40 ` [PATCH 5/5] configure: use kvm's configure usage for unknown options Carlo Marcelo Arenas Belon
2008-01-07  9:32 ` [PATCH 0/5] configure passthrough for qemu Avi Kivity

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080102113928.GE15869@tapir \
    --to=carenas-kledwsohozojb6fo7hg9ng@public.gmane.org \
    --cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox