This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: AC_DEFINE_DIR in autoconf


Baurjan Ismagulov wrote:
I would ideally prefer to have a single configuration file, namely,
config.h.

I don't want to talk about the GNU conformance because I have the same doubts as you :) but as for having a single file, I often have to do lots of tests of things defined in config.h, so I usually need another header anyway. If config.h has a "#define HAVE_FOO", I'll need to do "#ifndef HAVE_FOO <code to define a replacement for foo>". I put all these tests in a "system.h" file. In your case, I'd make "system.h" include "<config.h>" and "datadir.h".

--
Leonardo Boiko

Attachment: signature.asc
Description: OpenPGP digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]