autoconf
[Top][All Lists]
Advanced

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

Re: why check for config.h ?


From: Andreas Schwab
Subject: Re: why check for config.h ?
Date: Fri, 12 Jul 2002 10:24:17 +0200
User-agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.3.50 (ia64-suse-linux)

Ionutz Borcoman <address@hidden> writes:

|> Why all to docs about autotools suggest to guard the include of config.h
|> like this ?
|> 
|> #ifdef HAVE_CONFIG_H
|> #include "config.h"
|> #endif
|> 
|> Is it possible to don't have it, if I've explicitly requested it  to be
|> generated by AM_CONFIG_HEADERS ?
|> 
|> Why can't I just say ?
|> 
|> #include "config.h"

Perhaps so that you can share the file between projects using
A[CM]_CONFIG_HEADER and others that do not (and pass the defines on the
command line).

Andreas.

-- 
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



reply via email to

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