Re: Tricking AC_DEFINE to hide template?

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

 



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


_______________________________________________
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