On 10 Apr 2001, Tom Tromey wrote:

> >>>>> "Alex" == Alex Turner <[EMAIL PROTECTED]> writes:
>
> Alex> What is the best way to have a script/program where $pkgdatadir
> Alex> is located?
>
> I assume you mean how to find pkgdatadir in a program?
>
> Alex> For C, it's easy enough just to do
> Alex> CCFLAGS=-DPKGDATADIR="\""$(pkgdatadir)"\"" but what about things
> Alex> like perl scripts that have to pull option files and such.  Is
> Alex> there a standard way to tackle this?
>
> For automake I use AC_SUBST and have @...@ substitutions in
> automake.in.
>
> Tom
>

Cool - actualy I forgot to ask if this is a sane way to do it for C.  I
would much prefer it generated a header file with it in somewhere.

Alex

P.S. Tom Tromey: Thanks for spending the time to write a book on automake
etc... it's very very usefull.


Reply via email to