]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Make sure "make dist" works even when configured with --disable-nls.
authorBruno Haible <bruno@clisp.org>
Tue, 30 Oct 2001 11:22:29 +0000 (11:22 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 30 Oct 2001 11:22:29 +0000 (11:22 +0000)
Admin/plans
m4/ChangeLog
m4/gettext.m4

index b705bc68dc8c27e2b46922a81ecb6037ace57709..7c4fe37b857d3db102e5cdee7ef3efe9bf211974 100644 (file)
@@ -52,5 +52,3 @@ Things we plan to do. Comments welcome.
   in XEmacs 20.4.
 
 - Refer also to the GNOME translation project http://www.klid.dk/gnome/ ?
-
-- Make sure "make dist" works even when configured with --disable-nls.
index d9fedfe5a1c9f98b44502a11af4c1ced0d0ba6ef..413a5ed715d22a90fb2a75fef46f0888bbe103d3 100644 (file)
@@ -1,3 +1,8 @@
+2001-10-30  Bruno Haible  <haible@clisp.cons.org>
+
+       * gettext.m4 (AM_GNU_GETTEXT): Make sure "make dist" works even when
+       configured with --disable-nls.
+
 2001-10-21  Bruno Haible  <haible@clisp.cons.org>
 
        * mkdtemp.m4 (gt_FUNC_MKDTEMP): Also check for <inttypes.h>.
index 5cc7a274f245105ea3bf81cf53192b8cb58955ba..a8678a64e5628f70820868f29eeb7fa5bee4b81b 100644 (file)
@@ -172,52 +172,56 @@ return (int) gettext ("")]ifelse([$2], need-ngettext, [ + (int) ngettext ("", ""
         || test "$nls_cv_use_gnu_gettext" = "yes"; then
        dnl Mark actions to use GNU gettext tools.
         CATOBJEXT=.gmo
-
-       dnl Search for GNU msgfmt in the PATH.
-       AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
-         [$ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1], :)
-       AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
-
-       dnl Search for GNU xgettext in the PATH.
-       AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
-         [$ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1], :)
-
-       dnl Search for GNU msgmerge 0.11 or newer in the PATH.
-       AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge,
-         [$ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1], :)
-
-       dnl This could go away some day; the PATH_PROG_WITH_TEST already does it.
-       dnl Test whether we really found GNU msgfmt.
-       if test "$GMSGFMT" != ":"; then
-         dnl If it is no GNU msgfmt we define it as : so that the
-         dnl Makefiles still can work.
-         if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
-           : ;
-         else
-           AC_MSG_RESULT(
-             [found msgfmt program is not GNU msgfmt; ignore it])
-           GMSGFMT=":"
-         fi
-       fi
-
-       dnl This could go away some day; the PATH_PROG_WITH_TEST already does it.
-       dnl Test whether we really found GNU xgettext.
-       if test "$XGETTEXT" != ":"; then
-         dnl If it is no GNU xgettext we define it as : so that the
-         dnl Makefiles still can work.
-         if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
-           : ;
-         else
-           AC_MSG_RESULT(
-             [found xgettext program is not GNU xgettext; ignore it])
-           XGETTEXT=":"
-         fi
-       fi
       fi
 
       dnl We need to process the po/ directory.
       POSUB=po
     fi
+
+    dnl Perform the following tests also if --disable-nls has been given,
+    dnl because they are needed for "make dist" to work.
+
+    dnl Search for GNU msgfmt in the PATH.
+    AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
+      [$ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1], :)
+    AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
+
+    dnl Search for GNU xgettext in the PATH.
+    AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
+      [$ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1], :)
+
+    dnl Search for GNU msgmerge 0.11 or newer in the PATH.
+    AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge,
+      [$ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1], :)
+
+    dnl This could go away some day; the PATH_PROG_WITH_TEST already does it.
+    dnl Test whether we really found GNU msgfmt.
+    if test "$GMSGFMT" != ":"; then
+      dnl If it is no GNU msgfmt we define it as : so that the
+      dnl Makefiles still can work.
+      if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
+       : ;
+      else
+       AC_MSG_RESULT(
+         [found msgfmt program is not GNU msgfmt; ignore it])
+       GMSGFMT=":"
+      fi
+    fi
+
+    dnl This could go away some day; the PATH_PROG_WITH_TEST already does it.
+    dnl Test whether we really found GNU xgettext.
+    if test "$XGETTEXT" != ":"; then
+      dnl If it is no GNU xgettext we define it as : so that the
+      dnl Makefiles still can work.
+      if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
+       : ;
+      else
+       AC_MSG_RESULT(
+         [found xgettext program is not GNU xgettext; ignore it])
+       XGETTEXT=":"
+      fi
+    fi
+
     AC_OUTPUT_COMMANDS(
      [for ac_file in $CONFIG_FILES; do
         # Support "outfile[:infile[:infile...]]"