On Tue, Sep 04, 2007 at 12:20:28PM +0200, Jean-Marc Lasgouttes wrote:

> Enrico Forestieri <[EMAIL PROTECTED]> writes:
> 
> > So, no, that is correct, because you could
> >
> > #define HAVE_FONTCONFIG_FONTCONFIG_H 0
> 
> But this is not what autoconf does.

Because it has not to. Reading the cpp info page:

   * Identifiers that are not macros, which are all considered to be the
     number zero.  This allows you to write `#if MACRO' instead of
     `#ifdef MACRO', if you know that MACRO, when defined, will always
     have a nonzero value.  Function-like macros used without their
     function call parentheses are also treated as zero.

I personally prefer the "#if HAVE_FOO" form but have no problems if
you force me to change it to "#if defined(HAVE_FOO)" ;-)

-- 
Enrico

Reply via email to