Hello,

On Mon, Aug 14, 2006 at 11:42:28PM -0400, David Fang wrote:
> -------->8 snip 8<--------
> | #if HAVE_STDINT_H
> | # include <stdint.h>
> | #endif
> -------->8 snip 8<--------
...
> | #ifdef HAVE_STDINT_H
> | # include <stdint.h>
> | #endif
> 
> After all, isn't this the convention used in producing "config.h"
> and using it for conditional #includes?

Though I originally thought that `#ifdef' should be used, when I came
to autoconf community, I heard this ``it is defined as `1', so
that you can use either `#if' or `#ifdef'.''

I cannot recall where i read this, nor I can recall any reason why
#if would be better.

If there is no reason against it, we might consider switching to
#ifdef.  Paul, Ralf, what do you think?

And no, this issue is not regression: Autoconf 2.59 contains `#if HAVE'
22 times (not counting the docs), but NO occurence of `#ifdef HAVE'.
In current CVS, we have still 19 occurences of `#if HAVE' and only
7 occurences of `#ifdef HAVE' .

Have a nice day,
        Stepan


_______________________________________________
Autoconf mailing list
Autoconf@gnu.org
http://lists.gnu.org/mailman/listinfo/autoconf

Reply via email to