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