opensubscriber
   Find in this group all groups
 
Unknown more information…

a : autoconf@gnu.org 7 August 2010 • 4:26PM -0400

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

REPLY TO AUTHOR
 
REPLY TO GROUP




On Sat, Aug 7, 2010 at 1:49 PM, Gary V. Vaughan <gary@gnu....> wrote:

> On Aug 7, 2010, at 10:31 AM, Mike Frysinger <vapier@gent...> wrote:
> > On Friday, August 06, 2010 20:19:41 Tao Wang wrote:
> >> 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?
> >
> > typically people dont expand things in such files
>
> Or you can add a rule to Makefile.am (or Makefile if you're not using
> Automake) that performs the substitution with a shell snippet that calls sed
> - that way ${prefix} is expanded by the shell before passing it to sed.
>
> Have a look at how GNU M4 creates its bootstrap script for an example.
>
> Cheers,
> --
> Gary V. Vaughan (gary@gnu....)


Thank you very much.

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