From: Bruno Haible Date: Fri, 4 Jan 2002 11:18:44 +0000 (+0000) Subject: Complete last patch. X-Git-Tag: v0.11~127 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=801bd52f4cc086ef568fff4a0ae408d2387bae90;p=thirdparty%2Fgettext.git Complete last patch. Fix comments. --- diff --git a/m4/ChangeLog b/m4/ChangeLog index b58b6a2ee..317a05697 100644 --- a/m4/ChangeLog +++ b/m4/ChangeLog @@ -1,8 +1,8 @@ -2002-01-03 Bruno Haible +2002-01-04 Bruno Haible * gettext.m4 (AM_GNU_GETTEXT): If no intl directory exists and GNU gettext was not found in libc or preinstalled libintl, don't define - ENABLE_NLS. + ENABLE_NLS, and set USE_NLS to 'no'. 2001-12-12 Bruno Haible diff --git a/m4/gettext.m4 b/m4/gettext.m4 index 327f0ba0c..0783a94e4 100644 --- a/m4/gettext.m4 +++ b/m4/gettext.m4 @@ -177,7 +177,12 @@ return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", AC_DEFINE(ENABLE_NLS, 1, [Define to 1 if translation of program messages to the user's native language is requested.]) + else + USE_NLS=no fi + fi + + if test "$USE_NLS" = "yes"; then if test "$gt_use_preinstalled_gnugettext" = "yes"; then if test "$gt_cv_func_gnugettext_libintl" = "yes"; then @@ -238,9 +243,8 @@ return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", ]) -dnl Checks for all prerequisites of the intl subdirectory, -dnl except for INTL_LIBTOOL_SUFFIX_PREFIX (and possibly LIBTOOL), INTLOBJS, -dnl USE_INCLUDED_LIBINTL, BUILD_INCLUDED_LIBINTL. +dnl Checks for all prerequisites of the po subdirectory, +dnl except for USE_NLS. AC_DEFUN([AM_PO_SUBDIRS], [ AC_REQUIRE([AC_PROG_MAKE_SET])dnl @@ -397,8 +401,9 @@ AC_DEFUN([AM_PO_SUBDIRS], ]) -dnl Checks for all prerequisites of the po subdirectory, -dnl except for USE_NLS. +dnl Checks for all prerequisites of the intl subdirectory, +dnl except for INTL_LIBTOOL_SUFFIX_PREFIX (and possibly LIBTOOL), INTLOBJS, +dnl USE_INCLUDED_LIBINTL, BUILD_INCLUDED_LIBINTL. AC_DEFUN([AM_INTL_SUBDIR], [ AC_REQUIRE([AC_PROG_INSTALL])dnl