diff options
author | Bruno Haible <bruno@clisp.org> | 2001-10-30 11:22:29 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2001-10-30 11:22:29 +0000 |
commit | 1c7a094aff6b140a7f549b8c329d2bc2d8a08c74 (patch) | |
tree | 1688648ac88ac14335aa5191f7cbfee10eb14c57 | |
parent | 36c629b1d7099383bdaccf3c595be79f8eb4ba6a (diff) | |
download | external_gettext-1c7a094aff6b140a7f549b8c329d2bc2d8a08c74.zip external_gettext-1c7a094aff6b140a7f549b8c329d2bc2d8a08c74.tar.gz external_gettext-1c7a094aff6b140a7f549b8c329d2bc2d8a08c74.tar.bz2 |
Make sure "make dist" works even when configured with --disable-nls.
-rw-r--r-- | Admin/plans | 2 | ||||
-rw-r--r-- | m4/ChangeLog | 5 | ||||
-rw-r--r-- | m4/gettext.m4 | 86 |
3 files changed, 50 insertions, 43 deletions
diff --git a/Admin/plans b/Admin/plans index b705bc6..7c4fe37 100644 --- a/Admin/plans +++ b/Admin/plans @@ -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. diff --git a/m4/ChangeLog b/m4/ChangeLog index d9fedfe..413a5ed 100644 --- a/m4/ChangeLog +++ b/m4/ChangeLog @@ -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>. diff --git a/m4/gettext.m4 b/m4/gettext.m4 index 5cc7a27..a8678a6 100644 --- a/m4/gettext.m4 +++ b/m4/gettext.m4 @@ -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...]]" |