[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Including sysconfdir in CPPFLAGS
From: |
Fredrik Tolf |
Subject: |
Re: Including sysconfdir in CPPFLAGS |
Date: |
Fri, 5 Dec 2003 13:46:48 +0100 |
Peter Eisentraut writes:
> Fredrik Tolf writes:
>
> > How do I get the sysconfdir into a cpp macro if I use automake as
> > well? Should I do it through a config header, or should I do it via
> > some automake contraption? Should I just add it to CPPFLAGS? Please
> > tell me.
>
> The Autoconf manual tells the tale:
>
> A corollary is that you should not use these variables except in
> Makefiles. For instance, instead of trying to evaluate `datadir' in
> `configure' and hardcoding it in Makefiles using e.g.
> `AC_DEFINE_UNQUOTED(DATADIR, "$datadir")', you should add
> `-DDATADIR="$(datadir)"' to your `CPPFLAGS'.
Thank you. One more thing though: would you please tell where in the
manual I can find that? I have been looking like crazy in it.
Fredrik Tolf