autoconf
[Top][All Lists]
Advanced

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

Re: new line added to a variable passed to a macro


From: Andreas Schwab
Subject: Re: new line added to a variable passed to a macro
Date: Sun, 25 Mar 2007 21:35:51 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.91 (gnu/linux)

Vincent Torri <address@hidden> writes:

> That is, a new line is added. I don't know why. It is annoying as I am
> doing the test on $3 (note that the third parameter is optional). What is
> also strange is that I use that macro several times, and that new line is
> only added when I call:
>
> AC_CHECK_ECORE_MODULE([Ipc],
>   ["yes"],
>   [${have_ecore_con}]
                       ^^^
The newline is here.  m4 does not strip trailing whitespace when gathering
arguments.  Either put the closing paren directly after it, or use dnl.

Andreas.

-- 
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




reply via email to

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