[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using special characters (quote / space) in compiler-related variabl
From: |
Dmitry Katsubo |
Subject: |
Re: Using special characters (quote / space) in compiler-related variables |
Date: |
Thu, 20 Oct 2011 16:11:05 +0200 |
User-agent: |
Mozilla/5.0 (Windows NT 5.1; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2 |
On 18.10.2011 21:21, Paul Eggert wrote:
> Yes, you're right: 'configure' does this:
>
> CXXFLAGS="-D__int64=\"long long\""
> g++ $CXXFLAGS ...
I think, more flexible would be:
echo "g++ $CXXFLAGS" | bash
BTW, "make" is fine with following definition:
CXXFLAGS := -D__int="long long"
and it also evaluates the expansion for internal expression
"$(CXX) $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS)" correctly.
> (because you told it to), and this is equivalent to:
>
> g++ "-D__int64=\"long" "long\"" ...
>
> because that's how the shell works. For this particular
> example, the splitting isn't what you want, but for
> other examples it is, and I'm afraid that it's unlikely that
> Autoconf would change its behavior in this area.
Double escaping should work in this case, but the problem is that the
substitution in Makefile will also contain double escapes, which will be
wrong.
--
With best regards,
Dmitry