[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Tricking AC_DEFINE to hide template?
From: |
Stepan Kasal |
Subject: |
Re: Tricking AC_DEFINE to hide template? |
Date: |
Mon, 16 May 2005 10:32:32 +0200 |
User-agent: |
Mutt/1.4.1i |
Hi,
On Sat, May 14, 2005 at 02:42:18PM +0200, Lars J. Aas wrote:
> [...] create a sed script that creates system_config.h.in
> from discard_config.h.in to avoid having defines multiple places.
that sounds reasonable.
> Multiple definitions gives out warnings BTW on a lot of compilers...
OK, then my trick wasn't useless:
The user_config.h.in is protected by #ifdef USER_CONFIG_H and configure.ac
contains:
AH_BOTTOM([/* Don't include user_config.h, it's a subset of system_config.h. */
#define GOFFICE_FEATURES_H])
Since all *.c files include system_config.h first, user_config.h is never
read when compiling the project itself.
Stepan Kasal
Re: Tricking AC_DEFINE to hide template?, Stepan Kasal, 2005/05/13