qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [RESEND] [PATCH] show usage and abort if unknown option is passed to configure
@ 2007-11-09 19:43 Carlo Marcelo Arenas Belon
  0 siblings, 0 replies; only message in thread
From: Carlo Marcelo Arenas Belon @ 2007-11-09 19:43 UTC (permalink / raw)
  To: qemu-devel

Any comments on this?, is ignoring unknown parameters to configure a feature
as I suspect to prevent build failures on users that assume that it is
autoconf based and try to enforce the defaults with an unknown option like
--enable-sdl?

Carlo

----- Forwarded message from Carlo Marcelo Arenas Belon <carenas@sajinet.com.pe> -----

Date: Mon, 22 Oct 2007 20:31:35 -0500
From: Carlo Marcelo Arenas Belon <carenas@sajinet.com.pe>
To: qemu-devel@nongnu.org
Subject: [PATCH] show usage and abort if unknown option is passed to configure
User-Agent: Mutt/1.4.1i

The following patch prints an error if an unknown option is passed to
configure and directs the script to show usage information.

Carlo

---
Index: configure
===================================================================
RCS file: /sources/qemu/qemu/configure,v
retrieving revision 1.165
diff -u -r1.165 configure
--- configure	18 Oct 2007 20:51:48 -0000	1.165
+++ configure	23 Oct 2007 01:23:58 -0000
@@ -306,6 +303,8 @@
         *)     echo "undefined SPARC architecture. Exiting";exit 1;;
       esac
   ;;
+  *) echo "ERROR: unknown option $opt"; show_help="yes"
+  ;;
   esac
 done
 

----- End forwarded message -----

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-11-09 19:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-09 19:43 [Qemu-devel] [RESEND] [PATCH] show usage and abort if unknown option is passed to configure Carlo Marcelo Arenas Belon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).