[Top][All Lists]

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

Re: [PATCH] Fix use of ENABLE_NLS (which is not always defined)

From: Grégoire Sutre
Subject: Re: [PATCH] Fix use of ENABLE_NLS (which is not always defined)
Date: Thu, 18 Mar 2010 01:58:25 +0100
User-agent: Mozilla-Thunderbird (X11/20090707)

Eric Blake wrote:

Then you contrast it with AC_CHECK_DECL, which defines


to either 0 or 1, but always defines it.  If you use #ifdef in those
situations, you lose (you typed 3 more bytes, and you get the wrong result).


Just out of curiosity: is there a reason for this behavior of
AC_CHECK_DECLS, which, quoting the manual, is unlike the other
‘AC_CHECK_*S’ macros?

It is a maintenance nightmare to remember which variables are defined as
0 and which are left undefined, and much simpler to blindly use #if than
it is to decide when #ifdef is necessary.

I understand now.  Many thanks for your explanations,


reply via email to

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