Re: config.h variable substitution

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2008-02-06 at 23:36 +0800, Gary Vaughan wrote:
> Look up the documentation for Autoconf's AC_DEFINE_UNQUOTED.

I did that. I've tried using:

AC_DEFINE_UNQUOTED([LORICA_CONF_FILE],
["$sysconfdir/lorica.conf"], [Full path to Lorica configuration file])


Which gives me:

/* Full path to Lorica configuration file */
#define LORICA_CONF_FILE "${prefix}/etc/lorica.conf"

I'm sure that I'm doing something stupid, but what?

Thanks,
  jules


> -- Sent from my iPod
> 
> On 6 Feb 2008, at 22:55, Jules Colding <colding@xxxxxxxxxxx> wrote:
> 
> > Hi,
> >
> > I want to specify a default location for a configuration file so  
> > that my
> > program can find it from a define in config.h.
> >
> > I want to install the file as "/etc/lorica.conf". So I'll like to do
> > something like this to get a defined value that can be used at compile
> > time:
> >
> > AC_DEFINE([LORICA_CONF_FILE], ["$sysconfdir/lorica.conf"], [Full  
> > path to Lorica configuration file])
> >
> >
> > Unfortunately this doesn't work. In config.h I get:
> >
> > /* Full path to Lorica configuration file */
> > #define LORICA_CONF_FILE "$sysconfdir/lorica.conf"
> >
> >
> > but I want:
> >
> > /* Full path to Lorica configuration file */
> > #define LORICA_CONF_FILE "/etc/lorica.conf"
> >
> >
> > Is it possible to do this?
> 
> 
> _______________________________________________
> Autoconf mailing list
> Autoconf@xxxxxxx
> http://lists.gnu.org/mailman/listinfo/autoconf



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

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux