All of lore.kernel.org
 help / color / mirror / Atom feed
From: Olaf Hering <olaf@aepfle.de>
To: xen-devel@lists.xen.org
Cc: Wei Liu <wei.liu2@citrix.com>,
	Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
	Ian Jackson <ian.jackson@eu.citrix.com>,
	Ian Campbell <ian.campbell@citrix.com>
Subject: Re: [PATCH for-xen-4.5] Add configure --with-extra-cflags-*
Date: Fri, 10 Oct 2014 08:55:57 +0200	[thread overview]
Message-ID: <20141010065557.GA24574@aepfle.de> (raw)
In-Reply-To: <1412847832-24047-1-git-send-email-olaf@aepfle.de>

On Thu, Oct 09, Olaf Hering wrote:

> +AC_ARG_WITH([extra-cflags-tools],
> +    AS_HELP_STRING([--with-extra-cflags-tools="EXTRA_CFLAGS"],
> +       [Additional CFLAGS to be used to build tools.]),
> +       [EXTRA_CFLAGS_XEN_TOOLS=$withval],
> +       [EXTRA_CFLAGS_XEN_TOOLS=])
> +AC_SUBST(EXTRA_CFLAGS_XEN_TOOLS)

I wonder why all the other --with-foo are not done that way as well. It
looks like they would take the variable from the environment and do
AC_SUBST(). IMO private variables like seabios_path, ovmf_path,
EXTRA_QEMUU_CONFIGURE_ARGS should not be passed via environment. I also
question if --with-foo=no is useful at all. My suggestion is to convert
these three to the style quoted above: a --with-foo=val assigns $val to
the given private variable, otherwise the private variable is
initialized empty.

What do you think?

Olaf

  reply	other threads:[~2014-10-10  6:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-09  9:43 [PATCH for-xen-4.5] Add configure --with-extra-cflags-* Olaf Hering
2014-10-10  6:55 ` Olaf Hering [this message]
2014-10-20 12:39   ` Ian Campbell
2014-10-21  9:03     ` Olaf Hering
2014-10-20 12:40 ` Ian Campbell
2014-10-21  9:07   ` Olaf Hering

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=20141010065557.GA24574@aepfle.de \
    --to=olaf@aepfle.de \
    --cc=ian.campbell@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xen.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.