Bruno Haible <[EMAIL PROTECTED]> writes:

> Simon Josefsson wrote:
>> However, what do you think about this?
>
> Looks all fine to me.

Thanks, installed.

>> Hm.  As far as I can tell, AC_CHECK_DECLS is not restricted to
>> functions, the autoconf manual says "If SYMBOL (a function or a
>> variable) is not declared ...".
>
> Ah indeed. It says this when talking about AC_CHECK_DECL. I looked at the
> description of AC_CHECK_DECLS only. But anyway, AC_CHECK_DECLS may not
> work for symbols that are only defined inside functions.

Right.  The code now AC_COMPILE_IFELSE, so it should be fine.  The
autoconf manual says AC_TRY_COMPILE is obsolete so I didn't want to use
it.  AC_TRY_COMPILE is used in many places in gnulib though, do we want
to care about that?  I find AC_TRY_COMPILE slightly easier to work with
than AC_COMPILE_IFELSE so perhaps we could argue that it should be
non-deprecated, unless there were a strong reason to deprecate it.

/Simon


Reply via email to