gettext: now it's your responsibility to add -I$(top_builddir)/intl
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 25 Apr 2013 05:26:31 +0000 (22:26 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 30 Apr 2013 16:42:39 +0000 (09:42 -0700)
Formerly, it was your responsibility to do this for all Makefile.ams
other than Gnulib's.  Now it's your responsibility to do it for
Gnulib's Makefile.am, too.
* NEWS: Document this.
* modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.

ChangeLog
NEWS
modules/gettext

index f44b450..b2f0354 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
 
+       gettext: now it's your responsibility to add -I$(top_builddir)/intl
+       Formerly, it was your responsibility to do this for all Makefile.ams
+       other than Gnulib's.  Now it's your responsibility to do it for
+       Gnulib's Makefile.am, too.
+       * NEWS: Document this.
+       * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
+
        acl: include errno.h to get errno
        Reported by Daiki Ueno in
        <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00073.html>.
diff --git a/NEWS b/NEWS
index 2227d3f..fa3a8c6 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,10 @@ Important notes
 
 Date        Modules         Changes
 
+2013-04-24  gettext         If your project uses 'gettextize --intl' it is now
+                            your responsibility to put -I$(top_builddir)/intl
+                            into the Makefile.am for gnulib.
+
 2012-06-27  elisp-comp      The module 'elisp-comp' is removed; the script is
                             not independently useful outside of automake.
 
index ca0b684..3da0e2e 100644 (file)
@@ -45,15 +45,16 @@ AM_GNU_GETTEXT([external])
 AM_GNU_GETTEXT_VERSION([0.18.1])
 
 Makefile.am:
-# This is for those projects which use "gettextize --intl" to put a source-code
-# copy of libintl into their package. In such projects, every Makefile.am needs
+# If your project uses "gettextize --intl" to put a source-code
+# copy of libintl into the package, every Makefile.am needs
 # -I$(top_builddir)/intl, so that <libintl.h> can be found in this directory.
-# For the Makefile.ams in other directories it is the maintainer's
-# responsibility; for the one from gnulib we do it here.
-# This option has no effect when the user disables NLS (because then the intl
-# directory contains no libintl.h file) or when the project does not use
-# "gettextize --intl".
-AM_CPPFLAGS += -I$(top_builddir)/intl
+# Here's one way to do this:
+#AM_CPPFLAGS += -I$(top_builddir)/intl
+# This option has no effect when the user disables NLS (because then
+# the intl directory contains no libintl.h file).  This option is not
+# enabled by default because the intl directory might not exist if
+# your project does not use "gettext --intl", and some compilers
+# complain about -I options applied to nonexistent directories.
 
 Include:
 "gettext.h"