changeset 6750:608add4e5b80

Support for packages that use "gettextize --intl". From Claudio Fontana.
author Bruno Haible <bruno@clisp.org>
date Mon, 24 Apr 2006 11:35:07 +0000
parents 912476e213eb
children 1b0092424a44
files ChangeLog gnulib-tool modules/gettext
diffstat 3 files changed, 19 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-04-23  Claudio Fontana  <claudio@gnu.org>
+            Bruno Haible  <bruno@clisp.org>
+
+	* modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
+	* gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
+	for AM_CPPFLAGS.
+
 2006-04-23  Bruno Haible  <bruno@clisp.org>
 
 	* gnulib-tool (func_usage): Fix --import description. Document --update.
--- a/gnulib-tool
+++ b/gnulib-tool
@@ -22,7 +22,7 @@
 
 progname=$0
 package=gnulib
-cvsdatestamp='$Date: 2006-04-24 11:30:00 $'
+cvsdatestamp='$Date: 2006-04-24 11:35:07 $'
 last_checkin_date=`echo "$cvsdatestamp" | sed -e 's,^\$[D]ate: ,,'`
 version=`echo "$last_checkin_date" | sed -e 's/ .*$//' -e 's,/,-,g'`
 
@@ -745,6 +745,8 @@
   echo "DISTCLEANFILES ="
   echo "MAINTAINERCLEANFILES ="
   echo
+  echo "AM_CPPFLAGS ="
+  echo
   for module in $modules; do
     func_verify_nontests_module
     if test -n "$module"; then
--- a/modules/gettext
+++ b/modules/gettext
@@ -39,6 +39,15 @@
 AM_GNU_GETTEXT_VERSION([0.14.5])
 
 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
+# -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
 
 Include:
 "gettext.h"