Another problem is what to do with the second argument of
AM_GNU_GETTEXT.
Question to the autoconf experts: Is it possible to write a macro
AM_GETTEXT_NEED_NGETTEXT such that whenever a user writes
AM_GETTEXT_NEED_NGETTEXT
AM_GNU_GETTEXT
or
AM_GNU_GETTEXT
AM_GETTEXT_NEED_NGETTEXT
the AM_GNU_GETTEXT macro "knows" that a AM_GETTEXT_NEED_NGETTEXT
invocation
exists elsewhere? So, a kind of "backward propagation"?
Untested:
m4_define([gt__NEED_NGETTEXT_FU],
[shell code to execute after expansion of AM_GNU_GETTEXT,
whenever AM_GETTEXT_NEED_NGETTEXT is present somewhere])
AC_DEFUN([AM_GNU_GETTEXT],
[
...current contents of AM_GNU_GETTEXT definition...
dnl make sure gt__NEED_NGETTEXT_FU is always expanded in the
dnl presence of AM_GETTEXT_NEED_NGETTEXT:
AC_PROVIDE_IFELSE([AM_GETTEXT_NEED_NGETTEXT],
[gt__NEED_NGETTEXT_FU],
[m4_define([AM_GETTEXT_NEED_NGETTEXT],
[defn([AM_GETTEXT_NEED_NGETTEXT])
gt__NEED_NGETTEXT_FU
])dnl
])# AM_GNU_GETTEXT
Cheers,
Gary.
--
Gary V. Vaughan ())_. gary@
{lilith.warpmail.net,gnu.org},address@hidden