On 29 Aug 2006, at 13:28, Bruno Haible wrote:
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_NGETTEXTthe AM_GNU_GETTEXT macro "knows" that a AM_GETTEXT_NEED_NGETTEXT invocationexists 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},[EMAIL PROTECTED]
Research Scientist ( '/ http://blog.azazil.net GNU Hacker / )= http://www.gnu.org/software/{libtool,m4} Technical Author `(_~)_ http://sources.redhat.com/autobook
PGP.sig
Description: This is a digitally signed message part
_______________________________________________ Bug-coreutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-coreutils
