autoconf-patches
[Top][All Lists]
Advanced

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

Re: Make AC_INCLUDES_DEFAULT expand its argument (shell functions 5/n)


From: Akim Demaille
Subject: Re: Make AC_INCLUDES_DEFAULT expand its argument (shell functions 5/n)
Date: Mon, 05 May 2003 12:03:09 +0200
User-agent: Gnus/5.1001 (Gnus v5.10.1) Emacs/21.3 (gnu/linux)

| This is quite controversial.  I need to have AC_INCLUDES_DEFAULT
| expand its argument to determine whether it is empty or not, but
| m4_quote is not sufficient because it would have to add a new-line
| just like the IF-NOT-EMPTY part of the m4_ifval invocation.
|
| I am relying on m4_changecom, but I am not sure of its effects and
| would rather have someone more expert think of a better way.

These are no-no :(

| The need for this arises from this idiom in the shell functions patch,
| needed to pass to the shell function the INCLUDES argument:
| "AC_INCLUDES_DEFAULT([AS_ESCAPE([$4], ["])])"

I'm not sure shell functions are the right track for this purpose.
Everything was designed to precisely avoid dynamic changes here,
that's precisely why you meet these problems.

The goal are sane though.

I'm looking at the rest of the patches for the time being...




reply via email to

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