From: Carlo Marcelo Arenas Belon <carenas-kLeDWSohozoJb6fo7hG9ng@public.gmane.org>
To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: [PATCH 5/5] configure: use kvm's configure usage for unknown options
Date: Wed, 2 Jan 2008 05:40:43 -0600 [thread overview]
Message-ID: <20080102114043.GF15869@tapir> (raw)
In-Reply-To: <20080102113354.GA15869@tapir>
Prevent qemu's configure usage to be printed if an invalid option is
passed to it, allowing kvm's configure to trap those errors and print
the usage instead
Signed-off-by: Carlo Marcelo Arenas Belon <carenas-kLeDWSohozoJb6fo7hG9ng@public.gmane.org>
---
configure | 2 +-
qemu/configure | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
index 0464456..a10a4af 100755
--- a/configure
+++ b/configure
@@ -116,7 +116,7 @@ fi
${qemu_cc:+"--cc=$qemu_cc"} \
${cross_prefix:+"--cross-prefix=$cross_prefix"} \
${cross_prefix:+"--cpu=$arch"} $qemu_opts
-)
+) || usage
cat <<EOF > config.mak
diff --git a/qemu/configure b/qemu/configure
index c05dcc4..741fe7a 100755
--- a/qemu/configure
+++ b/qemu/configure
@@ -329,7 +329,7 @@ for opt do
;;
--disable-werror) werror="no"
;;
- *) echo "ERROR: unknown option $opt"; show_help="yes"
+ *) echo "ERROR: unknown option $opt"; exit 1
;;
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/
next prev parent reply other threads:[~2008-01-02 11:40 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 ` [PATCH 4/5] configure: use passthrough for all unknown options into qemu Carlo Marcelo Arenas Belon
2008-01-02 11:40 ` Carlo Marcelo Arenas Belon [this message]
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=20080102114043.GF15869@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.