|
version 1.1.1.2, 2012/05/29 09:29:44
|
version 1.1.1.3, 2021/03/17 13:38:46
|
|
Line 1
|
Line 1
|
| # gettext.m4 serial 64 (gettext-0.18.2) | # gettext.m4 serial 69 (gettext-0.20) |
| dnl Copyright (C) 1995-2011 Free Software Foundation, Inc. | dnl Copyright (C) 1995-2014, 2016, 2018-2019 Free Software Foundation, Inc. |
| dnl This file is free software; the Free Software Foundation |
dnl This file is free software; the Free Software Foundation |
| dnl gives unlimited permission to copy and/or distribute it, |
dnl gives unlimited permission to copy and/or distribute it, |
| dnl with or without modifications, as long as this notice is preserved. |
dnl with or without modifications, as long as this notice is preserved. |
| dnl |
dnl |
| dnl This file can can be used in projects which are not available under | dnl This file can be used in projects which are not available under |
| dnl the GNU General Public License or the GNU Library General Public |
dnl the GNU General Public License or the GNU Library General Public |
| dnl License but which still want to provide support for the GNU gettext |
dnl License but which still want to provide support for the GNU gettext |
| dnl functionality. |
dnl functionality. |
| dnl Please note that the actual code of the GNU gettext library is covered |
dnl Please note that the actual code of the GNU gettext library is covered |
| dnl by the GNU Library General Public License, and the rest of the GNU |
dnl by the GNU Library General Public License, and the rest of the GNU |
| dnl gettext package package is covered by the GNU General Public License. | dnl gettext package is covered by the GNU General Public License. |
| dnl They are *not* in the public domain. |
dnl They are *not* in the public domain. |
| |
|
| dnl Authors: |
dnl Authors: |
|
Line 35 dnl will be ignored. If NEEDSYMBOL is specified an
|
Line 35 dnl will be ignored. If NEEDSYMBOL is specified an
|
| dnl 'need-formatstring-macros', then GNU gettext implementations that don't |
dnl 'need-formatstring-macros', then GNU gettext implementations that don't |
| dnl support the ISO C 99 <inttypes.h> formatstring macros will be ignored. |
dnl support the ISO C 99 <inttypes.h> formatstring macros will be ignored. |
| dnl INTLDIR is used to find the intl libraries. If empty, |
dnl INTLDIR is used to find the intl libraries. If empty, |
| dnl the value `$(top_builddir)/intl/' is used. | dnl the value '$(top_builddir)/intl/' is used. |
| dnl |
dnl |
| dnl The result of the configuration is one of three cases: |
dnl The result of the configuration is one of three cases: |
| dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled |
dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled |
|
Line 91 AC_DEFUN([AM_GNU_GETTEXT],
|
Line 91 AC_DEFUN([AM_GNU_GETTEXT],
|
| dnl again, outside any 'if'. There are two solutions: |
dnl again, outside any 'if'. There are two solutions: |
| dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'. |
dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'. |
| dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE. |
dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE. |
| dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not | dnl Since AC_PROVIDE_IFELSE is not documented, we avoid it. |
| dnl documented, we avoid it. | |
| ifelse(gt_included_intl, yes, , [ |
ifelse(gt_included_intl, yes, , [ |
| AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) |
AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) |
| ]) |
]) |
| |
|
| dnl Sometimes, on MacOS X, libintl requires linking with CoreFoundation. | dnl Sometimes, on Mac OS X, libintl requires linking with CoreFoundation. |
| gt_INTL_MACOSX |
gt_INTL_MACOSX |
| |
|
| dnl Set USE_NLS. |
dnl Set USE_NLS. |
|
Line 161 changequote([,])dnl
|
Line 160 changequote([,])dnl
|
| [AC_LANG_PROGRAM( |
[AC_LANG_PROGRAM( |
| [[ |
[[ |
| #include <libintl.h> |
#include <libintl.h> |
| $gt_revision_test_code | #ifndef __GNU_GETTEXT_SUPPORTED_REVISION |
| extern int _nl_msg_cat_cntr; |
extern int _nl_msg_cat_cntr; |
| extern int *_nl_domain_bindings; |
extern int *_nl_domain_bindings; |
| |
#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings) |
| |
#else |
| |
#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 |
| |
#endif |
| |
$gt_revision_test_code |
| ]], |
]], |
| [[ |
[[ |
| bindtextdomain ("", ""); |
bindtextdomain ("", ""); |
| return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings | return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION |
| ]])], |
]])], |
| [eval "$gt_func_gnugettext_libc=yes"], |
[eval "$gt_func_gnugettext_libc=yes"], |
| [eval "$gt_func_gnugettext_libc=no"])]) |
[eval "$gt_func_gnugettext_libc=no"])]) |
|
Line 193 return * gettext ("")$gt_expression_test_code + _nl_ms
|
Line 197 return * gettext ("")$gt_expression_test_code + _nl_ms
|
| [AC_LANG_PROGRAM( |
[AC_LANG_PROGRAM( |
| [[ |
[[ |
| #include <libintl.h> |
#include <libintl.h> |
| $gt_revision_test_code | #ifndef __GNU_GETTEXT_SUPPORTED_REVISION |
| extern int _nl_msg_cat_cntr; |
extern int _nl_msg_cat_cntr; |
| extern |
extern |
| #ifdef __cplusplus |
#ifdef __cplusplus |
| "C" |
"C" |
| #endif |
#endif |
| const char *_nl_expand_alias (const char *); |
const char *_nl_expand_alias (const char *); |
| |
#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) |
| |
#else |
| |
#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 |
| |
#endif |
| |
$gt_revision_test_code |
| ]], |
]], |
| [[ |
[[ |
| bindtextdomain ("", ""); |
bindtextdomain ("", ""); |
| return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") | return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION |
| ]])], |
]])], |
| [eval "$gt_func_gnugettext_libintl=yes"], |
[eval "$gt_func_gnugettext_libintl=yes"], |
| [eval "$gt_func_gnugettext_libintl=no"]) |
[eval "$gt_func_gnugettext_libintl=no"]) |
|
Line 214 return * gettext ("")$gt_expression_test_code + _nl_ms
|
Line 223 return * gettext ("")$gt_expression_test_code + _nl_ms
|
| [AC_LANG_PROGRAM( |
[AC_LANG_PROGRAM( |
| [[ |
[[ |
| #include <libintl.h> |
#include <libintl.h> |
| $gt_revision_test_code | #ifndef __GNU_GETTEXT_SUPPORTED_REVISION |
| extern int _nl_msg_cat_cntr; |
extern int _nl_msg_cat_cntr; |
| extern |
extern |
| #ifdef __cplusplus |
#ifdef __cplusplus |
| "C" |
"C" |
| #endif |
#endif |
| const char *_nl_expand_alias (const char *); |
const char *_nl_expand_alias (const char *); |
| |
#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) |
| |
#else |
| |
#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 |
| |
#endif |
| |
$gt_revision_test_code |
| ]], |
]], |
| [[ |
[[ |
| bindtextdomain ("", ""); |
bindtextdomain ("", ""); |
| return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") | return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION |
| ]])], |
]])], |
| [LIBINTL="$LIBINTL $LIBICONV" |
[LIBINTL="$LIBINTL $LIBICONV" |
| LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
|
Line 399 AC_DEFUN([AM_GNU_GETTEXT_NEED],
|
Line 413 AC_DEFUN([AM_GNU_GETTEXT_NEED],
|
| |
|
| dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version]) |
dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version]) |
| AC_DEFUN([AM_GNU_GETTEXT_VERSION], []) |
AC_DEFUN([AM_GNU_GETTEXT_VERSION], []) |
| |
|
| |
|
| |
dnl Usage: AM_GNU_GETTEXT_REQUIRE_VERSION([gettext-version]) |
| |
AC_DEFUN([AM_GNU_GETTEXT_REQUIRE_VERSION], []) |