From: Jonathan Nieder <jrnieder@gmail.com>
To: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] Consistent use of AC_LANG_PROGRAM in configure.ac and aclocal.m4.
Date: Sun, 2 Jan 2011 04:00:12 -0600 [thread overview]
Message-ID: <20110102100012.GA12284@burratino> (raw)
In-Reply-To: <20110102094730.GA10365@gmx.de>
Ralf Wildenhues wrote:
> See above.
>
> I would be happy to update the patch in a way that makes it more
> helpful, but most of the above is fairly general Autoconf rules,
> so I'm not sure what you need (being blinded by looking at this
> stuff too often).
A little essay in the commit message should be sufficient. Something
vaguely like this, maybe. (cut and pasted from the above)
This avoids warnings from Autoconf 2.68 about missing use of
AC_LANG_PROGRAM and friends.
Allow me to quote autoconf-2.68/NEWS:
** The macros AC_PREPROC_IFELSE, AC_COMPILE_IFELSE, AC_LINK_IFELSE, and
AC_RUN_IFELSE now warn if the first argument failed to use
AC_LANG_SOURCE or AC_LANG_PROGRAM to generate the conftest file
contents. A new macro AC_LANG_DEFINES_PROVIDED exists if you have
a compelling reason why you cannot use AC_LANG_SOURCE but must
avoid the warning.
The underlying reason for this change is that AC_LANG_{SOURCE,PROGRAM}
take care to actually supply the previously computed set of #defines
(and include the standard headers if so desired), for preprocessed
languages like C and C++.
In some cases, AC_LANG_PROGRAM is already used but not sufficiently
m4-quoted, so we just need to add another set of [quotes] to prevent
the autoconf warning from being triggered bogusly. Quoting all
arguments (except when calling special macros that _need_ to be
expanded before recursion) is better style, anyway. These and more
rules are described in detail in 'info Autoconf "Programming in M4"'.
The patch should not cause any semantic changes in the generated
configure script.
Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
next prev parent reply other threads:[~2011-01-02 10:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-02 6:00 [PATCH] Consistent use of AC_LANG_PROGRAM in configure.ac and aclocal.m4 Ralf Wildenhues
2011-01-02 7:59 ` Jonathan Nieder
2011-01-02 9:47 ` Ralf Wildenhues
2011-01-02 10:00 ` Jonathan Nieder [this message]
2011-01-02 10:24 ` Ralf Wildenhues
2011-02-01 19:39 ` Ralf Wildenhues
2011-02-12 23:35 ` [PATCH resend] configure: use AC_LANG_PROGRAM consistently Jonathan Nieder
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=20110102100012.GA12284@burratino \
--to=jrnieder@gmail.com \
--cc=Ralf.Wildenhues@gmx.de \
--cc=git@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).