filename | aclocal.m4 |
changeset | 10:c898b37506e0 |
prev | 1:eea311cfd33e |
next | 180:e6dcf9b65658 |
author | nkeynes |
date | Sun Dec 11 05:15:36 2005 +0000 (17 years ago) |
permissions | -rw-r--r-- |
last change | Add CPU disasembly options to mode dropdown Split sh4/mem.c into core mem.c and sh4/mem.c Start adding copyright comments to file headers |
file | annotate | diff | log | raw |
1.1 --- a/aclocal.m4 Sat Mar 13 00:03:32 2004 +00001.2 +++ b/aclocal.m4 Sun Dec 11 05:15:36 2005 +00001.3 @@ -1092,7 +1092,7 @@1.6 # Copyright (C) 1995-2002 Free Software Foundation, Inc.1.7 -# Copyright (C) 2001-2003 Red Hat, Inc.1.8 +# Copyright (C) 2001-2003,2004 Red Hat, Inc.1.9 #1.10 # This file is free software, distributed under the terms of the GNU1.11 # General Public License. As a special exception to the GNU General1.12 @@ -1115,7 +1115,9 @@1.13 #1.14 # Added better handling of ALL_LINGUAS from GNU gettext version1.15 # written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/30021.16 -1.17 +#1.18 +# Modified to require ngettext1.19 +# Matthias Clasen <mclasen@redhat.com> 08/06/20041.20 #1.21 # We need this here as well, since someone might use autoconf-2.5x1.22 # to configure GLib then an older version to configure a package1.23 @@ -1208,16 +1210,27 @@1.24 #1.25 # First check in libc1.26 #1.27 - AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,1.28 + AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,1.29 [AC_TRY_LINK([1.30 #include <libintl.h>1.31 ],1.32 - [return (int) dgettext ("","")],1.33 - gt_cv_func_dgettext_libc=yes,1.34 - gt_cv_func_dgettext_libc=no)1.35 + [return !ngettext ("","", 1)],1.36 + gt_cv_func_ngettext_libc=yes,1.37 + gt_cv_func_ngettext_libc=no)1.38 ])1.40 - if test "$gt_cv_func_dgettext_libc" = "yes" ; then1.41 + if test "$gt_cv_func_ngettext_libc" = "yes" ; then1.42 + AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,1.43 + [AC_TRY_LINK([1.44 +#include <libintl.h>1.45 +],1.46 + [return !dgettext ("","")],1.47 + gt_cv_func_dgettext_libc=yes,1.48 + gt_cv_func_dgettext_libc=no)1.49 + ])1.50 + fi1.51 +1.52 + if test "$gt_cv_func_ngettext_libc" = "yes" ; then1.53 AC_CHECK_FUNCS(bind_textdomain_codeset)1.54 fi1.56 @@ -1225,25 +1238,29 @@1.57 # If we don't have everything we want, check in libintl1.58 #1.59 if test "$gt_cv_func_dgettext_libc" != "yes" \1.60 + || test "$gt_cv_func_ngettext_libc" != "yes" \1.61 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then1.63 AC_CHECK_LIB(intl, bindtextdomain,1.64 - [AC_CHECK_LIB(intl, dgettext,1.65 - gt_cv_func_dgettext_libintl=yes)])1.66 + [AC_CHECK_LIB(intl, ngettext,1.67 + [AC_CHECK_LIB(intl, dgettext,1.68 + gt_cv_func_dgettext_libintl=yes)])])1.70 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then1.71 AC_MSG_CHECKING([if -liconv is needed to use gettext])1.72 AC_MSG_RESULT([])1.73 - AC_CHECK_LIB(intl, dcgettext,1.74 + AC_CHECK_LIB(intl, ngettext,1.75 + [AC_CHECK_LIB(intl, dcgettext,1.76 [gt_cv_func_dgettext_libintl=yes1.77 libintl_extra_libs=-liconv],1.78 - :,-liconv)1.79 + :,-liconv)],1.80 + :,-liconv)1.81 fi1.83 #1.84 # If we found libintl, then check in it for bind_textdomain_codeset();1.85 # we'll prefer libc if neither have bind_textdomain_codeset(),1.86 - # and both have dgettext1.87 + # and both have dgettext and ngettext1.88 #1.89 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then1.90 glib_save_LIBS="$LIBS"1.91 @@ -1255,7 +1272,8 @@1.92 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then1.93 gt_cv_func_dgettext_libc=no1.94 else1.95 - if test "$gt_cv_func_dgettext_libc" = "yes"; then1.96 + if test "$gt_cv_func_dgettext_libc" = "yes" \1.97 + && test "$gt_cv_func_ngettext_libc" = "yes"; then1.98 gt_cv_func_dgettext_libintl=no1.99 fi1.100 fi1.101 @@ -1370,7 +1388,7 @@1.102 # on various variables needed by the Makefile.in.in installed by1.103 # glib-gettextize.1.104 dnl1.105 -glib_DEFUN(GLIB_GNU_GETTEXT,1.106 +glib_DEFUN([GLIB_GNU_GETTEXT],1.107 [AC_REQUIRE([AC_PROG_CC])dnl1.108 AC_REQUIRE([AC_HEADER_STDC])dnl1.110 @@ -1447,7 +1465,7 @@1.111 # -------------------------------1.112 # Define VARIABLE to the location where catalog files will1.113 # be installed by po/Makefile.1.114 -glib_DEFUN(GLIB_DEFINE_LOCALEDIR,1.115 +glib_DEFUN([GLIB_DEFINE_LOCALEDIR],1.116 [glib_REQUIRE([GLIB_GNU_GETTEXT])dnl1.117 glib_save_prefix="$prefix"1.118 glib_save_exec_prefix="$exec_prefix"1.119 @@ -1468,7 +1486,7 @@1.120 dnl Now the definitions that aclocal will find1.121 dnl1.122 ifdef(glib_configure_in,[],[1.123 -AC_DEFUN(AM_GLIB_GNU_GETTEXT,[GLIB_GNU_GETTEXT($@)])1.124 -AC_DEFUN(AM_GLIB_DEFINE_LOCALEDIR,[GLIB_DEFINE_LOCALEDIR($@)])1.125 +AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])1.126 +AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])1.127 ])dnl
.