bug-coreutils
[Top][All Lists]
Advanced

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

Re: gnulib and gettextize


From: Gary V. Vaughan
Subject: Re: gnulib and gettextize
Date: Tue, 5 Sep 2006 17:04:03 +0100

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_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
Research Scientist   ( '/   http://blog.azazil.net
GNU Hacker           / )=   http://www.gnu.org/software/{libtool,m4}
Technical Author   `(_~)_   http://sources.redhat.com/autobook




Attachment: PGP.sig
Description: This is a digitally signed message part


reply via email to

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