]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Improve gettext.m4 in various cases. 0.10.xx-branchpoint
authorBruno Haible <bruno@clisp.org>
Mon, 30 Apr 2001 11:04:28 +0000 (11:04 +0000)
committerBruno Haible <bruno@clisp.org>
Mon, 30 Apr 2001 11:04:28 +0000 (11:04 +0000)
m4/ChangeLog
m4/gettext.m4

index a521aa47abf074e4283f1b73a72fabbdf7793846..29da100658169718c61f60da28b12f25980d2d2f 100644 (file)
@@ -1,3 +1,9 @@
+2001-04-27  H. J. Lu  <hjl@lucon.org>
+            Bruno Haible  <haible@clisp.cons.org>
+
+       * gettext.m4 (AM_WITH_NLS): Fix $CONFIG_FILES matching so it deals
+       correctly with tabs. Define INSTOBJEXT and GENCAT for older Makefiles.
+
 2001-04-19  Bruno Haible  <haible@clisp.cons.org>
 
        * gettext-0.10.37 released.
index 37fc43c83d355ad4b6d3f7d0d1cf5179e2022214..658785bf31209b592781d7eca0e2f0513e4ef1fb 100644 (file)
@@ -159,10 +159,12 @@ return (int) gettext ("")]ifelse([$2], need-ngettext, [ + (int) ngettext ("", ""
       POSUB=po
     fi
     AC_OUTPUT_COMMANDS(
-     [case " "$CONFIG_FILES" " in *" po/Makefile.in "* | *" po/Makefile.in:"*)
-        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
-        ;;
-      esac])
+     [for f in $CONFIG_FILES; do
+        case $f in po/Makefile.in | po/Makefile.in:*)
+          sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
+          ;;
+        esac
+      done])
 
 
     dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL
@@ -228,6 +230,14 @@ changequote([,])dnl
     dnl For backward compatibility. Some Makefiles may be using this.
     DATADIRNAME=share
     AC_SUBST(DATADIRNAME)
+
+    dnl For backward compatibility. Some Makefiles may be using this.
+    INSTOBJEXT=.mo
+    AC_SUBST(INSTOBJEXT)
+
+    dnl For backward compatibility. Some Makefiles may be using this.
+    GENCAT=gencat
+    AC_SUBST(GENCAT)
   ])
 
 dnl Usage: Just like AM_WITH_NLS, which see.