[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Words in configure.ac that look like macros forbidden or merely disc
From: |
Gavin Smith |
Subject: |
Re: Words in configure.ac that look like macros forbidden or merely discouraged? |
Date: |
Fri, 23 Dec 2016 04:55:06 +0000 |
On 22 December 2016 at 19:00, Eric Blake <address@hidden> wrote:
> On 06/12/2016 05:25 AM, Gavin Smith wrote:
>> Hello,
>
> Apologies for just now noticing this thread.
>
>>
>> In the Autoconf manual we read:
>
> Any reason you mailed this to the automake list, and not autoconf, then?
Indeed, it doesn't need automake to fail. I used automake when I
tested this before. The following configure.ac makes autoconf give an
error message:
AC_INIT([test],[0])
AC_MSG_WARN([[AC_DC] stinks --Iron Maiden])
AC_MSG_WARN([[AC_DC stinks --Iron Maiden]])
AC_OUTPUT
The error is
configure.ac:2: error: possibly undefined macro: AC_DC
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
>> Any ideas which it is: is it actually forbidden, or should it be just a
>> warning?
>
> So I guess you are pointing out a documentation error in the autoconf
> manual, and that the manual should call it an error, not a warning?
> Sure, I can do that.
Either that, or autoconf could be changed to make it a warning. I
don't see any need for that, though: I think it is okay to be an
error.