Re: config variables in config.h

2002-09-11 Thread Bruce Korb
Akim Demaille wrote: > | > Hm... I guess I'm not understanding the pun :-? > | > | Sorry. FAQ: Frequently Asked Questions > | er -FAQ: Frequent Autoconf Questions > | > | So, I changed "Frequent Questions about Autoconf" > | to "Frequent Autoconf Questions" to go along with > | the "FAQ"

Re: config variables in config.h

2002-09-11 Thread Akim Demaille
I tried to summarize the answers to this *very* FAQ. If people see other things to put in the FAQ, please... Index: ChangeLog from Akim Demaille <[EMAIL PROTECTED]> * doc/autoconf.texi (Questions): Rename as... (FAQ): this. (Defining Directories): New. Index: doc/aut

Re: config variables in config.h

2002-09-05 Thread Dan Kegel
Alexandre Duret-Lutz wrote: > I've stopped hard-coding absolute paths in my package because it > hinders relocation of binary packages. > > Instead, at configure-time (not everybody will like this) I turn > each pathname into a path relative to $(prefix), and guess > $(prefix) at run-time. > > S

Re: config variables in config.h

2002-09-05 Thread Viktor Pavlenko
> "GD" == Guido Draheim <[EMAIL PROTECTED]> writes: GD> Es schrieb Viktor Pavlenko: >> >> Hello, >> >> I would like my program to know where it has been installed, in >> particular, the location of $datadir. Looks like a natural way >> to do it is to have a #defi

Re: config variables in config.h

2002-09-05 Thread Alexandre Duret-Lutz
>>> "Earnie" == Earnie Boyd <[EMAIL PROTECTED]> writes: Earnie> Alexandre Duret-Lutz wrote: >> >> for an example. >> >> (Obviously there are situation wheres computing relative paths is not >> always possible -- think A:\foo C:\bar -- but I can live with that.) Earnie> Why should this p

Re: config variables in config.h

2002-09-05 Thread Earnie Boyd
Alexandre Duret-Lutz wrote: > > for an example. > > (Obviously there are situation wheres computing relative paths is not > always possible -- think A:\foo C:\bar -- but I can live with that.) Why should this present problems? Earnie.

Re: config variables in config.h

2002-09-05 Thread Alexandre Duret-Lutz
>>> "Viktor" == Viktor Pavlenko <[EMAIL PROTECTED]> writes: [...] Viktor> I tried the following in configure.in: Viktor> AC_DEFINE_UNQUOTED(MYPROG_DATA_DIR,$datadir,[myprog data directory]) Viktor> but it doesn't work ($prefix/share is inserted and not expanded). I Viktor> would appreciate

Re: config variables in config.h

2002-09-05 Thread Paul Eggert
> From: Viktor Pavlenko <[EMAIL PROTECTED]> > Date: Wed, 4 Sep 2002 20:39:48 -0400 > > I would like my program to know where it has been installed, in > particular, the location of $datadir. Looks like a natural way to do > it is to have a #define in config.h, like this: > > /* > * myprog data

Re: config variables in config.h

2002-09-05 Thread Guido Draheim
Es schrieb Viktor Pavlenko: > > Hello, > > I would like my program to know where it has been installed, in > particular, the location of $datadir. Looks like a natural way to do > it is to have a #define in config.h, like this: > > /* > * myprog data directory > */ > #define MYPROG_DATA_DIR "

Re: config variables in config.h

2002-09-04 Thread Akim Demaille
| Hello, | I would like my program to know where it has been installed, in | particular, the location of $datadir. Looks like a natural way to do | it is to have a #define in config.h, like this: | | /* | * myprog data directory | */ | #define MYPROG_DATA_DIR "/usr/local/share/myprog" | | I t

Re: config variables in config.h

2002-09-04 Thread Schleicher Ralph (LLI)
Viktor Pavlenko <[EMAIL PROTECTED]> writes: > AC_DEFINE_UNQUOTED(MYPROG_DATA_DIR,$datadir,[myprog data directory]) [...] > but it doesn't work ($prefix/share is inserted and not expanded). I > would appreciate it if someone could tell me how to do this properly. The following code works, but I c

config variables in config.h

2002-09-04 Thread Viktor Pavlenko
Hello, I would like my program to know where it has been installed, in particular, the location of $datadir. Looks like a natural way to do it is to have a #define in config.h, like this: /* * myprog data directory */ #define MYPROG_DATA_DIR "/usr/local/share/myprog" I tried the following in