Next: , Previous: , Up: Autoconf macros for use in configure.ac   [Contents][Index]


13.5.3 AM_GNU_GETTEXT_NEED in gettext.m4

The AM_GNU_GETTEXT_NEED macro declares a constraint regarding the GNU gettext implementation. The syntax is

AM_GNU_GETTEXT_NEED([needsymbol])

If needsymbol is ‘need-ngettext’, then GNU gettext implementations (in libc or libintl) without the ngettext() function will be ignored. If needsymbol is ‘need-formatstring-macros’, then GNU gettext implementations that don’t support the ISO C 99 <inttypes.h> formatstring macros will be ignored.

The optional second argument of AM_GNU_GETTEXT is also taken into account.

The AM_GNU_GETTEXT_NEED invocations can occur before or after the AM_GNU_GETTEXT invocation; the order doesn’t matter.