autoconf
[Top][All Lists]
Advanced

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

Re: using $(FOO) in configure.ac


From: Fabien Chêne
Subject: Re: using $(FOO) in configure.ac
Date: Tue, 17 Jul 2007 23:14:33 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.990 (gnu/linux)

Ralf Wildenhues <address@hidden> writes:

Hello Ralf,

> * Fabien Chêne wrote on Tue, Jul 17, 2007 at 10:37:42PM CEST:
>> 
>> cat > foo.jam << EOF
>> echo $(FOO) ; dnl here is the problem
>> EOF
>
> Try
>   echo 'echo $(FOO)' > foo.jam
>
> or:
>
>   cat >foo.jam <<'EOF'
>   echo $(FOO)
>   EOF
>
> (minus the indentation).  If the word after '<<' is quoted with single-,
> double-quote, or a backslash, the here document is not expanded by
> parameter expansion and command substitution.  This is a purely shell
> issue (which is rare with Autoconf, due to the common issues with M4
> quoting).
>
> Hope that helps.

That helps a lot !
*HUGE* thanks for the solution and the explanation.

-- 
Fab




reply via email to

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