[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
config.h variable substitution
From: |
Jules Colding |
Subject: |
config.h variable substitution |
Date: |
Wed, 06 Feb 2008 15:55:18 +0100 |
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?
Thanks,
jules
- config.h variable substitution,
Jules Colding <=