autoconf
[Top][All Lists]
Advanced

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

autoheader deprecated?


From: Christophe-Marie Duquesne
Subject: autoheader deprecated?
Date: Tue, 28 Apr 2009 18:32:40 +0200

Hi,

I've read it was deprecated to deliver the file config.h generated by
autoheader (or whatever name you give it) in a project (see (1)).

So, if I understand well, _none of the files of my project should
#include <myproject/config.h>_.

However, I need to pass some definitions to the compiler, and I don't
see how to do it in an elegant way without including config.h.

Not using autoheader is a solution: then every preprocessor definition
is passed to the compiler by -D flags, but the output of the
compilation is quite unreadable.

I guess this is not the only solution, since being obliged not to use
autoheader would more or less make autoheader deprecated, and I did
not find any information about this.

So, could someone provide me a method for using autoheader and
AC_DEFINE directives in my configure.ac without including config.h in
my project files?


(1): The fedora packagers refuse to include it in their distribution:
https://bugzilla.redhat.com/show_bug.cgi?id=489233#c4, at the end of
the comment. If I understand well, the "bad side effect" would occur
if you #include<foo_package> and <bar_package> and the two of them
contain a config.h with conflicting preprocessor directives.

PS: I do read as much documentation as I can, and I did browsed the
mail archive before posting. However, if this has already been
discussed here or put in the doc, please be kind enough not to pardon
me.

Cheers
Christophe-Marie Duquesne




reply via email to

[Prev in Thread] Current Thread [Next in Thread]