autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AS_IF


From: Paul Eggert
Subject: Re: AS_IF
Date: Mon, 12 Oct 2020 00:01:31 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

On 10/6/20 5:52 PM, Zack Weinberg wrote:

I agree that this should be clarified; I just had the same
conversation in another thread. I'm not sure we should say AS_IF/CASE
are equivalent to plain shell if/case inside an AC_DEFUN; they do do
more than just make the m4 expansion stack not be empty.

Yes, that goes a bit too far. I installed the attached doc patch to Savannah Autoconf master to try to clarify things a bit. I developed this patch before seeing Bruno's, but it should address the same issues (plus a few more, like portability of Posix case syntax).

Also, why is AS_FOR not documented? Maybe, instead of avoiding
mentioning it in NEWS, it should be documented?

AS_FOR is kind of a mess. I wouldn't document it the way it is. Perhaps it could be cleaned up in some future Autoconf version.

Attachment: 0001-doc-improve-AS_CASE-AS_IF-doc.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]