automake
[Top][All Lists]
Advanced

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

Re: AM_SUBST_IGNORE = AC_SUBST without Makefile variable definition


From: Stepan Kasal
Subject: Re: AM_SUBST_IGNORE = AC_SUBST without Makefile variable definition
Date: Tue, 18 Oct 2005 18:41:13 +0200
User-agent: Mutt/1.4.1i

Hello,

On Tue, Oct 18, 2005 at 12:55:38PM +0200, Stepan Kasal wrote:
> I have another solution for the problem of multiline substitutions

first, let me sum up the problem:

If you use

AC_SUBST([FOO], ["foo
bar"])

in your configure.ac, then Automake traces it, and puts

FOO = @FOO@

to each Makefile.in.
No doubt the generated makefile will be broken.

Proposed solution:
------------------

Automake could generate lines like this:

FOO = @FOO@@\n@

The magical tag, @\n@, would be handled by Autoconf:
1) if the line after substitution contains embedded newlines, then each
of them is escaped with a backslash;
2) if the line after substitution would end by a backslash, then a space
character would be appended.

What do you think?

Have a nice day,
        Stepan




reply via email to

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