[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to correctly generate 'foobar.h' from 'foobar.h.in'
From: |
Ralf Wildenhues |
Subject: |
Re: How to correctly generate 'foobar.h' from 'foobar.h.in' |
Date: |
Wed, 4 Aug 2010 19:47:43 +0200 |
User-agent: |
Mutt/1.5.20 (2010-04-22) |
Hello,
* Mike Frysinger wrote on Wed, Aug 04, 2010 at 09:19:30AM CEST:
> On Wednesday, August 04, 2010 01:36:34 Tao Wang wrote:
> > First, the generated content is:
> > =========
> > #define PATH_PREFIX "/home/tao/unstable/stardict"
> > #define PATH_DATADIR "${prefix}/share"
> > =========
> >
> > "${prefix}" is definitely not working as a C/C++ header. How can I replace
> > the ${prefix} with the real value?
>
> this is why people put the define into CPPFLAGS and let the Makefile expand it
Yes. See here for the FAQ entry:
<http://www.gnu.org/software/autoconf/manual/html_node/Defining-Directories.html>.
Cheers,
Ralf