/[gcl]/gcl/binutils/gettext.m4
ViewVC logotype

Diff of /gcl/binutils/gettext.m4

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by camm, Wed Feb 25 22:29:37 2004 UTC revision 1.3 by camm, Fri Sep 9 23:32:06 2005 UTC
# Line 11  Line 11 
11    
12  # serial 3  # serial 3
13    
14  AC_DEFUN(CY_WITH_NLS,  AC_DEFUN([CY_WITH_NLS],
15    [AC_MSG_CHECKING([whether NLS is requested])    [AC_MSG_CHECKING([whether NLS is requested])
16      dnl Default is enabled NLS      dnl Default is enabled NLS
17      AC_ARG_ENABLE(nls,      AC_ARG_ENABLE(nls,
# Line 24  AC_DEFUN(CY_WITH_NLS, Line 24  AC_DEFUN(CY_WITH_NLS,
24    
25      dnl If we use NLS figure out what method      dnl If we use NLS figure out what method
26      if test "$USE_NLS" = "yes"; then      if test "$USE_NLS" = "yes"; then
       AC_DEFINE(ENABLE_NLS, 1, [Define to 1 if NLS is requested])  
27        AC_MSG_CHECKING([whether included gettext is requested])        AC_MSG_CHECKING([whether included gettext is requested])
28        AC_ARG_WITH(included-gettext,        AC_ARG_WITH(included-gettext,
29          [  --with-included-gettext use the GNU gettext library included here],          [  --with-included-gettext use the GNU gettext library included here],
# Line 40  AC_DEFUN(CY_WITH_NLS, Line 39  AC_DEFUN(CY_WITH_NLS,
39          dnl catgets is only used if permitted by option --with-catgets.          dnl catgets is only used if permitted by option --with-catgets.
40          nls_cv_header_intl=          nls_cv_header_intl=
41          nls_cv_header_libgt=          nls_cv_header_libgt=
42          CATOBJEXT=NONE          CATOBJEXT=
43    
44          AC_CHECK_HEADER(libintl.h,          AC_CHECK_HEADER(libintl.h,
45            [AC_CACHE_CHECK([for gettext in libc], gt_cv_func_gettext_libc,            [AC_CACHE_CHECK([for gettext in libc], gt_cv_func_gettext_libc,
# Line 81  AC_DEFUN(CY_WITH_NLS, Line 80  AC_DEFUN(CY_WITH_NLS,
80          dnl In the standard gettext, we would now check for catgets.          dnl In the standard gettext, we would now check for catgets.
81          dnl However, we never want to use catgets for our releases.          dnl However, we never want to use catgets for our releases.
82    
83          if test "$CATOBJEXT" = "NONE"; then          if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
84            dnl Neither gettext nor catgets in included in the C library.            # Neither gettext nor catgets in included in the C library.
85            dnl Fall back on GNU gettext library.            # Fall back on GNU gettext library (assuming it is present).
86            nls_cv_use_gnu_gettext=yes            nls_cv_use_gnu_gettext=yes
87          fi          fi
88        fi        fi
# Line 156  AC_DEFUN(CY_WITH_NLS, Line 155  AC_DEFUN(CY_WITH_NLS,
155      AC_SUBST(INTLOBJS)      AC_SUBST(INTLOBJS)
156      AC_SUBST(POFILES)      AC_SUBST(POFILES)
157      AC_SUBST(POSUB)      AC_SUBST(POSUB)
158        if test "x$CATOBJEXT" != "x"; then
159          AC_DEFINE(ENABLE_NLS, 1, [Define to 1 if NLS is requested])
160        fi
161    ])    ])
162    
163  AC_DEFUN(CY_GNU_GETTEXT,  AC_DEFUN([CY_GNU_GETTEXT],
164    [AC_REQUIRE([AC_PROG_MAKE_SET])dnl    [AC_REQUIRE([AC_PROG_MAKE_SET])dnl
165     AC_REQUIRE([AC_PROG_CC])dnl     AC_REQUIRE([AC_PROG_CC])dnl
166     AC_REQUIRE([AC_PROG_RANLIB])dnl     AC_REQUIRE([AC_PROG_RANLIB])dnl
# Line 286  __argz_count __argz_stringify __argz_nex Line 288  __argz_count __argz_stringify __argz_nex
288    
289  dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,  dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
290  dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])  dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
291  AC_DEFUN(AM_PATH_PROG_WITH_TEST,  AC_DEFUN([AM_PATH_PROG_WITH_TEST],
292  [# Extract the first word of "$2", so it can be a program name with args.  [# Extract the first word of "$2", so it can be a program name with args.
293  set dummy $2; ac_word=[$]2  set dummy $2; ac_word=[$]2
294  AC_MSG_CHECKING([for $ac_word])  AC_MSG_CHECKING([for $ac_word])
# Line 332  AC_SUBST($1)dnl Line 334  AC_SUBST($1)dnl
334    
335  # serial 1  # serial 1
336    
337  AC_DEFUN(AM_LC_MESSAGES,  AC_DEFUN([AM_LC_MESSAGES],
338    [if test $ac_cv_header_locale_h = yes; then    [if test $ac_cv_header_locale_h = yes; then
339      AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,      AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
340        [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],        [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26