diff options
author | Christian Grothoff <christian@grothoff.org> | 2007-03-25 20:37:42 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2007-03-25 20:37:42 +0000 |
commit | 8c8c8c5717b8e992bb79dd77493239cf2bd377f5 (patch) | |
tree | c22e271fdb2c2295edb650e4221e935d7d370f21 /m4 | |
parent | 99ba87bf1fc1b0df87544854d240f73a6850fea7 (diff) | |
download | gnunet-gtk-8c8c8c5717b8e992bb79dd77493239cf2bd377f5.tar.gz gnunet-gtk-8c8c8c5717b8e992bb79dd77493239cf2bd377f5.zip |
release bump
Diffstat (limited to 'm4')
-rw-r--r-- | m4/codeset.m4 | 14 | ||||
-rw-r--r-- | m4/gettext.m4 | 304 | ||||
-rw-r--r-- | m4/glibc21.m4 | 14 | ||||
-rw-r--r-- | m4/iconv.m4 | 8 | ||||
-rw-r--r-- | m4/intdiv0.m4 | 8 | ||||
-rw-r--r-- | m4/intmax.m4 | 23 | ||||
-rw-r--r-- | m4/inttypes-pri.m4 | 22 | ||||
-rw-r--r-- | m4/inttypes_h.m4 | 24 | ||||
-rw-r--r-- | m4/lcmessage.m4 | 20 | ||||
-rw-r--r-- | m4/lib-ld.m4 | 8 | ||||
-rw-r--r-- | m4/lib-link.m4 | 131 | ||||
-rw-r--r-- | m4/lib-prefix.m4 | 52 | ||||
-rw-r--r-- | m4/longdouble.m4 | 15 | ||||
-rw-r--r-- | m4/longlong.m4 | 53 | ||||
-rw-r--r-- | m4/nls.m4 | 32 | ||||
-rw-r--r-- | m4/po.m4 | 127 | ||||
-rw-r--r-- | m4/printf-posix.m4 | 8 | ||||
-rw-r--r-- | m4/progtest.m4 | 15 | ||||
-rw-r--r-- | m4/size_max.m4 | 81 | ||||
-rw-r--r-- | m4/stdint_h.m4 | 24 | ||||
-rw-r--r-- | m4/uintmax_t.m4 | 22 | ||||
-rw-r--r-- | m4/ulonglong.m4 | 53 | ||||
-rw-r--r-- | m4/wchar_t.m4 | 8 | ||||
-rw-r--r-- | m4/wint_t.m4 | 8 | ||||
-rw-r--r-- | m4/xsize.m4 | 13 |
25 files changed, 500 insertions, 587 deletions
diff --git a/m4/codeset.m4 b/m4/codeset.m4 index 223955b4..59535ebc 100644 --- a/m4/codeset.m4 +++ b/m4/codeset.m4 | |||
@@ -1,8 +1,10 @@ | |||
1 | # codeset.m4 serial 2 (gettext-0.16) | 1 | # codeset.m4 serial AM1 (gettext-0.10.40) |
2 | dnl Copyright (C) 2000-2002, 2006 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2000-2002 Free Software Foundation, Inc. |
3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software, distributed under the terms of the GNU |
4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl General Public License. As a special exception to the GNU General |
5 | dnl with or without modifications, as long as this notice is preserved. | 5 | dnl Public License, this file may be distributed as part of a program |
6 | dnl that contains a configuration script generated by Autoconf, under | ||
7 | dnl the same distribution terms as the rest of that program. | ||
6 | 8 | ||
7 | dnl From Bruno Haible. | 9 | dnl From Bruno Haible. |
8 | 10 | ||
@@ -10,7 +12,7 @@ AC_DEFUN([AM_LANGINFO_CODESET], | |||
10 | [ | 12 | [ |
11 | AC_CACHE_CHECK([for nl_langinfo and CODESET], am_cv_langinfo_codeset, | 13 | AC_CACHE_CHECK([for nl_langinfo and CODESET], am_cv_langinfo_codeset, |
12 | [AC_TRY_LINK([#include <langinfo.h>], | 14 | [AC_TRY_LINK([#include <langinfo.h>], |
13 | [char* cs = nl_langinfo(CODESET); return !cs;], | 15 | [char* cs = nl_langinfo(CODESET);], |
14 | am_cv_langinfo_codeset=yes, | 16 | am_cv_langinfo_codeset=yes, |
15 | am_cv_langinfo_codeset=no) | 17 | am_cv_langinfo_codeset=no) |
16 | ]) | 18 | ]) |
diff --git a/m4/gettext.m4 b/m4/gettext.m4 index 91c345e9..a374f03f 100644 --- a/m4/gettext.m4 +++ b/m4/gettext.m4 | |||
@@ -1,8 +1,10 @@ | |||
1 | # gettext.m4 serial 59 (gettext-0.16.1) | 1 | # gettext.m4 serial 28 (gettext-0.13) |
2 | dnl Copyright (C) 1995-2006 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 1995-2003 Free Software Foundation, Inc. |
3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software, distributed under the terms of the GNU |
4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl General Public License. As a special exception to the GNU General |
5 | dnl with or without modifications, as long as this notice is preserved. | 5 | dnl Public License, this file may be distributed as part of a program |
6 | dnl that contains a configuration script generated by Autoconf, under | ||
7 | dnl the same distribution terms as the rest of that program. | ||
6 | dnl | 8 | dnl |
7 | dnl This file can can be used in projects which are not available under | 9 | dnl This file can can be used in projects which are not available under |
8 | dnl the GNU General Public License or the GNU Library General Public | 10 | dnl the GNU General Public License or the GNU Library General Public |
@@ -15,7 +17,7 @@ dnl They are *not* in the public domain. | |||
15 | 17 | ||
16 | dnl Authors: | 18 | dnl Authors: |
17 | dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000. | 19 | dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000. |
18 | dnl Bruno Haible <haible@clisp.cons.org>, 2000-2006. | 20 | dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003. |
19 | 21 | ||
20 | dnl Macro to add for using GNU gettext. | 22 | dnl Macro to add for using GNU gettext. |
21 | 23 | ||
@@ -63,13 +65,8 @@ AC_DEFUN([AM_GNU_GETTEXT], | |||
63 | ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], , | 65 | ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], , |
64 | [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT | 66 | [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT |
65 | ])])])]) | 67 | ])])])]) |
66 | define([gt_included_intl], | 68 | define(gt_included_intl, ifelse([$1], [external], [no], [yes])) |
67 | ifelse([$1], [external], | 69 | define(gt_libtool_suffix_prefix, ifelse([$1], [use-libtool], [l], [])) |
68 | ifdef([AM_GNU_GETTEXT_][INTL_SUBDIR], [yes], [no]), | ||
69 | [yes])) | ||
70 | define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], [])) | ||
71 | gt_NEEDS_INIT | ||
72 | AM_GNU_GETTEXT_NEED([$2]) | ||
73 | 70 | ||
74 | AC_REQUIRE([AM_PO_SUBDIRS])dnl | 71 | AC_REQUIRE([AM_PO_SUBDIRS])dnl |
75 | ifelse(gt_included_intl, yes, [ | 72 | ifelse(gt_included_intl, yes, [ |
@@ -83,7 +80,7 @@ AC_DEFUN([AM_GNU_GETTEXT], | |||
83 | dnl Sometimes libintl requires libiconv, so first search for libiconv. | 80 | dnl Sometimes libintl requires libiconv, so first search for libiconv. |
84 | dnl Ideally we would do this search only after the | 81 | dnl Ideally we would do this search only after the |
85 | dnl if test "$USE_NLS" = "yes"; then | 82 | dnl if test "$USE_NLS" = "yes"; then |
86 | dnl if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then | 83 | dnl if test "$gt_cv_func_gnugettext_libc" != "yes"; then |
87 | dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT | 84 | dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT |
88 | dnl the configure script would need to contain the same shell code | 85 | dnl the configure script would need to contain the same shell code |
89 | dnl again, outside any 'if'. There are two solutions: | 86 | dnl again, outside any 'if'. There are two solutions: |
@@ -95,11 +92,8 @@ AC_DEFUN([AM_GNU_GETTEXT], | |||
95 | AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) | 92 | AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) |
96 | ]) | 93 | ]) |
97 | 94 | ||
98 | dnl Sometimes, on MacOS X, libintl requires linking with CoreFoundation. | ||
99 | gt_INTL_MACOSX | ||
100 | |||
101 | dnl Set USE_NLS. | 95 | dnl Set USE_NLS. |
102 | AC_REQUIRE([AM_NLS]) | 96 | AM_NLS |
103 | 97 | ||
104 | ifelse(gt_included_intl, yes, [ | 98 | ifelse(gt_included_intl, yes, [ |
105 | BUILD_INCLUDED_LIBINTL=no | 99 | BUILD_INCLUDED_LIBINTL=no |
@@ -109,15 +103,6 @@ AC_DEFUN([AM_GNU_GETTEXT], | |||
109 | LTLIBINTL= | 103 | LTLIBINTL= |
110 | POSUB= | 104 | POSUB= |
111 | 105 | ||
112 | dnl Add a version number to the cache macros. | ||
113 | case " $gt_needs " in | ||
114 | *" need-formatstring-macros "*) gt_api_version=3 ;; | ||
115 | *" need-ngettext "*) gt_api_version=2 ;; | ||
116 | *) gt_api_version=1 ;; | ||
117 | esac | ||
118 | gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" | ||
119 | gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" | ||
120 | |||
121 | dnl If we use NLS figure out what method | 106 | dnl If we use NLS figure out what method |
122 | if test "$USE_NLS" = "yes"; then | 107 | if test "$USE_NLS" = "yes"; then |
123 | gt_use_preinstalled_gnugettext=no | 108 | gt_use_preinstalled_gnugettext=no |
@@ -136,35 +121,28 @@ AC_DEFUN([AM_GNU_GETTEXT], | |||
136 | dnl to use. If GNU gettext is available we use this. Else we have | 121 | dnl to use. If GNU gettext is available we use this. Else we have |
137 | dnl to fall back to GNU NLS library. | 122 | dnl to fall back to GNU NLS library. |
138 | 123 | ||
139 | if test $gt_api_version -ge 3; then | 124 | dnl Add a version number to the cache macros. |
140 | gt_revision_test_code=' | 125 | define([gt_api_version], ifelse([$2], [need-formatstring-macros], 3, ifelse([$2], [need-ngettext], 2, 1))) |
141 | #ifndef __GNU_GETTEXT_SUPPORTED_REVISION | 126 | define([gt_cv_func_gnugettext_libc], [gt_cv_func_gnugettext]gt_api_version[_libc]) |
127 | define([gt_cv_func_gnugettext_libintl], [gt_cv_func_gnugettext]gt_api_version[_libintl]) | ||
128 | |||
129 | AC_CACHE_CHECK([for GNU gettext in libc], gt_cv_func_gnugettext_libc, | ||
130 | [AC_TRY_LINK([#include <libintl.h> | ||
131 | ]ifelse([$2], [need-formatstring-macros], | ||
132 | [#ifndef __GNU_GETTEXT_SUPPORTED_REVISION | ||
142 | #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) | 133 | #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) |
143 | #endif | 134 | #endif |
144 | changequote(,)dnl | 135 | changequote(,)dnl |
145 | typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; | 136 | typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; |
146 | changequote([,])dnl | 137 | changequote([,])dnl |
147 | ' | 138 | ], [])[extern int _nl_msg_cat_cntr; |
148 | else | ||
149 | gt_revision_test_code= | ||
150 | fi | ||
151 | if test $gt_api_version -ge 2; then | ||
152 | gt_expression_test_code=' + * ngettext ("", "", 0)' | ||
153 | else | ||
154 | gt_expression_test_code= | ||
155 | fi | ||
156 | |||
157 | AC_CACHE_CHECK([for GNU gettext in libc], [$gt_func_gnugettext_libc], | ||
158 | [AC_TRY_LINK([#include <libintl.h> | ||
159 | $gt_revision_test_code | ||
160 | extern int _nl_msg_cat_cntr; | ||
161 | extern int *_nl_domain_bindings;], | 139 | extern int *_nl_domain_bindings;], |
162 | [bindtextdomain ("", ""); | 140 | [bindtextdomain ("", ""); |
163 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings], | 141 | return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_domain_bindings], |
164 | [eval "$gt_func_gnugettext_libc=yes"], | 142 | gt_cv_func_gnugettext_libc=yes, |
165 | [eval "$gt_func_gnugettext_libc=no"])]) | 143 | gt_cv_func_gnugettext_libc=no)]) |
166 | 144 | ||
167 | if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then | 145 | if test "$gt_cv_func_gnugettext_libc" != "yes"; then |
168 | dnl Sometimes libintl requires libiconv, so first search for libiconv. | 146 | dnl Sometimes libintl requires libiconv, so first search for libiconv. |
169 | ifelse(gt_included_intl, yes, , [ | 147 | ifelse(gt_included_intl, yes, , [ |
170 | AM_ICONV_LINK | 148 | AM_ICONV_LINK |
@@ -175,40 +153,52 @@ return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_b | |||
175 | dnl even if libiconv doesn't exist. | 153 | dnl even if libiconv doesn't exist. |
176 | AC_LIB_LINKFLAGS_BODY([intl]) | 154 | AC_LIB_LINKFLAGS_BODY([intl]) |
177 | AC_CACHE_CHECK([for GNU gettext in libintl], | 155 | AC_CACHE_CHECK([for GNU gettext in libintl], |
178 | [$gt_func_gnugettext_libintl], | 156 | gt_cv_func_gnugettext_libintl, |
179 | [gt_save_CPPFLAGS="$CPPFLAGS" | 157 | [gt_save_CPPFLAGS="$CPPFLAGS" |
180 | CPPFLAGS="$CPPFLAGS $INCINTL" | 158 | CPPFLAGS="$CPPFLAGS $INCINTL" |
181 | gt_save_LIBS="$LIBS" | 159 | gt_save_LIBS="$LIBS" |
182 | LIBS="$LIBS $LIBINTL" | 160 | LIBS="$LIBS $LIBINTL" |
183 | dnl Now see whether libintl exists and does not depend on libiconv. | 161 | dnl Now see whether libintl exists and does not depend on libiconv. |
184 | AC_TRY_LINK([#include <libintl.h> | 162 | AC_TRY_LINK([#include <libintl.h> |
185 | $gt_revision_test_code | 163 | ]ifelse([$2], [need-formatstring-macros], |
186 | extern int _nl_msg_cat_cntr; | 164 | [#ifndef __GNU_GETTEXT_SUPPORTED_REVISION |
165 | #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) | ||
166 | #endif | ||
167 | changequote(,)dnl | ||
168 | typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; | ||
169 | changequote([,])dnl | ||
170 | ], [])[extern int _nl_msg_cat_cntr; | ||
187 | extern | 171 | extern |
188 | #ifdef __cplusplus | 172 | #ifdef __cplusplus |
189 | "C" | 173 | "C" |
190 | #endif | 174 | #endif |
191 | const char *_nl_expand_alias (const char *);], | 175 | const char *_nl_expand_alias ();], |
192 | [bindtextdomain ("", ""); | 176 | [bindtextdomain ("", ""); |
193 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")], | 177 | return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias (0)], |
194 | [eval "$gt_func_gnugettext_libintl=yes"], | 178 | gt_cv_func_gnugettext_libintl=yes, |
195 | [eval "$gt_func_gnugettext_libintl=no"]) | 179 | gt_cv_func_gnugettext_libintl=no) |
196 | dnl Now see whether libintl exists and depends on libiconv. | 180 | dnl Now see whether libintl exists and depends on libiconv. |
197 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then | 181 | if test "$gt_cv_func_gnugettext_libintl" != yes && test -n "$LIBICONV"; then |
198 | LIBS="$LIBS $LIBICONV" | 182 | LIBS="$LIBS $LIBICONV" |
199 | AC_TRY_LINK([#include <libintl.h> | 183 | AC_TRY_LINK([#include <libintl.h> |
200 | $gt_revision_test_code | 184 | ]ifelse([$2], [need-formatstring-macros], |
201 | extern int _nl_msg_cat_cntr; | 185 | [#ifndef __GNU_GETTEXT_SUPPORTED_REVISION |
186 | #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) | ||
187 | #endif | ||
188 | changequote(,)dnl | ||
189 | typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; | ||
190 | changequote([,])dnl | ||
191 | ], [])[extern int _nl_msg_cat_cntr; | ||
202 | extern | 192 | extern |
203 | #ifdef __cplusplus | 193 | #ifdef __cplusplus |
204 | "C" | 194 | "C" |
205 | #endif | 195 | #endif |
206 | const char *_nl_expand_alias (const char *);], | 196 | const char *_nl_expand_alias ();], |
207 | [bindtextdomain ("", ""); | 197 | [bindtextdomain ("", ""); |
208 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")], | 198 | return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias (0)], |
209 | [LIBINTL="$LIBINTL $LIBICONV" | 199 | [LIBINTL="$LIBINTL $LIBICONV" |
210 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" | 200 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
211 | eval "$gt_func_gnugettext_libintl=yes" | 201 | gt_cv_func_gnugettext_libintl=yes |
212 | ]) | 202 | ]) |
213 | fi | 203 | fi |
214 | CPPFLAGS="$gt_save_CPPFLAGS" | 204 | CPPFLAGS="$gt_save_CPPFLAGS" |
@@ -219,8 +209,8 @@ return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_a | |||
219 | dnl use it. But if this macro is used in GNU gettext, and GNU | 209 | dnl use it. But if this macro is used in GNU gettext, and GNU |
220 | dnl gettext is already preinstalled in libintl, we update this | 210 | dnl gettext is already preinstalled in libintl, we update this |
221 | dnl libintl. (Cf. the install rule in intl/Makefile.in.) | 211 | dnl libintl. (Cf. the install rule in intl/Makefile.in.) |
222 | if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ | 212 | if test "$gt_cv_func_gnugettext_libc" = "yes" \ |
223 | || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ | 213 | || { test "$gt_cv_func_gnugettext_libintl" = "yes" \ |
224 | && test "$PACKAGE" != gettext-runtime \ | 214 | && test "$PACKAGE" != gettext-runtime \ |
225 | && test "$PACKAGE" != gettext-tools; }; then | 215 | && test "$PACKAGE" != gettext-tools; }; then |
226 | gt_use_preinstalled_gnugettext=yes | 216 | gt_use_preinstalled_gnugettext=yes |
@@ -243,12 +233,11 @@ return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_a | |||
243 | dnl Mark actions used to generate GNU NLS library. | 233 | dnl Mark actions used to generate GNU NLS library. |
244 | BUILD_INCLUDED_LIBINTL=yes | 234 | BUILD_INCLUDED_LIBINTL=yes |
245 | USE_INCLUDED_LIBINTL=yes | 235 | USE_INCLUDED_LIBINTL=yes |
246 | LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV $LIBTHREAD" | 236 | LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV" |
247 | LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV $LTLIBTHREAD" | 237 | LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV" |
248 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` | 238 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` |
249 | fi | 239 | fi |
250 | 240 | ||
251 | CATOBJEXT= | ||
252 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ | 241 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
253 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | 242 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
254 | dnl Mark actions to use GNU gettext tools. | 243 | dnl Mark actions to use GNU gettext tools. |
@@ -256,15 +245,6 @@ return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_a | |||
256 | fi | 245 | fi |
257 | ]) | 246 | ]) |
258 | 247 | ||
259 | if test -n "$INTL_MACOSX_LIBS"; then | ||
260 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ | ||
261 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | ||
262 | dnl Some extra flags are needed during linking. | ||
263 | LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" | ||
264 | LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" | ||
265 | fi | ||
266 | fi | ||
267 | |||
268 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ | 248 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
269 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | 249 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
270 | AC_DEFINE(ENABLE_NLS, 1, | 250 | AC_DEFINE(ENABLE_NLS, 1, |
@@ -280,7 +260,7 @@ return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_a | |||
280 | if test "$USE_NLS" = "yes"; then | 260 | if test "$USE_NLS" = "yes"; then |
281 | AC_MSG_CHECKING([where the gettext function comes from]) | 261 | AC_MSG_CHECKING([where the gettext function comes from]) |
282 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then | 262 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
283 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then | 263 | if test "$gt_cv_func_gnugettext_libintl" = "yes"; then |
284 | gt_source="external libintl" | 264 | gt_source="external libintl" |
285 | else | 265 | else |
286 | gt_source="libc" | 266 | gt_source="libc" |
@@ -294,7 +274,7 @@ return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_a | |||
294 | if test "$USE_NLS" = "yes"; then | 274 | if test "$USE_NLS" = "yes"; then |
295 | 275 | ||
296 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then | 276 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
297 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then | 277 | if test "$gt_cv_func_gnugettext_libintl" = "yes"; then |
298 | AC_MSG_CHECKING([how to link with libintl]) | 278 | AC_MSG_CHECKING([how to link with libintl]) |
299 | AC_MSG_RESULT([$LIBINTL]) | 279 | AC_MSG_RESULT([$LIBINTL]) |
300 | AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL]) | 280 | AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL]) |
@@ -340,7 +320,6 @@ return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_a | |||
340 | AC_SUBST(GENCAT) | 320 | AC_SUBST(GENCAT) |
341 | 321 | ||
342 | dnl For backward compatibility. Some Makefiles may be using this. | 322 | dnl For backward compatibility. Some Makefiles may be using this. |
343 | INTLOBJS= | ||
344 | if test "$USE_INCLUDED_LIBINTL" = yes; then | 323 | if test "$USE_INCLUDED_LIBINTL" = yes; then |
345 | INTLOBJS="\$(GETTOBJS)" | 324 | INTLOBJS="\$(GETTOBJS)" |
346 | fi | 325 | fi |
@@ -362,56 +341,145 @@ return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_a | |||
362 | ]) | 341 | ]) |
363 | 342 | ||
364 | 343 | ||
365 | dnl Checks for special options needed on MacOS X. | 344 | dnl Checks for all prerequisites of the intl subdirectory, |
366 | dnl Defines INTL_MACOSX_LIBS. | 345 | dnl except for INTL_LIBTOOL_SUFFIX_PREFIX (and possibly LIBTOOL), INTLOBJS, |
367 | AC_DEFUN([gt_INTL_MACOSX], | 346 | dnl USE_INCLUDED_LIBINTL, BUILD_INCLUDED_LIBINTL. |
347 | AC_DEFUN([AM_INTL_SUBDIR], | ||
368 | [ | 348 | [ |
369 | dnl Check for API introduced in MacOS X 10.2. | 349 | AC_REQUIRE([AC_PROG_INSTALL])dnl |
370 | AC_CACHE_CHECK([for CFPreferencesCopyAppValue], | 350 | AC_REQUIRE([AM_MKINSTALLDIRS])dnl |
371 | gt_cv_func_CFPreferencesCopyAppValue, | 351 | AC_REQUIRE([AC_PROG_CC])dnl |
372 | [gt_save_LIBS="$LIBS" | 352 | AC_REQUIRE([AC_CANONICAL_HOST])dnl |
373 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" | 353 | AC_REQUIRE([AC_PROG_RANLIB])dnl |
374 | AC_TRY_LINK([#include <CoreFoundation/CFPreferences.h>], | 354 | AC_REQUIRE([AC_ISC_POSIX])dnl |
375 | [CFPreferencesCopyAppValue(NULL, NULL)], | 355 | AC_REQUIRE([AC_HEADER_STDC])dnl |
376 | [gt_cv_func_CFPreferencesCopyAppValue=yes], | 356 | AC_REQUIRE([AC_C_CONST])dnl |
377 | [gt_cv_func_CFPreferencesCopyAppValue=no]) | 357 | AC_REQUIRE([bh_C_SIGNED])dnl |
378 | LIBS="$gt_save_LIBS"]) | 358 | AC_REQUIRE([AC_C_INLINE])dnl |
379 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then | 359 | AC_REQUIRE([AC_TYPE_OFF_T])dnl |
380 | AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], 1, | 360 | AC_REQUIRE([AC_TYPE_SIZE_T])dnl |
381 | [Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework.]) | 361 | AC_REQUIRE([jm_AC_TYPE_LONG_LONG])dnl |
362 | AC_REQUIRE([gt_TYPE_LONGDOUBLE])dnl | ||
363 | AC_REQUIRE([gt_TYPE_WCHAR_T])dnl | ||
364 | AC_REQUIRE([gt_TYPE_WINT_T])dnl | ||
365 | AC_REQUIRE([jm_AC_HEADER_INTTYPES_H]) | ||
366 | AC_REQUIRE([jm_AC_HEADER_STDINT_H]) | ||
367 | AC_REQUIRE([gt_TYPE_INTMAX_T]) | ||
368 | AC_REQUIRE([gt_PRINTF_POSIX]) | ||
369 | AC_REQUIRE([AC_FUNC_ALLOCA])dnl | ||
370 | AC_REQUIRE([AC_FUNC_MMAP])dnl | ||
371 | AC_REQUIRE([jm_GLIBC21])dnl | ||
372 | AC_REQUIRE([gt_INTDIV0])dnl | ||
373 | AC_REQUIRE([jm_AC_TYPE_UINTMAX_T])dnl | ||
374 | AC_REQUIRE([gt_HEADER_INTTYPES_H])dnl | ||
375 | AC_REQUIRE([gt_INTTYPES_PRI])dnl | ||
376 | AC_REQUIRE([gl_XSIZE])dnl | ||
377 | |||
378 | AC_CHECK_TYPE([ptrdiff_t], , | ||
379 | [AC_DEFINE([ptrdiff_t], [long], | ||
380 | [Define as the type of the result of subtracting two pointers, if the system doesn't define it.]) | ||
381 | ]) | ||
382 | AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ | ||
383 | stdlib.h string.h unistd.h sys/param.h]) | ||
384 | AC_CHECK_FUNCS([asprintf fwprintf getcwd getegid geteuid getgid getuid \ | ||
385 | mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \ | ||
386 | strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \ | ||
387 | __fsetlocking]) | ||
388 | |||
389 | dnl Use the _snprintf function only if it is declared (because on NetBSD it | ||
390 | dnl is defined as a weak alias of snprintf; we prefer to use the latter). | ||
391 | gt_CHECK_DECL(_snprintf, [#include <stdio.h>]) | ||
392 | gt_CHECK_DECL(_snwprintf, [#include <stdio.h>]) | ||
393 | |||
394 | dnl Use the *_unlocked functions only if they are declared. | ||
395 | dnl (because some of them were defined without being declared in Solaris | ||
396 | dnl 2.5.1 but were removed in Solaris 2.6, whereas we want binaries built | ||
397 | dnl on Solaris 2.5.1 to run on Solaris 2.6). | ||
398 | dnl Don't use AC_CHECK_DECLS because it isn't supported in autoconf-2.13. | ||
399 | gt_CHECK_DECL(feof_unlocked, [#include <stdio.h>]) | ||
400 | gt_CHECK_DECL(fgets_unlocked, [#include <stdio.h>]) | ||
401 | gt_CHECK_DECL(getc_unlocked, [#include <stdio.h>]) | ||
402 | |||
403 | case $gt_cv_func_printf_posix in | ||
404 | *yes) HAVE_POSIX_PRINTF=1 ;; | ||
405 | *) HAVE_POSIX_PRINTF=0 ;; | ||
406 | esac | ||
407 | AC_SUBST([HAVE_POSIX_PRINTF]) | ||
408 | if test "$ac_cv_func_asprintf" = yes; then | ||
409 | HAVE_ASPRINTF=1 | ||
410 | else | ||
411 | HAVE_ASPRINTF=0 | ||
382 | fi | 412 | fi |
383 | dnl Check for API introduced in MacOS X 10.3. | 413 | AC_SUBST([HAVE_ASPRINTF]) |
384 | AC_CACHE_CHECK([for CFLocaleCopyCurrent], gt_cv_func_CFLocaleCopyCurrent, | 414 | if test "$ac_cv_func_snprintf" = yes; then |
385 | [gt_save_LIBS="$LIBS" | 415 | HAVE_SNPRINTF=1 |
386 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" | 416 | else |
387 | AC_TRY_LINK([#include <CoreFoundation/CFLocale.h>], [CFLocaleCopyCurrent();], | 417 | HAVE_SNPRINTF=0 |
388 | [gt_cv_func_CFLocaleCopyCurrent=yes], | ||
389 | [gt_cv_func_CFLocaleCopyCurrent=no]) | ||
390 | LIBS="$gt_save_LIBS"]) | ||
391 | if test $gt_cv_func_CFLocaleCopyCurrent = yes; then | ||
392 | AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], 1, | ||
393 | [Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework.]) | ||
394 | fi | 418 | fi |
395 | INTL_MACOSX_LIBS= | 419 | AC_SUBST([HAVE_SNPRINTF]) |
396 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then | 420 | if test "$ac_cv_func_wprintf" = yes; then |
397 | INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" | 421 | HAVE_WPRINTF=1 |
422 | else | ||
423 | HAVE_WPRINTF=0 | ||
398 | fi | 424 | fi |
399 | AC_SUBST([INTL_MACOSX_LIBS]) | 425 | AC_SUBST([HAVE_WPRINTF]) |
400 | ]) | ||
401 | 426 | ||
427 | AM_ICONV | ||
428 | AM_LANGINFO_CODESET | ||
429 | if test $ac_cv_header_locale_h = yes; then | ||
430 | AM_LC_MESSAGES | ||
431 | fi | ||
402 | 432 | ||
403 | dnl gt_NEEDS_INIT ensures that the gt_needs variable is initialized. | 433 | dnl intl/plural.c is generated from intl/plural.y. It requires bison, |
404 | m4_define([gt_NEEDS_INIT], | 434 | dnl because plural.y uses bison specific features. It requires at least |
405 | [ | 435 | dnl bison-1.26 because earlier versions generate a plural.c that doesn't |
406 | m4_divert_text([DEFAULTS], [gt_needs=]) | 436 | dnl compile. |
407 | m4_define([gt_NEEDS_INIT], []) | 437 | dnl bison is only needed for the maintainer (who touches plural.y). But in |
438 | dnl order to avoid separate Makefiles or --enable-maintainer-mode, we put | ||
439 | dnl the rule in general Makefile. Now, some people carelessly touch the | ||
440 | dnl files or have a broken "make" program, hence the plural.c rule will | ||
441 | dnl sometimes fire. To avoid an error, defines BISON to ":" if it is not | ||
442 | dnl present or too old. | ||
443 | AC_CHECK_PROGS([INTLBISON], [bison]) | ||
444 | if test -z "$INTLBISON"; then | ||
445 | ac_verc_fail=yes | ||
446 | else | ||
447 | dnl Found it, now check the version. | ||
448 | AC_MSG_CHECKING([version of bison]) | ||
449 | changequote(<<,>>)dnl | ||
450 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` | ||
451 | case $ac_prog_version in | ||
452 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | ||
453 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) | ||
454 | changequote([,])dnl | ||
455 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | ||
456 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | ||
457 | esac | ||
458 | AC_MSG_RESULT([$ac_prog_version]) | ||
459 | fi | ||
460 | if test $ac_verc_fail = yes; then | ||
461 | INTLBISON=: | ||
462 | fi | ||
408 | ]) | 463 | ]) |
409 | 464 | ||
410 | 465 | ||
411 | dnl Usage: AM_GNU_GETTEXT_NEED([NEEDSYMBOL]) | 466 | dnl gt_CHECK_DECL(FUNC, INCLUDES) |
412 | AC_DEFUN([AM_GNU_GETTEXT_NEED], | 467 | dnl Check whether a function is declared. |
468 | AC_DEFUN([gt_CHECK_DECL], | ||
413 | [ | 469 | [ |
414 | m4_divert_text([INIT_PREPARE], [gt_needs="$gt_needs $1"]) | 470 | AC_CACHE_CHECK([whether $1 is declared], ac_cv_have_decl_$1, |
471 | [AC_TRY_COMPILE([$2], [ | ||
472 | #ifndef $1 | ||
473 | char *p = (char *) $1; | ||
474 | #endif | ||
475 | ], ac_cv_have_decl_$1=yes, ac_cv_have_decl_$1=no)]) | ||
476 | if test $ac_cv_have_decl_$1 = yes; then | ||
477 | gt_value=1 | ||
478 | else | ||
479 | gt_value=0 | ||
480 | fi | ||
481 | AC_DEFINE_UNQUOTED([HAVE_DECL_]translit($1, [a-z], [A-Z]), [$gt_value], | ||
482 | [Define to 1 if you have the declaration of `$1', and to 0 if you don't.]) | ||
415 | ]) | 483 | ]) |
416 | 484 | ||
417 | 485 | ||
diff --git a/m4/glibc21.m4 b/m4/glibc21.m4 index d95fd986..9c9f3db3 100644 --- a/m4/glibc21.m4 +++ b/m4/glibc21.m4 | |||
@@ -1,13 +1,15 @@ | |||
1 | # glibc21.m4 serial 3 | 1 | # glibc21.m4 serial 2 (fileutils-4.1.3, gettext-0.10.40) |
2 | dnl Copyright (C) 2000-2002, 2004 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2000-2002 Free Software Foundation, Inc. |
3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software, distributed under the terms of the GNU |
4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl General Public License. As a special exception to the GNU General |
5 | dnl with or without modifications, as long as this notice is preserved. | 5 | dnl Public License, this file may be distributed as part of a program |
6 | dnl that contains a configuration script generated by Autoconf, under | ||
7 | dnl the same distribution terms as the rest of that program. | ||
6 | 8 | ||
7 | # Test for the GNU C Library, version 2.1 or newer. | 9 | # Test for the GNU C Library, version 2.1 or newer. |
8 | # From Bruno Haible. | 10 | # From Bruno Haible. |
9 | 11 | ||
10 | AC_DEFUN([gl_GLIBC21], | 12 | AC_DEFUN([jm_GLIBC21], |
11 | [ | 13 | [ |
12 | AC_CACHE_CHECK(whether we are using the GNU C Library 2.1 or newer, | 14 | AC_CACHE_CHECK(whether we are using the GNU C Library 2.1 or newer, |
13 | ac_cv_gnu_library_2_1, | 15 | ac_cv_gnu_library_2_1, |
diff --git a/m4/iconv.m4 b/m4/iconv.m4 index 654c4158..c5f35798 100644 --- a/m4/iconv.m4 +++ b/m4/iconv.m4 | |||
@@ -1,8 +1,10 @@ | |||
1 | # iconv.m4 serial AM4 (gettext-0.11.3) | 1 | # iconv.m4 serial AM4 (gettext-0.11.3) |
2 | dnl Copyright (C) 2000-2002 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2000-2002 Free Software Foundation, Inc. |
3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software, distributed under the terms of the GNU |
4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl General Public License. As a special exception to the GNU General |
5 | dnl with or without modifications, as long as this notice is preserved. | 5 | dnl Public License, this file may be distributed as part of a program |
6 | dnl that contains a configuration script generated by Autoconf, under | ||
7 | dnl the same distribution terms as the rest of that program. | ||
6 | 8 | ||
7 | dnl From Bruno Haible. | 9 | dnl From Bruno Haible. |
8 | 10 | ||
diff --git a/m4/intdiv0.m4 b/m4/intdiv0.m4 index b8d78176..55dddcf1 100644 --- a/m4/intdiv0.m4 +++ b/m4/intdiv0.m4 | |||
@@ -1,8 +1,10 @@ | |||
1 | # intdiv0.m4 serial 1 (gettext-0.11.3) | 1 | # intdiv0.m4 serial 1 (gettext-0.11.3) |
2 | dnl Copyright (C) 2002 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2002 Free Software Foundation, Inc. |
3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software, distributed under the terms of the GNU |
4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl General Public License. As a special exception to the GNU General |
5 | dnl with or without modifications, as long as this notice is preserved. | 5 | dnl Public License, this file may be distributed as part of a program |
6 | dnl that contains a configuration script generated by Autoconf, under | ||
7 | dnl the same distribution terms as the rest of that program. | ||
6 | 8 | ||
7 | dnl From Bruno Haible. | 9 | dnl From Bruno Haible. |
8 | 10 | ||
diff --git a/m4/intmax.m4 b/m4/intmax.m4 index ce7a8a49..dfb08ccc 100644 --- a/m4/intmax.m4 +++ b/m4/intmax.m4 | |||
@@ -1,8 +1,10 @@ | |||
1 | # intmax.m4 serial 3 (gettext-0.16) | 1 | # intmax.m4 serial 1 (gettext-0.12) |
2 | dnl Copyright (C) 2002-2005 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2002-2003 Free Software Foundation, Inc. |
3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software, distributed under the terms of the GNU |
4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl General Public License. As a special exception to the GNU General |
5 | dnl with or without modifications, as long as this notice is preserved. | 5 | dnl Public License, this file may be distributed as part of a program |
6 | dnl that contains a configuration script generated by Autoconf, under | ||
7 | dnl the same distribution terms as the rest of that program. | ||
6 | 8 | ||
7 | dnl From Bruno Haible. | 9 | dnl From Bruno Haible. |
8 | dnl Test whether the system has the 'intmax_t' type, but don't attempt to | 10 | dnl Test whether the system has the 'intmax_t' type, but don't attempt to |
@@ -10,11 +12,11 @@ dnl find a replacement if it is lacking. | |||
10 | 12 | ||
11 | AC_DEFUN([gt_TYPE_INTMAX_T], | 13 | AC_DEFUN([gt_TYPE_INTMAX_T], |
12 | [ | 14 | [ |
13 | AC_REQUIRE([gl_AC_HEADER_INTTYPES_H]) | 15 | AC_REQUIRE([jm_AC_HEADER_INTTYPES_H]) |
14 | AC_REQUIRE([gl_AC_HEADER_STDINT_H]) | 16 | AC_REQUIRE([jm_AC_HEADER_STDINT_H]) |
15 | AC_CACHE_CHECK(for intmax_t, gt_cv_c_intmax_t, | 17 | AC_CACHE_CHECK(for intmax_t, gt_cv_c_intmax_t, |
16 | [AC_TRY_COMPILE([ | 18 | [AC_TRY_COMPILE([ |
17 | #include <stddef.h> | 19 | #include <stddef.h> |
18 | #include <stdlib.h> | 20 | #include <stdlib.h> |
19 | #if HAVE_STDINT_H_WITH_UINTMAX | 21 | #if HAVE_STDINT_H_WITH_UINTMAX |
20 | #include <stdint.h> | 22 | #include <stdint.h> |
@@ -22,10 +24,7 @@ AC_DEFUN([gt_TYPE_INTMAX_T], | |||
22 | #if HAVE_INTTYPES_H_WITH_UINTMAX | 24 | #if HAVE_INTTYPES_H_WITH_UINTMAX |
23 | #include <inttypes.h> | 25 | #include <inttypes.h> |
24 | #endif | 26 | #endif |
25 | ], [intmax_t x = -1; | 27 | ], [intmax_t x = -1;], gt_cv_c_intmax_t=yes, gt_cv_c_intmax_t=no)]) |
26 | return !x;], | ||
27 | gt_cv_c_intmax_t=yes, | ||
28 | gt_cv_c_intmax_t=no)]) | ||
29 | if test $gt_cv_c_intmax_t = yes; then | 28 | if test $gt_cv_c_intmax_t = yes; then |
30 | AC_DEFINE(HAVE_INTMAX_T, 1, | 29 | AC_DEFINE(HAVE_INTMAX_T, 1, |
31 | [Define if you have the 'intmax_t' type in <stdint.h> or <inttypes.h>.]) | 30 | [Define if you have the 'intmax_t' type in <stdint.h> or <inttypes.h>.]) |
diff --git a/m4/inttypes-pri.m4 b/m4/inttypes-pri.m4 index 7c7f8940..fd007c31 100644 --- a/m4/inttypes-pri.m4 +++ b/m4/inttypes-pri.m4 | |||
@@ -1,20 +1,20 @@ | |||
1 | # inttypes-pri.m4 serial 4 (gettext-0.16) | 1 | # inttypes-pri.m4 serial 1 (gettext-0.11.4) |
2 | dnl Copyright (C) 1997-2002, 2006 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 1997-2002 Free Software Foundation, Inc. |
3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software, distributed under the terms of the GNU |
4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl General Public License. As a special exception to the GNU General |
5 | dnl with or without modifications, as long as this notice is preserved. | 5 | dnl Public License, this file may be distributed as part of a program |
6 | dnl that contains a configuration script generated by Autoconf, under | ||
7 | dnl the same distribution terms as the rest of that program. | ||
6 | 8 | ||
7 | dnl From Bruno Haible. | 9 | dnl From Bruno Haible. |
8 | 10 | ||
9 | AC_PREREQ(2.52) | ||
10 | |||
11 | # Define PRI_MACROS_BROKEN if <inttypes.h> exists and defines the PRI* | 11 | # Define PRI_MACROS_BROKEN if <inttypes.h> exists and defines the PRI* |
12 | # macros to non-string values. This is the case on AIX 4.3.3. | 12 | # macros to non-string values. This is the case on AIX 4.3.3. |
13 | 13 | ||
14 | AC_DEFUN([gt_INTTYPES_PRI], | 14 | AC_DEFUN([gt_INTTYPES_PRI], |
15 | [ | 15 | [ |
16 | AC_CHECK_HEADERS([inttypes.h]) | 16 | AC_REQUIRE([gt_HEADER_INTTYPES_H]) |
17 | if test $ac_cv_header_inttypes_h = yes; then | 17 | if test $gt_cv_header_inttypes_h = yes; then |
18 | AC_CACHE_CHECK([whether the inttypes.h PRIxNN macros are broken], | 18 | AC_CACHE_CHECK([whether the inttypes.h PRIxNN macros are broken], |
19 | gt_cv_inttypes_pri_broken, | 19 | gt_cv_inttypes_pri_broken, |
20 | [ | 20 | [ |
@@ -28,9 +28,5 @@ char *p = PRId32; | |||
28 | if test "$gt_cv_inttypes_pri_broken" = yes; then | 28 | if test "$gt_cv_inttypes_pri_broken" = yes; then |
29 | AC_DEFINE_UNQUOTED(PRI_MACROS_BROKEN, 1, | 29 | AC_DEFINE_UNQUOTED(PRI_MACROS_BROKEN, 1, |
30 | [Define if <inttypes.h> exists and defines unusable PRI* macros.]) | 30 | [Define if <inttypes.h> exists and defines unusable PRI* macros.]) |
31 | PRI_MACROS_BROKEN=1 | ||
32 | else | ||
33 | PRI_MACROS_BROKEN=0 | ||
34 | fi | 31 | fi |
35 | AC_SUBST([PRI_MACROS_BROKEN]) | ||
36 | ]) | 32 | ]) |
diff --git a/m4/inttypes_h.m4 b/m4/inttypes_h.m4 index edc8ecb2..f342eba3 100644 --- a/m4/inttypes_h.m4 +++ b/m4/inttypes_h.m4 | |||
@@ -1,24 +1,26 @@ | |||
1 | # inttypes_h.m4 serial 7 | 1 | # inttypes_h.m4 serial 5 (gettext-0.12) |
2 | dnl Copyright (C) 1997-2004, 2006 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 1997-2003 Free Software Foundation, Inc. |
3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software, distributed under the terms of the GNU |
4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl General Public License. As a special exception to the GNU General |
5 | dnl with or without modifications, as long as this notice is preserved. | 5 | dnl Public License, this file may be distributed as part of a program |
6 | dnl that contains a configuration script generated by Autoconf, under | ||
7 | dnl the same distribution terms as the rest of that program. | ||
6 | 8 | ||
7 | dnl From Paul Eggert. | 9 | dnl From Paul Eggert. |
8 | 10 | ||
9 | # Define HAVE_INTTYPES_H_WITH_UINTMAX if <inttypes.h> exists, | 11 | # Define HAVE_INTTYPES_H_WITH_UINTMAX if <inttypes.h> exists, |
10 | # doesn't clash with <sys/types.h>, and declares uintmax_t. | 12 | # doesn't clash with <sys/types.h>, and declares uintmax_t. |
11 | 13 | ||
12 | AC_DEFUN([gl_AC_HEADER_INTTYPES_H], | 14 | AC_DEFUN([jm_AC_HEADER_INTTYPES_H], |
13 | [ | 15 | [ |
14 | AC_CACHE_CHECK([for inttypes.h], gl_cv_header_inttypes_h, | 16 | AC_CACHE_CHECK([for inttypes.h], jm_ac_cv_header_inttypes_h, |
15 | [AC_TRY_COMPILE( | 17 | [AC_TRY_COMPILE( |
16 | [#include <sys/types.h> | 18 | [#include <sys/types.h> |
17 | #include <inttypes.h>], | 19 | #include <inttypes.h>], |
18 | [uintmax_t i = (uintmax_t) -1; return !i;], | 20 | [uintmax_t i = (uintmax_t) -1;], |
19 | gl_cv_header_inttypes_h=yes, | 21 | jm_ac_cv_header_inttypes_h=yes, |
20 | gl_cv_header_inttypes_h=no)]) | 22 | jm_ac_cv_header_inttypes_h=no)]) |
21 | if test $gl_cv_header_inttypes_h = yes; then | 23 | if test $jm_ac_cv_header_inttypes_h = yes; then |
22 | AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H_WITH_UINTMAX, 1, | 24 | AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H_WITH_UINTMAX, 1, |
23 | [Define if <inttypes.h> exists, doesn't clash with <sys/types.h>, | 25 | [Define if <inttypes.h> exists, doesn't clash with <sys/types.h>, |
24 | and declares uintmax_t. ]) | 26 | and declares uintmax_t. ]) |
diff --git a/m4/lcmessage.m4 b/m4/lcmessage.m4 index 19aa77e4..ffd4008b 100644 --- a/m4/lcmessage.m4 +++ b/m4/lcmessage.m4 | |||
@@ -1,8 +1,10 @@ | |||
1 | # lcmessage.m4 serial 4 (gettext-0.14.2) | 1 | # lcmessage.m4 serial 3 (gettext-0.11.3) |
2 | dnl Copyright (C) 1995-2002, 2004-2005 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 1995-2002 Free Software Foundation, Inc. |
3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software, distributed under the terms of the GNU |
4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl General Public License. As a special exception to the GNU General |
5 | dnl with or without modifications, as long as this notice is preserved. | 5 | dnl Public License, this file may be distributed as part of a program |
6 | dnl that contains a configuration script generated by Autoconf, under | ||
7 | dnl the same distribution terms as the rest of that program. | ||
6 | dnl | 8 | dnl |
7 | dnl This file can can be used in projects which are not available under | 9 | dnl This file can can be used in projects which are not available under |
8 | dnl the GNU General Public License or the GNU Library General Public | 10 | dnl the GNU General Public License or the GNU Library General Public |
@@ -18,12 +20,12 @@ dnl Ulrich Drepper <drepper@cygnus.com>, 1995. | |||
18 | 20 | ||
19 | # Check whether LC_MESSAGES is available in <locale.h>. | 21 | # Check whether LC_MESSAGES is available in <locale.h>. |
20 | 22 | ||
21 | AC_DEFUN([gt_LC_MESSAGES], | 23 | AC_DEFUN([AM_LC_MESSAGES], |
22 | [ | 24 | [ |
23 | AC_CACHE_CHECK([for LC_MESSAGES], gt_cv_val_LC_MESSAGES, | 25 | AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, |
24 | [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES], | 26 | [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES], |
25 | gt_cv_val_LC_MESSAGES=yes, gt_cv_val_LC_MESSAGES=no)]) | 27 | am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) |
26 | if test $gt_cv_val_LC_MESSAGES = yes; then | 28 | if test $am_cv_val_LC_MESSAGES = yes; then |
27 | AC_DEFINE(HAVE_LC_MESSAGES, 1, | 29 | AC_DEFINE(HAVE_LC_MESSAGES, 1, |
28 | [Define if your <locale.h> file defines LC_MESSAGES.]) | 30 | [Define if your <locale.h> file defines LC_MESSAGES.]) |
29 | fi | 31 | fi |
diff --git a/m4/lib-ld.m4 b/m4/lib-ld.m4 index 96c4e2c3..38aeaec1 100644 --- a/m4/lib-ld.m4 +++ b/m4/lib-ld.m4 | |||
@@ -1,8 +1,10 @@ | |||
1 | # lib-ld.m4 serial 3 (gettext-0.13) | 1 | # lib-ld.m4 serial 3 (gettext-0.13) |
2 | dnl Copyright (C) 1996-2003 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 1996-2003 Free Software Foundation, Inc. |
3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software, distributed under the terms of the GNU |
4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl General Public License. As a special exception to the GNU General |
5 | dnl with or without modifications, as long as this notice is preserved. | 5 | dnl Public License, this file may be distributed as part of a program |
6 | dnl that contains a configuration script generated by Autoconf, under | ||
7 | dnl the same distribution terms as the rest of that program. | ||
6 | 8 | ||
7 | dnl Subroutines of libtool.m4, | 9 | dnl Subroutines of libtool.m4, |
8 | dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision | 10 | dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision |
diff --git a/m4/lib-link.m4 b/m4/lib-link.m4 index f95b7ba8..eeb200d2 100644 --- a/m4/lib-link.m4 +++ b/m4/lib-link.m4 | |||
@@ -1,13 +1,13 @@ | |||
1 | # lib-link.m4 serial 9 (gettext-0.16) | 1 | # lib-link.m4 serial 4 (gettext-0.12) |
2 | dnl Copyright (C) 2001-2006 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2001-2003 Free Software Foundation, Inc. |
3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software, distributed under the terms of the GNU |
4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl General Public License. As a special exception to the GNU General |
5 | dnl with or without modifications, as long as this notice is preserved. | 5 | dnl Public License, this file may be distributed as part of a program |
6 | dnl that contains a configuration script generated by Autoconf, under | ||
7 | dnl the same distribution terms as the rest of that program. | ||
6 | 8 | ||
7 | dnl From Bruno Haible. | 9 | dnl From Bruno Haible. |
8 | 10 | ||
9 | AC_PREREQ(2.50) | ||
10 | |||
11 | dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and | 11 | dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and |
12 | dnl the libraries corresponding to explicit and implicit dependencies. | 12 | dnl the libraries corresponding to explicit and implicit dependencies. |
13 | dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and | 13 | dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and |
@@ -95,8 +95,6 @@ dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator, | |||
95 | dnl hardcode_direct, hardcode_minus_L. | 95 | dnl hardcode_direct, hardcode_minus_L. |
96 | AC_DEFUN([AC_LIB_RPATH], | 96 | AC_DEFUN([AC_LIB_RPATH], |
97 | [ | 97 | [ |
98 | dnl Tell automake >= 1.10 to complain if config.rpath is missing. | ||
99 | m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])]) | ||
100 | AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS | 98 | AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS |
101 | AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld | 99 | AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld |
102 | AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host | 100 | AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host |
@@ -126,7 +124,6 @@ dnl the libraries corresponding to explicit and implicit dependencies. | |||
126 | dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables. | 124 | dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables. |
127 | AC_DEFUN([AC_LIB_LINKFLAGS_BODY], | 125 | AC_DEFUN([AC_LIB_LINKFLAGS_BODY], |
128 | [ | 126 | [ |
129 | AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) | ||
130 | define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], | 127 | define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], |
131 | [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) | 128 | [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) |
132 | dnl By default, look in $includedir and $libdir. | 129 | dnl By default, look in $includedir and $libdir. |
@@ -149,7 +146,7 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY], | |||
149 | ]) | 146 | ]) |
150 | else | 147 | else |
151 | additional_includedir="$withval/include" | 148 | additional_includedir="$withval/include" |
152 | additional_libdir="$withval/$acl_libdirstem" | 149 | additional_libdir="$withval/lib" |
153 | fi | 150 | fi |
154 | fi | 151 | fi |
155 | ]) | 152 | ]) |
@@ -198,16 +195,9 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY], | |||
198 | found_so= | 195 | found_so= |
199 | found_a= | 196 | found_a= |
200 | if test $use_additional = yes; then | 197 | if test $use_additional = yes; then |
201 | if test -n "$shlibext" \ | 198 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
202 | && { test -f "$additional_libdir/lib$name.$shlibext" \ | ||
203 | || { test "$shlibext" = dll \ | ||
204 | && test -f "$additional_libdir/lib$name.dll.a"; }; }; then | ||
205 | found_dir="$additional_libdir" | 199 | found_dir="$additional_libdir" |
206 | if test -f "$additional_libdir/lib$name.$shlibext"; then | 200 | found_so="$additional_libdir/lib$name.$shlibext" |
207 | found_so="$additional_libdir/lib$name.$shlibext" | ||
208 | else | ||
209 | found_so="$additional_libdir/lib$name.dll.a" | ||
210 | fi | ||
211 | if test -f "$additional_libdir/lib$name.la"; then | 201 | if test -f "$additional_libdir/lib$name.la"; then |
212 | found_la="$additional_libdir/lib$name.la" | 202 | found_la="$additional_libdir/lib$name.la" |
213 | fi | 203 | fi |
@@ -227,16 +217,9 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY], | |||
227 | case "$x" in | 217 | case "$x" in |
228 | -L*) | 218 | -L*) |
229 | dir=`echo "X$x" | sed -e 's/^X-L//'` | 219 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
230 | if test -n "$shlibext" \ | 220 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
231 | && { test -f "$dir/lib$name.$shlibext" \ | ||
232 | || { test "$shlibext" = dll \ | ||
233 | && test -f "$dir/lib$name.dll.a"; }; }; then | ||
234 | found_dir="$dir" | 221 | found_dir="$dir" |
235 | if test -f "$dir/lib$name.$shlibext"; then | 222 | found_so="$dir/lib$name.$shlibext" |
236 | found_so="$dir/lib$name.$shlibext" | ||
237 | else | ||
238 | found_so="$dir/lib$name.dll.a" | ||
239 | fi | ||
240 | if test -f "$dir/lib$name.la"; then | 223 | if test -f "$dir/lib$name.la"; then |
241 | found_la="$dir/lib$name.la" | 224 | found_la="$dir/lib$name.la" |
242 | fi | 225 | fi |
@@ -263,7 +246,7 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY], | |||
263 | dnl Linking with a shared library. We attempt to hardcode its | 246 | dnl Linking with a shared library. We attempt to hardcode its |
264 | dnl directory into the executable's runpath, unless it's the | 247 | dnl directory into the executable's runpath, unless it's the |
265 | dnl standard /usr/lib. | 248 | dnl standard /usr/lib. |
266 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then | 249 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
267 | dnl No hardcoding is needed. | 250 | dnl No hardcoding is needed. |
268 | LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" | 251 | LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" |
269 | else | 252 | else |
@@ -349,8 +332,8 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY], | |||
349 | dnl Assume the include files are nearby. | 332 | dnl Assume the include files are nearby. |
350 | additional_includedir= | 333 | additional_includedir= |
351 | case "$found_dir" in | 334 | case "$found_dir" in |
352 | */$acl_libdirstem | */$acl_libdirstem/) | 335 | */lib | */lib/) |
353 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` | 336 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
354 | additional_includedir="$basedir/include" | 337 | additional_includedir="$basedir/include" |
355 | ;; | 338 | ;; |
356 | esac | 339 | esac |
@@ -367,7 +350,7 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY], | |||
367 | if test "X$additional_includedir" = "X/usr/local/include"; then | 350 | if test "X$additional_includedir" = "X/usr/local/include"; then |
368 | if test -n "$GCC"; then | 351 | if test -n "$GCC"; then |
369 | case $host_os in | 352 | case $host_os in |
370 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | 353 | linux*) haveit=yes;; |
371 | esac | 354 | esac |
372 | fi | 355 | fi |
373 | fi | 356 | fi |
@@ -411,12 +394,12 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY], | |||
411 | dnl 3. if it's already present in $LDFLAGS or the already | 394 | dnl 3. if it's already present in $LDFLAGS or the already |
412 | dnl constructed $LIBNAME, | 395 | dnl constructed $LIBNAME, |
413 | dnl 4. if it doesn't exist as a directory. | 396 | dnl 4. if it doesn't exist as a directory. |
414 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then | 397 | if test "X$additional_libdir" != "X/usr/lib"; then |
415 | haveit= | 398 | haveit= |
416 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then | 399 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
417 | if test -n "$GCC"; then | 400 | if test -n "$GCC"; then |
418 | case $host_os in | 401 | case $host_os in |
419 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | 402 | linux*) haveit=yes;; |
420 | esac | 403 | esac |
421 | fi | 404 | fi |
422 | fi | 405 | fi |
@@ -566,79 +549,3 @@ AC_DEFUN([AC_LIB_APPENDTOVAR], | |||
566 | fi | 549 | fi |
567 | done | 550 | done |
568 | ]) | 551 | ]) |
569 | |||
570 | dnl For those cases where a variable contains several -L and -l options | ||
571 | dnl referring to unknown libraries and directories, this macro determines the | ||
572 | dnl necessary additional linker options for the runtime path. | ||
573 | dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL]) | ||
574 | dnl sets LDADDVAR to linker options needed together with LIBSVALUE. | ||
575 | dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed, | ||
576 | dnl otherwise linking without libtool is assumed. | ||
577 | AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS], | ||
578 | [ | ||
579 | AC_REQUIRE([AC_LIB_RPATH]) | ||
580 | AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) | ||
581 | $1= | ||
582 | if test "$enable_rpath" != no; then | ||
583 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then | ||
584 | dnl Use an explicit option to hardcode directories into the resulting | ||
585 | dnl binary. | ||
586 | rpathdirs= | ||
587 | next= | ||
588 | for opt in $2; do | ||
589 | if test -n "$next"; then | ||
590 | dir="$next" | ||
591 | dnl No need to hardcode the standard /usr/lib. | ||
592 | if test "X$dir" != "X/usr/$acl_libdirstem"; then | ||
593 | rpathdirs="$rpathdirs $dir" | ||
594 | fi | ||
595 | next= | ||
596 | else | ||
597 | case $opt in | ||
598 | -L) next=yes ;; | ||
599 | -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'` | ||
600 | dnl No need to hardcode the standard /usr/lib. | ||
601 | if test "X$dir" != "X/usr/$acl_libdirstem"; then | ||
602 | rpathdirs="$rpathdirs $dir" | ||
603 | fi | ||
604 | next= ;; | ||
605 | *) next= ;; | ||
606 | esac | ||
607 | fi | ||
608 | done | ||
609 | if test "X$rpathdirs" != "X"; then | ||
610 | if test -n ""$3""; then | ||
611 | dnl libtool is used for linking. Use -R options. | ||
612 | for dir in $rpathdirs; do | ||
613 | $1="${$1}${$1:+ }-R$dir" | ||
614 | done | ||
615 | else | ||
616 | dnl The linker is used for linking directly. | ||
617 | if test -n "$hardcode_libdir_separator"; then | ||
618 | dnl Weird platform: only the last -rpath option counts, the user | ||
619 | dnl must pass all path elements in one option. | ||
620 | alldirs= | ||
621 | for dir in $rpathdirs; do | ||
622 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$dir" | ||
623 | done | ||
624 | acl_save_libdir="$libdir" | ||
625 | libdir="$alldirs" | ||
626 | eval flag=\"$hardcode_libdir_flag_spec\" | ||
627 | libdir="$acl_save_libdir" | ||
628 | $1="$flag" | ||
629 | else | ||
630 | dnl The -rpath options are cumulative. | ||
631 | for dir in $rpathdirs; do | ||
632 | acl_save_libdir="$libdir" | ||
633 | libdir="$dir" | ||
634 | eval flag=\"$hardcode_libdir_flag_spec\" | ||
635 | libdir="$acl_save_libdir" | ||
636 | $1="${$1}${$1:+ }$flag" | ||
637 | done | ||
638 | fi | ||
639 | fi | ||
640 | fi | ||
641 | fi | ||
642 | fi | ||
643 | AC_SUBST([$1]) | ||
644 | ]) | ||
diff --git a/m4/lib-prefix.m4 b/m4/lib-prefix.m4 index a8684e17..8aff5a9d 100644 --- a/m4/lib-prefix.m4 +++ b/m4/lib-prefix.m4 | |||
@@ -1,8 +1,10 @@ | |||
1 | # lib-prefix.m4 serial 5 (gettext-0.15) | 1 | # lib-prefix.m4 serial 3 (gettext-0.13) |
2 | dnl Copyright (C) 2001-2005 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2001-2003 Free Software Foundation, Inc. |
3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software, distributed under the terms of the GNU |
4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl General Public License. As a special exception to the GNU General |
5 | dnl with or without modifications, as long as this notice is preserved. | 5 | dnl Public License, this file may be distributed as part of a program |
6 | dnl that contains a configuration script generated by Autoconf, under | ||
7 | dnl the same distribution terms as the rest of that program. | ||
6 | 8 | ||
7 | dnl From Bruno Haible. | 9 | dnl From Bruno Haible. |
8 | 10 | ||
@@ -24,7 +26,6 @@ AC_DEFUN([AC_LIB_PREFIX], | |||
24 | AC_BEFORE([$0], [AC_LIB_LINKFLAGS]) | 26 | AC_BEFORE([$0], [AC_LIB_LINKFLAGS]) |
25 | AC_REQUIRE([AC_PROG_CC]) | 27 | AC_REQUIRE([AC_PROG_CC]) |
26 | AC_REQUIRE([AC_CANONICAL_HOST]) | 28 | AC_REQUIRE([AC_CANONICAL_HOST]) |
27 | AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) | ||
28 | AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) | 29 | AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) |
29 | dnl By default, look in $includedir and $libdir. | 30 | dnl By default, look in $includedir and $libdir. |
30 | use_additional=yes | 31 | use_additional=yes |
@@ -46,7 +47,7 @@ AC_DEFUN([AC_LIB_PREFIX], | |||
46 | ]) | 47 | ]) |
47 | else | 48 | else |
48 | additional_includedir="$withval/include" | 49 | additional_includedir="$withval/include" |
49 | additional_libdir="$withval/$acl_libdirstem" | 50 | additional_libdir="$withval/lib" |
50 | fi | 51 | fi |
51 | fi | 52 | fi |
52 | ]) | 53 | ]) |
@@ -70,7 +71,7 @@ AC_DEFUN([AC_LIB_PREFIX], | |||
70 | if test "X$additional_includedir" = "X/usr/local/include"; then | 71 | if test "X$additional_includedir" = "X/usr/local/include"; then |
71 | if test -n "$GCC"; then | 72 | if test -n "$GCC"; then |
72 | case $host_os in | 73 | case $host_os in |
73 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | 74 | linux*) haveit=yes;; |
74 | esac | 75 | esac |
75 | fi | 76 | fi |
76 | fi | 77 | fi |
@@ -88,7 +89,7 @@ AC_DEFUN([AC_LIB_PREFIX], | |||
88 | dnl 2. if it's already present in $LDFLAGS, | 89 | dnl 2. if it's already present in $LDFLAGS, |
89 | dnl 3. if it's /usr/local/lib and we are using GCC on Linux, | 90 | dnl 3. if it's /usr/local/lib and we are using GCC on Linux, |
90 | dnl 4. if it doesn't exist as a directory. | 91 | dnl 4. if it doesn't exist as a directory. |
91 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then | 92 | if test "X$additional_libdir" != "X/usr/lib"; then |
92 | haveit= | 93 | haveit= |
93 | for x in $LDFLAGS; do | 94 | for x in $LDFLAGS; do |
94 | AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) | 95 | AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) |
@@ -98,7 +99,7 @@ AC_DEFUN([AC_LIB_PREFIX], | |||
98 | fi | 99 | fi |
99 | done | 100 | done |
100 | if test -z "$haveit"; then | 101 | if test -z "$haveit"; then |
101 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then | 102 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
102 | if test -n "$GCC"; then | 103 | if test -n "$GCC"; then |
103 | case $host_os in | 104 | case $host_os in |
104 | linux*) haveit=yes;; | 105 | linux*) haveit=yes;; |
@@ -152,34 +153,3 @@ AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX], | |||
152 | exec_prefix="$acl_save_exec_prefix" | 153 | exec_prefix="$acl_save_exec_prefix" |
153 | prefix="$acl_save_prefix" | 154 | prefix="$acl_save_prefix" |
154 | ]) | 155 | ]) |
155 | |||
156 | dnl AC_LIB_PREPARE_MULTILIB creates a variable acl_libdirstem, containing | ||
157 | dnl the basename of the libdir, either "lib" or "lib64". | ||
158 | AC_DEFUN([AC_LIB_PREPARE_MULTILIB], | ||
159 | [ | ||
160 | dnl There is no formal standard regarding lib and lib64. The current | ||
161 | dnl practice is that on a system supporting 32-bit and 64-bit instruction | ||
162 | dnl sets or ABIs, 64-bit libraries go under $prefix/lib64 and 32-bit | ||
163 | dnl libraries go under $prefix/lib. We determine the compiler's default | ||
164 | dnl mode by looking at the compiler's library search path. If at least | ||
165 | dnl of its elements ends in /lib64 or points to a directory whose absolute | ||
166 | dnl pathname ends in /lib64, we assume a 64-bit ABI. Otherwise we use the | ||
167 | dnl default, namely "lib". | ||
168 | acl_libdirstem=lib | ||
169 | searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` | ||
170 | if test -n "$searchpath"; then | ||
171 | acl_save_IFS="${IFS= }"; IFS=":" | ||
172 | for searchdir in $searchpath; do | ||
173 | if test -d "$searchdir"; then | ||
174 | case "$searchdir" in | ||
175 | */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; | ||
176 | *) searchdir=`cd "$searchdir" && pwd` | ||
177 | case "$searchdir" in | ||
178 | */lib64 ) acl_libdirstem=lib64 ;; | ||
179 | esac ;; | ||
180 | esac | ||
181 | fi | ||
182 | done | ||
183 | IFS="$acl_save_IFS" | ||
184 | fi | ||
185 | ]) | ||
diff --git a/m4/longdouble.m4 b/m4/longdouble.m4 index 25590f47..1333d2f5 100644 --- a/m4/longdouble.m4 +++ b/m4/longdouble.m4 | |||
@@ -1,16 +1,15 @@ | |||
1 | # longdouble.m4 serial 2 (gettext-0.15) | 1 | # longdouble.m4 serial 1 (gettext-0.12) |
2 | dnl Copyright (C) 2002-2003, 2006 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2002-2003 Free Software Foundation, Inc. |
3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software, distributed under the terms of the GNU |
4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl General Public License. As a special exception to the GNU General |
5 | dnl with or without modifications, as long as this notice is preserved. | 5 | dnl Public License, this file may be distributed as part of a program |
6 | dnl that contains a configuration script generated by Autoconf, under | ||
7 | dnl the same distribution terms as the rest of that program. | ||
6 | 8 | ||
7 | dnl From Bruno Haible. | 9 | dnl From Bruno Haible. |
8 | dnl Test whether the compiler supports the 'long double' type. | 10 | dnl Test whether the compiler supports the 'long double' type. |
9 | dnl Prerequisite: AC_PROG_CC | 11 | dnl Prerequisite: AC_PROG_CC |
10 | 12 | ||
11 | dnl This file is only needed in autoconf <= 2.59. Newer versions of autoconf | ||
12 | dnl have a macro AC_TYPE_LONG_DOUBLE with identical semantics. | ||
13 | |||
14 | AC_DEFUN([gt_TYPE_LONGDOUBLE], | 13 | AC_DEFUN([gt_TYPE_LONGDOUBLE], |
15 | [ | 14 | [ |
16 | AC_CACHE_CHECK([for long double], gt_cv_c_long_double, | 15 | AC_CACHE_CHECK([for long double], gt_cv_c_long_double, |
diff --git a/m4/longlong.m4 b/m4/longlong.m4 index 3716c09f..d7d7350b 100644 --- a/m4/longlong.m4 +++ b/m4/longlong.m4 | |||
@@ -1,46 +1,23 @@ | |||
1 | # longlong.m4 serial 8 | 1 | # longlong.m4 serial 4 |
2 | dnl Copyright (C) 1999-2006 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 1999-2003 Free Software Foundation, Inc. |
3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software, distributed under the terms of the GNU |
4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl General Public License. As a special exception to the GNU General |
5 | dnl with or without modifications, as long as this notice is preserved. | 5 | dnl Public License, this file may be distributed as part of a program |
6 | dnl that contains a configuration script generated by Autoconf, under | ||
7 | dnl the same distribution terms as the rest of that program. | ||
6 | 8 | ||
7 | dnl From Paul Eggert. | 9 | dnl From Paul Eggert. |
8 | 10 | ||
9 | # Define HAVE_LONG_LONG_INT if 'long long int' works. | 11 | # Define HAVE_LONG_LONG if 'long long' works. |
10 | # This fixes a bug in Autoconf 2.60, but can be removed once we | ||
11 | # assume 2.61 everywhere. | ||
12 | 12 | ||
13 | # Note: If the type 'long long int' exists but is only 32 bits large | 13 | AC_DEFUN([jm_AC_TYPE_LONG_LONG], |
14 | # (as on some very old compilers), AC_TYPE_LONG_LONG_INT will not be | ||
15 | # defined. In this case you can treat 'long long int' like 'long int'. | ||
16 | |||
17 | AC_DEFUN([AC_TYPE_LONG_LONG_INT], | ||
18 | [ | ||
19 | AC_CACHE_CHECK([for long long int], [ac_cv_type_long_long_int], | ||
20 | [AC_LINK_IFELSE( | ||
21 | [AC_LANG_PROGRAM( | ||
22 | [[long long int ll = 9223372036854775807ll; | ||
23 | long long int nll = -9223372036854775807LL; | ||
24 | typedef int a[((-9223372036854775807LL < 0 | ||
25 | && 0 < 9223372036854775807ll) | ||
26 | ? 1 : -1)]; | ||
27 | int i = 63;]], | ||
28 | [[long long int llmax = 9223372036854775807ll; | ||
29 | return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) | ||
30 | | (llmax / ll) | (llmax % ll));]])], | ||
31 | [ac_cv_type_long_long_int=yes], | ||
32 | [ac_cv_type_long_long_int=no])]) | ||
33 | if test $ac_cv_type_long_long_int = yes; then | ||
34 | AC_DEFINE([HAVE_LONG_LONG_INT], 1, | ||
35 | [Define to 1 if the system has the type `long long int'.]) | ||
36 | fi | ||
37 | ]) | ||
38 | |||
39 | # This macro is obsolescent and should go away soon. | ||
40 | AC_DEFUN([gl_AC_TYPE_LONG_LONG], | ||
41 | [ | 14 | [ |
42 | AC_REQUIRE([AC_TYPE_LONG_LONG_INT]) | 15 | AC_CACHE_CHECK([for long long], ac_cv_type_long_long, |
43 | ac_cv_type_long_long=$ac_cv_type_long_long_int | 16 | [AC_TRY_LINK([long long ll = 1LL; int i = 63;], |
17 | [long long llmax = (long long) -1; | ||
18 | return ll << i | ll >> i | llmax / ll | llmax % ll;], | ||
19 | ac_cv_type_long_long=yes, | ||
20 | ac_cv_type_long_long=no)]) | ||
44 | if test $ac_cv_type_long_long = yes; then | 21 | if test $ac_cv_type_long_long = yes; then |
45 | AC_DEFINE(HAVE_LONG_LONG, 1, | 22 | AC_DEFINE(HAVE_LONG_LONG, 1, |
46 | [Define if you have the 'long long' type.]) | 23 | [Define if you have the 'long long' type.]) |
@@ -1,8 +1,10 @@ | |||
1 | # nls.m4 serial 3 (gettext-0.15) | 1 | # nls.m4 serial 1 (gettext-0.12) |
2 | dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 1995-2003 Free Software Foundation, Inc. |
3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software, distributed under the terms of the GNU |
4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl General Public License. As a special exception to the GNU General |
5 | dnl with or without modifications, as long as this notice is preserved. | 5 | dnl Public License, this file may be distributed as part of a program |
6 | dnl that contains a configuration script generated by Autoconf, under | ||
7 | dnl the same distribution terms as the rest of that program. | ||
6 | dnl | 8 | dnl |
7 | dnl This file can can be used in projects which are not available under | 9 | dnl This file can can be used in projects which are not available under |
8 | dnl the GNU General Public License or the GNU Library General Public | 10 | dnl the GNU General Public License or the GNU Library General Public |
@@ -17,8 +19,6 @@ dnl Authors: | |||
17 | dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000. | 19 | dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000. |
18 | dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003. | 20 | dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003. |
19 | 21 | ||
20 | AC_PREREQ(2.50) | ||
21 | |||
22 | AC_DEFUN([AM_NLS], | 22 | AC_DEFUN([AM_NLS], |
23 | [ | 23 | [ |
24 | AC_MSG_CHECKING([whether NLS is requested]) | 24 | AC_MSG_CHECKING([whether NLS is requested]) |
@@ -29,3 +29,21 @@ AC_DEFUN([AM_NLS], | |||
29 | AC_MSG_RESULT($USE_NLS) | 29 | AC_MSG_RESULT($USE_NLS) |
30 | AC_SUBST(USE_NLS) | 30 | AC_SUBST(USE_NLS) |
31 | ]) | 31 | ]) |
32 | |||
33 | AC_DEFUN([AM_MKINSTALLDIRS], | ||
34 | [ | ||
35 | dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly | ||
36 | dnl find the mkinstalldirs script in another subdir but $(top_srcdir). | ||
37 | dnl Try to locate it. | ||
38 | MKINSTALLDIRS= | ||
39 | if test -n "$ac_aux_dir"; then | ||
40 | case "$ac_aux_dir" in | ||
41 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; | ||
42 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; | ||
43 | esac | ||
44 | fi | ||
45 | if test -z "$MKINSTALLDIRS"; then | ||
46 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | ||
47 | fi | ||
48 | AC_SUBST(MKINSTALLDIRS) | ||
49 | ]) | ||
@@ -1,8 +1,10 @@ | |||
1 | # po.m4 serial 13 (gettext-0.15) | 1 | # po.m4 serial 2 (gettext-0.13) |
2 | dnl Copyright (C) 1995-2006 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 1995-2003 Free Software Foundation, Inc. |
3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software, distributed under the terms of the GNU |
4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl General Public License. As a special exception to the GNU General |
5 | dnl with or without modifications, as long as this notice is preserved. | 5 | dnl Public License, this file may be distributed as part of a program |
6 | dnl that contains a configuration script generated by Autoconf, under | ||
7 | dnl the same distribution terms as the rest of that program. | ||
6 | dnl | 8 | dnl |
7 | dnl This file can can be used in projects which are not available under | 9 | dnl This file can can be used in projects which are not available under |
8 | dnl the GNU General Public License or the GNU Library General Public | 10 | dnl the GNU General Public License or the GNU Library General Public |
@@ -17,14 +19,12 @@ dnl Authors: | |||
17 | dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000. | 19 | dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000. |
18 | dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003. | 20 | dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003. |
19 | 21 | ||
20 | AC_PREREQ(2.50) | ||
21 | |||
22 | dnl Checks for all prerequisites of the po subdirectory. | 22 | dnl Checks for all prerequisites of the po subdirectory. |
23 | AC_DEFUN([AM_PO_SUBDIRS], | 23 | AC_DEFUN([AM_PO_SUBDIRS], |
24 | [ | 24 | [ |
25 | AC_REQUIRE([AC_PROG_MAKE_SET])dnl | 25 | AC_REQUIRE([AC_PROG_MAKE_SET])dnl |
26 | AC_REQUIRE([AC_PROG_INSTALL])dnl | 26 | AC_REQUIRE([AC_PROG_INSTALL])dnl |
27 | AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake | 27 | AC_REQUIRE([AM_MKINSTALLDIRS])dnl |
28 | AC_REQUIRE([AM_NLS])dnl | 28 | AC_REQUIRE([AM_NLS])dnl |
29 | 29 | ||
30 | dnl Perform the following tests also if --disable-nls has been given, | 30 | dnl Perform the following tests also if --disable-nls has been given, |
@@ -34,57 +34,59 @@ AC_DEFUN([AM_PO_SUBDIRS], | |||
34 | dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions. | 34 | dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions. |
35 | dnl The second test excludes FreeBSD msgfmt. | 35 | dnl The second test excludes FreeBSD msgfmt. |
36 | AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, | 36 | AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, |
37 | [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && | 37 | [$ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && |
38 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], | 38 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], |
39 | :) | 39 | :) |
40 | AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) | 40 | AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) |
41 | 41 | ||
42 | dnl Test whether it is GNU msgfmt >= 0.15. | ||
43 | changequote(,)dnl | ||
44 | case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in | ||
45 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; | ||
46 | *) MSGFMT_015=$MSGFMT ;; | ||
47 | esac | ||
48 | changequote([,])dnl | ||
49 | AC_SUBST([MSGFMT_015]) | ||
50 | changequote(,)dnl | ||
51 | case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in | ||
52 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; | ||
53 | *) GMSGFMT_015=$GMSGFMT ;; | ||
54 | esac | ||
55 | changequote([,])dnl | ||
56 | AC_SUBST([GMSGFMT_015]) | ||
57 | |||
58 | dnl Search for GNU xgettext 0.12 or newer in the PATH. | 42 | dnl Search for GNU xgettext 0.12 or newer in the PATH. |
59 | dnl The first test excludes Solaris xgettext and early GNU xgettext versions. | 43 | dnl The first test excludes Solaris xgettext and early GNU xgettext versions. |
60 | dnl The second test excludes FreeBSD xgettext. | 44 | dnl The second test excludes FreeBSD xgettext. |
61 | AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, | 45 | AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, |
62 | [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && | 46 | [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
63 | (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], | 47 | (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], |
64 | :) | 48 | :) |
65 | dnl Remove leftover from FreeBSD xgettext call. | 49 | dnl Remove leftover from FreeBSD xgettext call. |
66 | rm -f messages.po | 50 | rm -f messages.po |
67 | 51 | ||
68 | dnl Test whether it is GNU xgettext >= 0.15. | ||
69 | changequote(,)dnl | ||
70 | case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in | ||
71 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; | ||
72 | *) XGETTEXT_015=$XGETTEXT ;; | ||
73 | esac | ||
74 | changequote([,])dnl | ||
75 | AC_SUBST([XGETTEXT_015]) | ||
76 | |||
77 | dnl Search for GNU msgmerge 0.11 or newer in the PATH. | 52 | dnl Search for GNU msgmerge 0.11 or newer in the PATH. |
78 | AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge, | 53 | AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge, |
79 | [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :) | 54 | [$ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1], :) |
80 | 55 | ||
81 | dnl Installation directories. | 56 | dnl This could go away some day; the PATH_PROG_WITH_TEST already does it. |
82 | dnl Autoconf >= 2.60 defines localedir. For older versions of autoconf, we | 57 | dnl Test whether we really found GNU msgfmt. |
83 | dnl have to define it here, so that it can be used in po/Makefile. | 58 | if test "$GMSGFMT" != ":"; then |
84 | test -n "$localedir" || localedir='${datadir}/locale' | 59 | dnl If it is no GNU msgfmt we define it as : so that the |
85 | AC_SUBST([localedir]) | 60 | dnl Makefiles still can work. |
61 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | ||
62 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | ||
63 | : ; | ||
64 | else | ||
65 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | ||
66 | AC_MSG_RESULT( | ||
67 | [found $GMSGFMT program is not GNU msgfmt; ignore it]) | ||
68 | GMSGFMT=":" | ||
69 | fi | ||
70 | fi | ||
71 | |||
72 | dnl This could go away some day; the PATH_PROG_WITH_TEST already does it. | ||
73 | dnl Test whether we really found GNU xgettext. | ||
74 | if test "$XGETTEXT" != ":"; then | ||
75 | dnl If it is no GNU xgettext we define it as : so that the | ||
76 | dnl Makefiles still can work. | ||
77 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | ||
78 | (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | ||
79 | : ; | ||
80 | else | ||
81 | AC_MSG_RESULT( | ||
82 | [found xgettext program is not GNU xgettext; ignore it]) | ||
83 | XGETTEXT=":" | ||
84 | fi | ||
85 | dnl Remove leftover from FreeBSD xgettext call. | ||
86 | rm -f messages.po | ||
87 | fi | ||
86 | 88 | ||
87 | AC_CONFIG_COMMANDS([po-directories], [[ | 89 | AC_OUTPUT_COMMANDS([ |
88 | for ac_file in $CONFIG_FILES; do | 90 | for ac_file in $CONFIG_FILES; do |
89 | # Support "outfile[:infile[:infile...]]" | 91 | # Support "outfile[:infile[:infile...]]" |
90 | case "$ac_file" in | 92 | case "$ac_file" in |
@@ -104,9 +106,6 @@ changequote([,])dnl | |||
104 | /*) top_srcdir="$ac_given_srcdir" ;; | 106 | /*) top_srcdir="$ac_given_srcdir" ;; |
105 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | 107 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; |
106 | esac | 108 | esac |
107 | # Treat a directory as a PO directory if and only if it has a | ||
108 | # POTFILES.in file. This allows packages to have multiple PO | ||
109 | # directories under different names or in different locations. | ||
110 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | 109 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
111 | rm -f "$ac_dir/POTFILES" | 110 | rm -f "$ac_dir/POTFILES" |
112 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | 111 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" |
@@ -120,13 +119,12 @@ changequote([,])dnl | |||
120 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | 119 | if test -n "$OBSOLETE_ALL_LINGUAS"; then |
121 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" | 120 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
122 | fi | 121 | fi |
123 | ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` | 122 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
124 | # Hide the ALL_LINGUAS assigment from automake < 1.5. | 123 | # Hide the ALL_LINGUAS assigment from automake. |
125 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | 124 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
126 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | 125 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
127 | else | 126 | else |
128 | # The set of available languages was given in configure.in. | 127 | # The set of available languages was given in configure.in. |
129 | # Hide the ALL_LINGUAS assigment from automake < 1.5. | ||
130 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' | 128 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
131 | fi | 129 | fi |
132 | # Compute POFILES | 130 | # Compute POFILES |
@@ -196,10 +194,10 @@ changequote([,])dnl | |||
196 | fi | 194 | fi |
197 | ;; | 195 | ;; |
198 | esac | 196 | esac |
199 | done]], | 197 | done], |
200 | [# Capture the value of obsolete ALL_LINGUAS because we need it to compute | 198 | [# Capture the value of obsolete ALL_LINGUAS because we need it to compute |
201 | # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it | 199 | # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it |
202 | # from automake < 1.5. | 200 | # from automake. |
203 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | 201 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' |
204 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | 202 | # Capture the value of LINGUAS because we need it to compute CATALOGS. |
205 | LINGUAS="${LINGUAS-%UNSET%}" | 203 | LINGUAS="${LINGUAS-%UNSET%}" |
@@ -285,7 +283,7 @@ x | |||
285 | changequote([,])dnl | 283 | changequote([,])dnl |
286 | 284 | ||
287 | # Set POTFILES to the value of the Makefile variable POTFILES. | 285 | # Set POTFILES to the value of the Makefile variable POTFILES. |
288 | sed_x_POTFILES=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/POTFILES/g'` | 286 | sed_x_POTFILES="`$gt_echo \"$sed_x_variable\" | sed -e '/^ *#/d' -e 's/VARIABLE/POTFILES/g'`" |
289 | POTFILES=`sed -n -e "$sed_x_POTFILES" < "$ac_file"` | 287 | POTFILES=`sed -n -e "$sed_x_POTFILES" < "$ac_file"` |
290 | # Compute POTFILES_DEPS as | 288 | # Compute POTFILES_DEPS as |
291 | # $(foreach file, $(POTFILES), $(top_srcdir)/$(file)) | 289 | # $(foreach file, $(POTFILES), $(top_srcdir)/$(file)) |
@@ -300,14 +298,14 @@ changequote([,])dnl | |||
300 | fi | 298 | fi |
301 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | 299 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
302 | # The LINGUAS file contains the set of available languages. | 300 | # The LINGUAS file contains the set of available languages. |
303 | ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` | 301 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
304 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | 302 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
305 | else | 303 | else |
306 | # Set ALL_LINGUAS to the value of the Makefile variable LINGUAS. | 304 | # Set ALL_LINGUAS to the value of the Makefile variable LINGUAS. |
307 | sed_x_LINGUAS=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/LINGUAS/g'` | 305 | sed_x_LINGUAS="`$gt_echo \"$sed_x_variable\" | sed -e '/^ *#/d' -e 's/VARIABLE/LINGUAS/g'`" |
308 | ALL_LINGUAS_=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"` | 306 | ALL_LINGUAS_=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"` |
309 | fi | 307 | fi |
310 | # Hide the ALL_LINGUAS assigment from automake < 1.5. | 308 | # Hide the ALL_LINGUAS assigment from automake. |
311 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | 309 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
312 | # Compute POFILES | 310 | # Compute POFILES |
313 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) | 311 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) |
@@ -325,8 +323,6 @@ changequote([,])dnl | |||
325 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).qm) | 323 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).qm) |
326 | # Compute MSGFILES | 324 | # Compute MSGFILES |
327 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang)).msg) | 325 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang)).msg) |
328 | # Compute RESOURCESDLLFILES | ||
329 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang))/$(DOMAIN).resources.dll) | ||
330 | case "$ac_given_srcdir" in | 326 | case "$ac_given_srcdir" in |
331 | .) srcdirpre= ;; | 327 | .) srcdirpre= ;; |
332 | *) srcdirpre='$(srcdir)/' ;; | 328 | *) srcdirpre='$(srcdir)/' ;; |
@@ -339,7 +335,6 @@ changequote([,])dnl | |||
339 | CLASSFILES= | 335 | CLASSFILES= |
340 | QMFILES= | 336 | QMFILES= |
341 | MSGFILES= | 337 | MSGFILES= |
342 | RESOURCESDLLFILES= | ||
343 | for lang in $ALL_LINGUAS; do | 338 | for lang in $ALL_LINGUAS; do |
344 | POFILES="$POFILES $srcdirpre$lang.po" | 339 | POFILES="$POFILES $srcdirpre$lang.po" |
345 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | 340 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
@@ -350,8 +345,6 @@ changequote([,])dnl | |||
350 | QMFILES="$QMFILES $srcdirpre$lang.qm" | 345 | QMFILES="$QMFILES $srcdirpre$lang.qm" |
351 | frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` | 346 | frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` |
352 | MSGFILES="$MSGFILES $srcdirpre$frobbedlang.msg" | 347 | MSGFILES="$MSGFILES $srcdirpre$frobbedlang.msg" |
353 | frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'` | ||
354 | RESOURCESDLLFILES="$RESOURCESDLLFILES $srcdirpre$frobbedlang/\$(DOMAIN).resources.dll" | ||
355 | done | 348 | done |
356 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | 349 | # CATALOGS depends on both $ac_dir and the user's LINGUAS |
357 | # environment variable. | 350 | # environment variable. |
@@ -383,7 +376,6 @@ changequote([,])dnl | |||
383 | JAVACATALOGS= | 376 | JAVACATALOGS= |
384 | QTCATALOGS= | 377 | QTCATALOGS= |
385 | TCLCATALOGS= | 378 | TCLCATALOGS= |
386 | CSHARPCATALOGS= | ||
387 | if test -n "$INST_LINGUAS"; then | 379 | if test -n "$INST_LINGUAS"; then |
388 | for lang in $INST_LINGUAS; do | 380 | for lang in $INST_LINGUAS; do |
389 | CATALOGS="$CATALOGS $lang.gmo" | 381 | CATALOGS="$CATALOGS $lang.gmo" |
@@ -391,12 +383,10 @@ changequote([,])dnl | |||
391 | QTCATALOGS="$QTCATALOGS $lang.qm" | 383 | QTCATALOGS="$QTCATALOGS $lang.qm" |
392 | frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` | 384 | frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` |
393 | TCLCATALOGS="$TCLCATALOGS $frobbedlang.msg" | 385 | TCLCATALOGS="$TCLCATALOGS $frobbedlang.msg" |
394 | frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'` | ||
395 | CSHARPCATALOGS="$CSHARPCATALOGS $frobbedlang/\$(DOMAIN).resources.dll" | ||
396 | done | 386 | done |
397 | fi | 387 | fi |
398 | 388 | ||
399 | sed -e "s|@POTFILES_DEPS@|$POTFILES_DEPS|g" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@PROPERTIESFILES@|$PROPERTIESFILES|g" -e "s|@CLASSFILES@|$CLASSFILES|g" -e "s|@QMFILES@|$QMFILES|g" -e "s|@MSGFILES@|$MSGFILES|g" -e "s|@RESOURCESDLLFILES@|$RESOURCESDLLFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@JAVACATALOGS@|$JAVACATALOGS|g" -e "s|@QTCATALOGS@|$QTCATALOGS|g" -e "s|@TCLCATALOGS@|$TCLCATALOGS|g" -e "s|@CSHARPCATALOGS@|$CSHARPCATALOGS|g" -e 's,^#distdir:,distdir:,' < "$ac_file" > "$ac_file.tmp" | 389 | sed -e "s|@POTFILES_DEPS@|$POTFILES_DEPS|g" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@PROPERTIESFILES@|$PROPERTIESFILES|g" -e "s|@CLASSFILES@|$CLASSFILES|g" -e "s|@QMFILES@|$QMFILES|g" -e "s|@MSGFILES@|$MSGFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@JAVACATALOGS@|$JAVACATALOGS|g" -e "s|@QTCATALOGS@|$QTCATALOGS|g" -e "s|@TCLCATALOGS@|$TCLCATALOGS|g" -e 's,^#distdir:,distdir:,' < "$ac_file" > "$ac_file.tmp" |
400 | if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then | 390 | if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then |
401 | # Add dependencies that cannot be formulated as a simple suffix rule. | 391 | # Add dependencies that cannot be formulated as a simple suffix rule. |
402 | for lang in $ALL_LINGUAS; do | 392 | for lang in $ALL_LINGUAS; do |
@@ -408,17 +398,6 @@ $frobbedlang.msg: $lang.po | |||
408 | EOF | 398 | EOF |
409 | done | 399 | done |
410 | fi | 400 | fi |
411 | if grep -l '@CSHARPCATALOGS@' "$ac_file" > /dev/null; then | ||
412 | # Add dependencies that cannot be formulated as a simple suffix rule. | ||
413 | for lang in $ALL_LINGUAS; do | ||
414 | frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'` | ||
415 | cat >> "$ac_file.tmp" <<EOF | ||
416 | $frobbedlang/\$(DOMAIN).resources.dll: $lang.po | ||
417 | @echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r \$(DOMAIN)"; \ | ||
418 | \$(MSGFMT) -c --csharp -d "\$(srcdir)" -l $lang $srcdirpre$lang.po -r "\$(DOMAIN)" || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; } | ||
419 | EOF | ||
420 | done | ||
421 | fi | ||
422 | if test -n "$POMAKEFILEDEPS"; then | 401 | if test -n "$POMAKEFILEDEPS"; then |
423 | cat >> "$ac_file.tmp" <<EOF | 402 | cat >> "$ac_file.tmp" <<EOF |
424 | Makefile: $POMAKEFILEDEPS | 403 | Makefile: $POMAKEFILEDEPS |
diff --git a/m4/printf-posix.m4 b/m4/printf-posix.m4 index af10170a..186ba6a6 100644 --- a/m4/printf-posix.m4 +++ b/m4/printf-posix.m4 | |||
@@ -1,8 +1,10 @@ | |||
1 | # printf-posix.m4 serial 2 (gettext-0.13.1) | 1 | # printf-posix.m4 serial 2 (gettext-0.13.1) |
2 | dnl Copyright (C) 2003 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2003 Free Software Foundation, Inc. |
3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software, distributed under the terms of the GNU |
4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl General Public License. As a special exception to the GNU General |
5 | dnl with or without modifications, as long as this notice is preserved. | 5 | dnl Public License, this file may be distributed as part of a program |
6 | dnl that contains a configuration script generated by Autoconf, under | ||
7 | dnl the same distribution terms as the rest of that program. | ||
6 | 8 | ||
7 | dnl From Bruno Haible. | 9 | dnl From Bruno Haible. |
8 | dnl Test whether the printf() function supports POSIX/XSI format strings with | 10 | dnl Test whether the printf() function supports POSIX/XSI format strings with |
diff --git a/m4/progtest.m4 b/m4/progtest.m4 index a56365cd..8fe527ce 100644 --- a/m4/progtest.m4 +++ b/m4/progtest.m4 | |||
@@ -1,8 +1,10 @@ | |||
1 | # progtest.m4 serial 4 (gettext-0.14.2) | 1 | # progtest.m4 serial 3 (gettext-0.12) |
2 | dnl Copyright (C) 1996-2003, 2005 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 1996-2003 Free Software Foundation, Inc. |
3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software, distributed under the terms of the GNU |
4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl General Public License. As a special exception to the GNU General |
5 | dnl with or without modifications, as long as this notice is preserved. | 5 | dnl Public License, this file may be distributed as part of a program |
6 | dnl that contains a configuration script generated by Autoconf, under | ||
7 | dnl the same distribution terms as the rest of that program. | ||
6 | dnl | 8 | dnl |
7 | dnl This file can can be used in projects which are not available under | 9 | dnl This file can can be used in projects which are not available under |
8 | dnl the GNU General Public License or the GNU Library General Public | 10 | dnl the GNU General Public License or the GNU Library General Public |
@@ -16,8 +18,6 @@ dnl They are *not* in the public domain. | |||
16 | dnl Authors: | 18 | dnl Authors: |
17 | dnl Ulrich Drepper <drepper@cygnus.com>, 1996. | 19 | dnl Ulrich Drepper <drepper@cygnus.com>, 1996. |
18 | 20 | ||
19 | AC_PREREQ(2.50) | ||
20 | |||
21 | # Search path for a program which passes the given test. | 21 | # Search path for a program which passes the given test. |
22 | 22 | ||
23 | dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, | 23 | dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, |
@@ -67,7 +67,6 @@ AC_CACHE_VAL(ac_cv_path_$1, | |||
67 | test -z "$ac_dir" && ac_dir=. | 67 | test -z "$ac_dir" && ac_dir=. |
68 | for ac_exec_ext in '' $ac_executable_extensions; do | 68 | for ac_exec_ext in '' $ac_executable_extensions; do |
69 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | 69 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
70 | echo "$as_me: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FD | ||
71 | if [$3]; then | 70 | if [$3]; then |
72 | ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext" | 71 | ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext" |
73 | break 2 | 72 | break 2 |
diff --git a/m4/size_max.m4 b/m4/size_max.m4 index bfba811e..5762fc33 100644 --- a/m4/size_max.m4 +++ b/m4/size_max.m4 | |||
@@ -1,8 +1,10 @@ | |||
1 | # size_max.m4 serial 5 | 1 | # size_max.m4 serial 2 |
2 | dnl Copyright (C) 2003, 2005-2006 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2003 Free Software Foundation, Inc. |
3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software, distributed under the terms of the GNU |
4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl General Public License. As a special exception to the GNU General |
5 | dnl with or without modifications, as long as this notice is preserved. | 5 | dnl Public License, this file may be distributed as part of a program |
6 | dnl that contains a configuration script generated by Autoconf, under | ||
7 | dnl the same distribution terms as the rest of that program. | ||
6 | 8 | ||
7 | dnl From Bruno Haible. | 9 | dnl From Bruno Haible. |
8 | 10 | ||
@@ -11,9 +13,8 @@ AC_DEFUN([gl_SIZE_MAX], | |||
11 | AC_CHECK_HEADERS(stdint.h) | 13 | AC_CHECK_HEADERS(stdint.h) |
12 | dnl First test whether the system already has SIZE_MAX. | 14 | dnl First test whether the system already has SIZE_MAX. |
13 | AC_MSG_CHECKING([for SIZE_MAX]) | 15 | AC_MSG_CHECKING([for SIZE_MAX]) |
14 | AC_CACHE_VAL([gl_cv_size_max], [ | 16 | result= |
15 | gl_cv_size_max= | 17 | AC_EGREP_CPP([Found it], [ |
16 | AC_EGREP_CPP([Found it], [ | ||
17 | #include <limits.h> | 18 | #include <limits.h> |
18 | #if HAVE_STDINT_H | 19 | #if HAVE_STDINT_H |
19 | #include <stdint.h> | 20 | #include <stdint.h> |
@@ -21,42 +22,40 @@ AC_DEFUN([gl_SIZE_MAX], | |||
21 | #ifdef SIZE_MAX | 22 | #ifdef SIZE_MAX |
22 | Found it | 23 | Found it |
23 | #endif | 24 | #endif |
24 | ], gl_cv_size_max=yes) | 25 | ], result=yes) |
25 | if test -z "$gl_cv_size_max"; then | 26 | if test -z "$result"; then |
26 | dnl Define it ourselves. Here we assume that the type 'size_t' is not wider | 27 | dnl Define it ourselves. Here we assume that the type 'size_t' is not wider |
27 | dnl than the type 'unsigned long'. Try hard to find a definition that can | 28 | dnl than the type 'unsigned long'. |
28 | dnl be used in a preprocessor #if, i.e. doesn't contain a cast. | 29 | dnl The _AC_COMPUTE_INT macro works up to LONG_MAX, since it uses 'expr', |
29 | _AC_COMPUTE_INT([sizeof (size_t) * CHAR_BIT - 1], size_t_bits_minus_1, | 30 | dnl which is guaranteed to work from LONG_MIN to LONG_MAX. |
30 | [#include <stddef.h> | 31 | _AC_COMPUTE_INT([~(size_t)0 / 10], res_hi, |
31 | #include <limits.h>], size_t_bits_minus_1=) | 32 | [#include <stddef.h>], result=?) |
32 | _AC_COMPUTE_INT([sizeof (size_t) <= sizeof (unsigned int)], fits_in_uint, | 33 | _AC_COMPUTE_INT([~(size_t)0 % 10], res_lo, |
33 | [#include <stddef.h>], fits_in_uint=) | 34 | [#include <stddef.h>], result=?) |
34 | if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then | 35 | _AC_COMPUTE_INT([sizeof (size_t) <= sizeof (unsigned int)], fits_in_uint, |
35 | if test $fits_in_uint = 1; then | 36 | [#include <stddef.h>], result=?) |
36 | dnl Even though SIZE_MAX fits in an unsigned int, it must be of type | 37 | if test "$fits_in_uint" = 1; then |
37 | dnl 'unsigned long' if the type 'size_t' is the same as 'unsigned long'. | 38 | dnl Even though SIZE_MAX fits in an unsigned int, it must be of type |
38 | AC_TRY_COMPILE([#include <stddef.h> | 39 | dnl 'unsigned long' if the type 'size_t' is the same as 'unsigned long'. |
39 | extern size_t foo; | 40 | AC_TRY_COMPILE([#include <stddef.h> |
40 | extern unsigned long foo; | 41 | extern size_t foo; |
41 | ], [], fits_in_uint=0) | 42 | extern unsigned long foo; |
42 | fi | 43 | ], [], fits_in_uint=0) |
43 | dnl We cannot use 'expr' to simplify this expression, because 'expr' | 44 | fi |
44 | dnl works only with 'long' integers in the host environment, while we | 45 | if test -z "$result"; then |
45 | dnl might be cross-compiling from a 32-bit platform to a 64-bit platform. | 46 | if test "$fits_in_uint" = 1; then |
46 | if test $fits_in_uint = 1; then | 47 | result="$res_hi$res_lo"U |
47 | gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)" | ||
48 | else | ||
49 | gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)" | ||
50 | fi | ||
51 | else | 48 | else |
52 | dnl Shouldn't happen, but who knows... | 49 | result="$res_hi$res_lo"UL |
53 | gl_cv_size_max='((size_t)~(size_t)0)' | ||
54 | fi | 50 | fi |
51 | else | ||
52 | dnl Shouldn't happen, but who knows... | ||
53 | result='~(size_t)0' | ||
55 | fi | 54 | fi |
56 | ]) | 55 | fi |
57 | AC_MSG_RESULT([$gl_cv_size_max]) | 56 | AC_MSG_RESULT([$result]) |
58 | if test "$gl_cv_size_max" != yes; then | 57 | if test "$result" != yes; then |
59 | AC_DEFINE_UNQUOTED([SIZE_MAX], [$gl_cv_size_max], | 58 | AC_DEFINE_UNQUOTED([SIZE_MAX], [$result], |
60 | [Define as the maximum value of type 'size_t', if the system doesn't define it.]) | 59 | [Define as the maximum value of type 'size_t', if the system doesn't define it.]) |
61 | fi | 60 | fi |
62 | ]) | 61 | ]) |
diff --git a/m4/stdint_h.m4 b/m4/stdint_h.m4 index db9a8ac4..32ba7ae7 100644 --- a/m4/stdint_h.m4 +++ b/m4/stdint_h.m4 | |||
@@ -1,24 +1,26 @@ | |||
1 | # stdint_h.m4 serial 6 | 1 | # stdint_h.m4 serial 3 (gettext-0.12) |
2 | dnl Copyright (C) 1997-2004, 2006 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 1997-2003 Free Software Foundation, Inc. |
3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software, distributed under the terms of the GNU |
4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl General Public License. As a special exception to the GNU General |
5 | dnl with or without modifications, as long as this notice is preserved. | 5 | dnl Public License, this file may be distributed as part of a program |
6 | dnl that contains a configuration script generated by Autoconf, under | ||
7 | dnl the same distribution terms as the rest of that program. | ||
6 | 8 | ||
7 | dnl From Paul Eggert. | 9 | dnl From Paul Eggert. |
8 | 10 | ||
9 | # Define HAVE_STDINT_H_WITH_UINTMAX if <stdint.h> exists, | 11 | # Define HAVE_STDINT_H_WITH_UINTMAX if <stdint.h> exists, |
10 | # doesn't clash with <sys/types.h>, and declares uintmax_t. | 12 | # doesn't clash with <sys/types.h>, and declares uintmax_t. |
11 | 13 | ||
12 | AC_DEFUN([gl_AC_HEADER_STDINT_H], | 14 | AC_DEFUN([jm_AC_HEADER_STDINT_H], |
13 | [ | 15 | [ |
14 | AC_CACHE_CHECK([for stdint.h], gl_cv_header_stdint_h, | 16 | AC_CACHE_CHECK([for stdint.h], jm_ac_cv_header_stdint_h, |
15 | [AC_TRY_COMPILE( | 17 | [AC_TRY_COMPILE( |
16 | [#include <sys/types.h> | 18 | [#include <sys/types.h> |
17 | #include <stdint.h>], | 19 | #include <stdint.h>], |
18 | [uintmax_t i = (uintmax_t) -1; return !i;], | 20 | [uintmax_t i = (uintmax_t) -1;], |
19 | gl_cv_header_stdint_h=yes, | 21 | jm_ac_cv_header_stdint_h=yes, |
20 | gl_cv_header_stdint_h=no)]) | 22 | jm_ac_cv_header_stdint_h=no)]) |
21 | if test $gl_cv_header_stdint_h = yes; then | 23 | if test $jm_ac_cv_header_stdint_h = yes; then |
22 | AC_DEFINE_UNQUOTED(HAVE_STDINT_H_WITH_UINTMAX, 1, | 24 | AC_DEFINE_UNQUOTED(HAVE_STDINT_H_WITH_UINTMAX, 1, |
23 | [Define if <stdint.h> exists, doesn't clash with <sys/types.h>, | 25 | [Define if <stdint.h> exists, doesn't clash with <sys/types.h>, |
24 | and declares uintmax_t. ]) | 26 | and declares uintmax_t. ]) |
diff --git a/m4/uintmax_t.m4 b/m4/uintmax_t.m4 index bf83ed74..b5f28d44 100644 --- a/m4/uintmax_t.m4 +++ b/m4/uintmax_t.m4 | |||
@@ -1,8 +1,10 @@ | |||
1 | # uintmax_t.m4 serial 9 | 1 | # uintmax_t.m4 serial 7 (gettext-0.12) |
2 | dnl Copyright (C) 1997-2004 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 1997-2003 Free Software Foundation, Inc. |
3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software, distributed under the terms of the GNU |
4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl General Public License. As a special exception to the GNU General |
5 | dnl with or without modifications, as long as this notice is preserved. | 5 | dnl Public License, this file may be distributed as part of a program |
6 | dnl that contains a configuration script generated by Autoconf, under | ||
7 | dnl the same distribution terms as the rest of that program. | ||
6 | 8 | ||
7 | dnl From Paul Eggert. | 9 | dnl From Paul Eggert. |
8 | 10 | ||
@@ -11,12 +13,12 @@ AC_PREREQ(2.13) | |||
11 | # Define uintmax_t to 'unsigned long' or 'unsigned long long' | 13 | # Define uintmax_t to 'unsigned long' or 'unsigned long long' |
12 | # if it is not already defined in <stdint.h> or <inttypes.h>. | 14 | # if it is not already defined in <stdint.h> or <inttypes.h>. |
13 | 15 | ||
14 | AC_DEFUN([gl_AC_TYPE_UINTMAX_T], | 16 | AC_DEFUN([jm_AC_TYPE_UINTMAX_T], |
15 | [ | 17 | [ |
16 | AC_REQUIRE([gl_AC_HEADER_INTTYPES_H]) | 18 | AC_REQUIRE([jm_AC_HEADER_INTTYPES_H]) |
17 | AC_REQUIRE([gl_AC_HEADER_STDINT_H]) | 19 | AC_REQUIRE([jm_AC_HEADER_STDINT_H]) |
18 | if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then | 20 | if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then |
19 | AC_REQUIRE([gl_AC_TYPE_UNSIGNED_LONG_LONG]) | 21 | AC_REQUIRE([jm_AC_TYPE_UNSIGNED_LONG_LONG]) |
20 | test $ac_cv_type_unsigned_long_long = yes \ | 22 | test $ac_cv_type_unsigned_long_long = yes \ |
21 | && ac_type='unsigned long long' \ | 23 | && ac_type='unsigned long long' \ |
22 | || ac_type='unsigned long' | 24 | || ac_type='unsigned long' |
diff --git a/m4/ulonglong.m4 b/m4/ulonglong.m4 index 9fae98e3..1da8b809 100644 --- a/m4/ulonglong.m4 +++ b/m4/ulonglong.m4 | |||
@@ -1,46 +1,23 @@ | |||
1 | # ulonglong.m4 serial 6 | 1 | # ulonglong.m4 serial 3 |
2 | dnl Copyright (C) 1999-2006 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 1999-2003 Free Software Foundation, Inc. |
3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software, distributed under the terms of the GNU |
4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl General Public License. As a special exception to the GNU General |
5 | dnl with or without modifications, as long as this notice is preserved. | 5 | dnl Public License, this file may be distributed as part of a program |
6 | dnl that contains a configuration script generated by Autoconf, under | ||
7 | dnl the same distribution terms as the rest of that program. | ||
6 | 8 | ||
7 | dnl From Paul Eggert. | 9 | dnl From Paul Eggert. |
8 | 10 | ||
9 | # Define HAVE_UNSIGNED_LONG_LONG_INT if 'unsigned long long int' works. | 11 | # Define HAVE_UNSIGNED_LONG_LONG if 'unsigned long long' works. |
10 | # This fixes a bug in Autoconf 2.60, but can be removed once we | ||
11 | # assume 2.61 everywhere. | ||
12 | 12 | ||
13 | # Note: If the type 'unsigned long long int' exists but is only 32 bits | 13 | AC_DEFUN([jm_AC_TYPE_UNSIGNED_LONG_LONG], |
14 | # large (as on some very old compilers), AC_TYPE_UNSIGNED_LONG_LONG_INT | ||
15 | # will not be defined. In this case you can treat 'unsigned long long int' | ||
16 | # like 'unsigned long int'. | ||
17 | |||
18 | AC_DEFUN([AC_TYPE_UNSIGNED_LONG_LONG_INT], | ||
19 | [ | ||
20 | AC_CACHE_CHECK([for unsigned long long int], | ||
21 | [ac_cv_type_unsigned_long_long_int], | ||
22 | [AC_LINK_IFELSE( | ||
23 | [AC_LANG_PROGRAM( | ||
24 | [[unsigned long long int ull = 18446744073709551615ULL; | ||
25 | typedef int a[(18446744073709551615ULL <= (unsigned long long int) -1 | ||
26 | ? 1 : -1)]; | ||
27 | int i = 63;]], | ||
28 | [[unsigned long long int ullmax = 18446744073709551615ull; | ||
29 | return (ull << 63 | ull >> 63 | ull << i | ull >> i | ||
30 | | ullmax / ull | ullmax % ull);]])], | ||
31 | [ac_cv_type_unsigned_long_long_int=yes], | ||
32 | [ac_cv_type_unsigned_long_long_int=no])]) | ||
33 | if test $ac_cv_type_unsigned_long_long_int = yes; then | ||
34 | AC_DEFINE([HAVE_UNSIGNED_LONG_LONG_INT], 1, | ||
35 | [Define to 1 if the system has the type `unsigned long long int'.]) | ||
36 | fi | ||
37 | ]) | ||
38 | |||
39 | # This macro is obsolescent and should go away soon. | ||
40 | AC_DEFUN([gl_AC_TYPE_UNSIGNED_LONG_LONG], | ||
41 | [ | 14 | [ |
42 | AC_REQUIRE([AC_TYPE_UNSIGNED_LONG_LONG_INT]) | 15 | AC_CACHE_CHECK([for unsigned long long], ac_cv_type_unsigned_long_long, |
43 | ac_cv_type_unsigned_long_long=$ac_cv_type_unsigned_long_long_int | 16 | [AC_TRY_LINK([unsigned long long ull = 1ULL; int i = 63;], |
17 | [unsigned long long ullmax = (unsigned long long) -1; | ||
18 | return ull << i | ull >> i | ullmax / ull | ullmax % ull;], | ||
19 | ac_cv_type_unsigned_long_long=yes, | ||
20 | ac_cv_type_unsigned_long_long=no)]) | ||
44 | if test $ac_cv_type_unsigned_long_long = yes; then | 21 | if test $ac_cv_type_unsigned_long_long = yes; then |
45 | AC_DEFINE(HAVE_UNSIGNED_LONG_LONG, 1, | 22 | AC_DEFINE(HAVE_UNSIGNED_LONG_LONG, 1, |
46 | [Define if you have the 'unsigned long long' type.]) | 23 | [Define if you have the 'unsigned long long' type.]) |
diff --git a/m4/wchar_t.m4 b/m4/wchar_t.m4 index cde2129a..d8fd1ec5 100644 --- a/m4/wchar_t.m4 +++ b/m4/wchar_t.m4 | |||
@@ -1,8 +1,10 @@ | |||
1 | # wchar_t.m4 serial 1 (gettext-0.12) | 1 | # wchar_t.m4 serial 1 (gettext-0.12) |
2 | dnl Copyright (C) 2002-2003 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2002-2003 Free Software Foundation, Inc. |
3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software, distributed under the terms of the GNU |
4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl General Public License. As a special exception to the GNU General |
5 | dnl with or without modifications, as long as this notice is preserved. | 5 | dnl Public License, this file may be distributed as part of a program |
6 | dnl that contains a configuration script generated by Autoconf, under | ||
7 | dnl the same distribution terms as the rest of that program. | ||
6 | 8 | ||
7 | dnl From Bruno Haible. | 9 | dnl From Bruno Haible. |
8 | dnl Test whether <stddef.h> has the 'wchar_t' type. | 10 | dnl Test whether <stddef.h> has the 'wchar_t' type. |
diff --git a/m4/wint_t.m4 b/m4/wint_t.m4 index b8fff9c8..3d8d2159 100644 --- a/m4/wint_t.m4 +++ b/m4/wint_t.m4 | |||
@@ -1,8 +1,10 @@ | |||
1 | # wint_t.m4 serial 1 (gettext-0.12) | 1 | # wint_t.m4 serial 1 (gettext-0.12) |
2 | dnl Copyright (C) 2003 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2003 Free Software Foundation, Inc. |
3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software, distributed under the terms of the GNU |
4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl General Public License. As a special exception to the GNU General |
5 | dnl with or without modifications, as long as this notice is preserved. | 5 | dnl Public License, this file may be distributed as part of a program |
6 | dnl that contains a configuration script generated by Autoconf, under | ||
7 | dnl the same distribution terms as the rest of that program. | ||
6 | 8 | ||
7 | dnl From Bruno Haible. | 9 | dnl From Bruno Haible. |
8 | dnl Test whether <wchar.h> has the 'wint_t' type. | 10 | dnl Test whether <wchar.h> has the 'wint_t' type. |
diff --git a/m4/xsize.m4 b/m4/xsize.m4 index 85bb721e..9b7cf9b4 100644 --- a/m4/xsize.m4 +++ b/m4/xsize.m4 | |||
@@ -1,13 +1,14 @@ | |||
1 | # xsize.m4 serial 3 | 1 | # xsize.m4 serial 2 |
2 | dnl Copyright (C) 2003-2004 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2003 Free Software Foundation, Inc. |
3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software, distributed under the terms of the GNU |
4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl General Public License. As a special exception to the GNU General |
5 | dnl with or without modifications, as long as this notice is preserved. | 5 | dnl Public License, this file may be distributed as part of a program |
6 | dnl that contains a configuration script generated by Autoconf, under | ||
7 | dnl the same distribution terms as the rest of that program. | ||
6 | 8 | ||
7 | AC_DEFUN([gl_XSIZE], | 9 | AC_DEFUN([gl_XSIZE], |
8 | [ | 10 | [ |
9 | dnl Prerequisites of lib/xsize.h. | 11 | dnl Prerequisites of lib/xsize.h. |
10 | AC_REQUIRE([gl_SIZE_MAX]) | 12 | AC_REQUIRE([gl_SIZE_MAX]) |
11 | AC_REQUIRE([AC_C_INLINE]) | ||
12 | AC_CHECK_HEADERS(stdint.h) | 13 | AC_CHECK_HEADERS(stdint.h) |
13 | ]) | 14 | ]) |