summaryrefslogtreecommitdiffstats
path: root/gl/m4/intl.m4
diff options
context:
space:
mode:
Diffstat (limited to 'gl/m4/intl.m4')
-rw-r--r--gl/m4/intl.m436
1 files changed, 31 insertions, 5 deletions
diff --git a/gl/m4/intl.m4 b/gl/m4/intl.m4
index dcefb11..934408b 100644
--- a/gl/m4/intl.m4
+++ b/gl/m4/intl.m4
@@ -1,5 +1,5 @@
1# intl.m4 serial 3 (gettext-0.16) 1# intl.m4 serial 8 (gettext-0.17)
2dnl Copyright (C) 1995-2006 Free Software Foundation, Inc. 2dnl Copyright (C) 1995-2007 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
@@ -33,7 +33,6 @@ AC_DEFUN([AM_INTL_SUBDIR],
33 AC_REQUIRE([gl_VISIBILITY])dnl 33 AC_REQUIRE([gl_VISIBILITY])dnl
34 AC_REQUIRE([gt_INTL_SUBDIR_CORE])dnl 34 AC_REQUIRE([gt_INTL_SUBDIR_CORE])dnl
35 AC_REQUIRE([AC_TYPE_LONG_LONG_INT])dnl 35 AC_REQUIRE([AC_TYPE_LONG_LONG_INT])dnl
36 AC_REQUIRE([gt_TYPE_LONGDOUBLE])dnl
37 AC_REQUIRE([gt_TYPE_WCHAR_T])dnl 36 AC_REQUIRE([gt_TYPE_WCHAR_T])dnl
38 AC_REQUIRE([gt_TYPE_WINT_T])dnl 37 AC_REQUIRE([gt_TYPE_WINT_T])dnl
39 AC_REQUIRE([gl_AC_HEADER_INTTYPES_H]) 38 AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])
@@ -98,7 +97,7 @@ AC_DEFUN([AM_INTL_SUBDIR],
98 dnl exported variables _also_ in the static library. 97 dnl exported variables _also_ in the static library.
99 if test "$enable_shared" = yes; then 98 if test "$enable_shared" = yes; then
100 case "$host_os" in 99 case "$host_os" in
101 cygwin*) is_woe32dll=yes ;; 100 mingw* | cygwin*) is_woe32dll=yes ;;
102 *) is_woe32dll=no ;; 101 *) is_woe32dll=no ;;
103 esac 102 esac
104 else 103 else
@@ -107,6 +106,31 @@ AC_DEFUN([AM_INTL_SUBDIR],
107 WOE32DLL=$is_woe32dll 106 WOE32DLL=$is_woe32dll
108 AC_SUBST([WOE32DLL]) 107 AC_SUBST([WOE32DLL])
109 108
109 dnl On mingw and Cygwin, we can activate special Makefile rules which add
110 dnl version information to the shared libraries and executables.
111 case "$host_os" in
112 mingw* | cygwin*) is_woe32=yes ;;
113 *) is_woe32=no ;;
114 esac
115 WOE32=$is_woe32
116 AC_SUBST([WOE32])
117 if test $WOE32 = yes; then
118 dnl Check for a program that compiles Windows resource files.
119 AC_CHECK_TOOL([WINDRES], [windres])
120 fi
121
122 dnl Determine whether when creating a library, "-lc" should be passed to
123 dnl libtool or not. On many platforms, it is required for the libtool option
124 dnl -no-undefined to work. On HP-UX, however, the -lc - stored by libtool
125 dnl in the *.la files - makes it impossible to create multithreaded programs,
126 dnl because libtool also reorders the -lc to come before the -pthread, and
127 dnl this disables pthread_create() <http://docs.hp.com/en/1896/pthreads.html>.
128 case "$host_os" in
129 hpux*) LTLIBC="" ;;
130 *) LTLIBC="-lc" ;;
131 esac
132 AC_SUBST([LTLIBC])
133
110 dnl Rename some macros and functions used for locking. 134 dnl Rename some macros and functions used for locking.
111 AH_BOTTOM([ 135 AH_BOTTOM([
112#define __libc_lock_t gl_lock_t 136#define __libc_lock_t gl_lock_t
@@ -197,7 +221,9 @@ AC_DEFUN([gt_INTL_SUBDIR_CORE],
197 AC_CACHE_CHECK([for NL_LOCALE_NAME macro], gt_cv_nl_locale_name, 221 AC_CACHE_CHECK([for NL_LOCALE_NAME macro], gt_cv_nl_locale_name,
198 [AC_TRY_LINK([#include <langinfo.h> 222 [AC_TRY_LINK([#include <langinfo.h>
199#include <locale.h>], 223#include <locale.h>],
200 [char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));], 224 [char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
225 return !cs;
226 ],
201 gt_cv_nl_locale_name=yes, 227 gt_cv_nl_locale_name=yes,
202 gt_cv_nl_locale_name=no) 228 gt_cv_nl_locale_name=no)
203 ]) 229 ])