[Top][All Lists]

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

Re: Fwd: sed porting trouble

From: Eric Blake
Subject: Re: Fwd: sed porting trouble
Date: Tue, 05 Oct 2010 14:41:42 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20100921 Fedora/3.1.4-1.fc13 Mnenhy/0.8.3 Thunderbird/3.1.4

On 10/05/2010 02:35 PM, Bruno Haible wrote:
Thanks; this is good and would solve half of the problem. But an expansion
that contains #if and #pragma would also collide with 'make' syntax, as
explained in

Maybe we're thinking about this wrong. We already use sed's r command to inline the body of a secondary file. So, what if, instead of trying to pass # through AC_SUBST, automake, and make, we instead just build the minimal 4-liner file, parallel to $(CXXDEFS_H), $(ARG_NONNULL_H), and $(WARN_ON_USE_H), and use sed's r command to pull it in at the right place.

Then, you're back to a one-liner solution in the *.in.h files, which expands to the appropriate number of lines in the installed replacement header.

Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

reply via email to

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