Received: from [140.186.70.92] (port=49362 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PI57k-00026d-IF for qemu-devel@nongnu.org; Mon, 15 Nov 2010 14:55:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PI56Y-0002H0-JO for qemu-devel@nongnu.org; Mon, 15 Nov 2010 14:53:53 -0500 Received: from fmmailgate02.web.de ([217.72.192.227]:34525) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PI56X-0002G8-TB for qemu-devel@nongnu.org; Mon, 15 Nov 2010 14:52:42 -0500 Message-Id: <8B526739-829B-48D8-9451-4543DDA2BB3E@web.de> From: =?ISO-8859-1?Q?Andreas_F=E4rber?= In-Reply-To: <4CE1565F.9070105@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v936) Subject: Re: [Qemu-devel] [PATCH] make trace options use autoconfy names Date: Mon, 15 Nov 2010 20:50:54 +0100 References: <1289735432-8776-1-git-send-email-pbonzini@redhat.com> <4CDFE9A5.7000706@redhat.com> <4CE1565F.9070105@redhat.com> Sender: andreas.faerber@web.de List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Stefan Hajnoczi , qemu-devel Developers , Stefan Hajnoczi Am 15.11.2010 um 16:48 schrieb Paolo Bonzini: > On 11/15/2010 03:17 PM, Stefan Hajnoczi wrote: >> On Sun, Nov 14, 2010 at 1:52 PM, Paolo =20 >> Bonzini wrote: >>> On 11/14/2010 02:38 PM, Andreas F=E4rber wrote: >>>>> >>>>> - --trace-file=3D*) trace_file=3D"$optarg" >>>>> + --enable-trace-file=3D*) trace_file=3D"$optarg" >>>>> ;; >>>> >>>> but this should be --with-trace-file=3D... please. It is not being >>>> enabled, just set to a different value. >>> >>> --with-* should be reserved for library paths, but I can change it =20= >>> if people >>> prefer it that way. I did think of the argument as a file name, sort of a relative path... >> Actually I think we have something similar to overriding --prefix =20 >> here >> :). It's a path that you can set at ./configure time. > > Yeah, that's true. However... > >> So is it not okay to use --trace-file=3D? > > ... Autoconf would not allow unknown options not starting with --=20 > enable- or --with-. > > The rationale to avoid incompatible options in QEMU is this: suppose =20= > you have a project using Autoconf (e.g. GCC) and you want to drop =20 > QEMU as a subdirectory in there, e.g. to run the GCC testsuite under =20= > QEMU usermode emulation (GCC can already do this for other =20 > simulators). To pass options to QEMU's configure, you can include =20 > them in GCC's commandline. The script will simply pass the option =20 > down to QEMU and it will be processed there. However, if you pass --=20= > trace-file to GCC's configure script, it will complain and stop. > > Probably I would use something like --enable-trace-=20 > backend=3Dsimple:trace- if I was adding something similar to an =20 > autoconfiscated project. But unless it provides some additional =20 > benefit (as is the case with cross-compilation support) I want to =20 > keep the syntactic changes in my patches to the minimum. > >> But I know nothing of autoconf and --enable-* or --with-* sort of >> make sense too. > > Whatever, I have to repost the other series anyway, so I'll change =20 > to --with-. Thinking more about it, what about --enable-simple-trace=3D..., =20 callapsing the two options into one? Another autoconf way to pass this stuff would we ./configure ... =20 TRACE_FILE=3D... I wouldn't mind either way though, just noticed that the --enable-=20 trace-file suggestion by autoconf convention would allow --disable-=20 trace-file. Similar issue for --without-trace-file though. Andreas=