Re: Embed newlines in AC_MSG_* output

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

 



Hi,

On 2024-01-27 15:46, Dave Hart wrote:
> What is the right way to embed newlines in AC_MSG_FAIL or other AC_MSG_*
> macros?
[...]
> I tried:
> 
> AC_MSG_FAILURE(
> [--enable-openssl-random was used but no suitable SSL library was\
> found.  Remove --enable-openssl-random if you wish to build without\
> a cryptographically secure RNG.\
> WARNING: Use of ntp-keygen without a secure RNG may generate keys\
> that are predictable.])

Just don't end your lines with backslashes (which causes the shell to
delete the following newline) and AC_MSG_FAILURE will give you multiple
lines of output.  Normally you'll want the first line to be somewhat
shorter (since configure will insert a prefix in front of the message).

Hope that helps,
  Nick




[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux