bug-gnulib
[Top][All Lists]
Advanced

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

fallback _GL_ATTRIBUTE_* definitions in intl.m4


From: Daiki Ueno
Subject: fallback _GL_ATTRIBUTE_* definitions in intl.m4
Date: Wed, 16 Jul 2014 16:19:16 +0900
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

Hi,

There are growing number of uses of _GL_ATTRIBUTE_* in Gnulib source
files, which are also shared with libintl.  Since libintl can be copied
into non-Gnulib projects, we have to add fallback definitions to the
libintl source.  However, this might cause divergence between Gnulib and
gettext in the future.

So, in the gettext git, I added a new M4 macro gt_GL_ATTRIBUTE, which
copies necessary C macros from gnulib-common.m4:

  AC_DEFUN([AM_INTL_SUBDIR],
  [...
    AC_REQUIRE([gt_GL_ATTRIBUTE])dnl
  ])

  AC_DEFUN([gt_GL_ATTRIBUTE], [
    m4_ifndef([gl_[]COMMON],
      AH_VERBATIM([gt_gl_attribute],
  [#ifndef _GL_ATTRIBUTE_PURE
   #define _GL_ATTRIBUTE_PURE ...

Actual commit in gettext:
http://git.savannah.gnu.org/cgit/gettext.git/commit/?h=maint&id=0f8e2cca

Does this look OK?  I'd like someone to double-check if it does not
break anything.  Or, are there any better ideas?

Regards,
-- 
Daiki Ueno



reply via email to

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