opensubscriber
   Find in this group all groups
 
Unknown more information…

a : autoconf@gnu.org 7 August 2010 • 8:19AM -0400

Re: How to correctly generate 'foobar.h' from 'foobar.h.in'
by Tao Wang

REPLY TO AUTHOR
 
REPLY TO GROUP




Thank you. It works for my C/C++ files.
However, how it works on text file and script file? They don't have compiler
to pass the define from parameters. For most scripts, they don't accept bash
syntax "${prefix}", they do need the value of "${prefix}/share". How can I
do that?

On Thu, Aug 5, 2010 at 3:47 AM, Ralf Wildenhues <Ralf.Wildenhues@gmx....>wrote:

> 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
>



--
Regards

Tao Wang
_______________________________________________
Autoconf mailing list
Autoconf@gnu....
http://lists.gnu.org/mailman/listinfo/autoconf

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.