diff options
author | Kristian Schuster <116557017+KriSchu@users.noreply.github.com> | 2023-02-19 22:49:18 (GMT) |
---|---|---|
committer | Kristian Schuster <116557017+KriSchu@users.noreply.github.com> | 2023-02-19 22:49:18 (GMT) |
commit | a0d42777217296c0a7bdb1e1be8d8f6de1b24dd7 (patch) | |
tree | 8effe94c57b2f9796ba36090b07551baa8f1e1cb /gl/m4/wchar_h.m4 | |
parent | ca3d59cd6918c9e2739e783b721d4c1122640fd3 (diff) | |
parent | c07206f2ccc2356aa74bc6813a94c2190017d44e (diff) | |
download | monitoring-plugins-a0d42777217296c0a7bdb1e1be8d8f6de1b24dd7.tar.gz |
Merge remote-tracking branch 'origin/master' into feature_check_disk_add_ignore_missing_option
Diffstat (limited to 'gl/m4/wchar_h.m4')
-rw-r--r-- | gl/m4/wchar_h.m4 | 222 |
1 files changed, 127 insertions, 95 deletions
diff --git a/gl/m4/wchar_h.m4 b/gl/m4/wchar_h.m4 index bedb15a..8ec6619 100644 --- a/gl/m4/wchar_h.m4 +++ b/gl/m4/wchar_h.m4 | |||
@@ -1,15 +1,15 @@ | |||
1 | dnl A placeholder for ISO C99 <wchar.h>, for platforms that have issues. | 1 | dnl A placeholder for ISO C99 <wchar.h>, for platforms that have issues. |
2 | 2 | ||
3 | dnl Copyright (C) 2007-2013 Free Software Foundation, Inc. | 3 | dnl Copyright (C) 2007-2023 Free Software Foundation, Inc. |
4 | dnl This file is free software; the Free Software Foundation | 4 | dnl This file is free software; the Free Software Foundation |
5 | dnl gives unlimited permission to copy and/or distribute it, | 5 | dnl gives unlimited permission to copy and/or distribute it, |
6 | dnl with or without modifications, as long as this notice is preserved. | 6 | dnl with or without modifications, as long as this notice is preserved. |
7 | 7 | ||
8 | dnl Written by Eric Blake. | 8 | dnl Written by Eric Blake. |
9 | 9 | ||
10 | # wchar_h.m4 serial 39 | 10 | # wchar_h.m4 serial 55 |
11 | 11 | ||
12 | AC_DEFUN([gl_WCHAR_H], | 12 | AC_DEFUN_ONCE([gl_WCHAR_H], |
13 | [ | 13 | [ |
14 | AC_REQUIRE([gl_WCHAR_H_DEFAULTS]) | 14 | AC_REQUIRE([gl_WCHAR_H_DEFAULTS]) |
15 | AC_REQUIRE([gl_WCHAR_H_INLINE_OK]) | 15 | AC_REQUIRE([gl_WCHAR_H_INLINE_OK]) |
@@ -35,76 +35,82 @@ AC_DEFUN([gl_WCHAR_H], | |||
35 | fi | 35 | fi |
36 | AC_SUBST([HAVE_WINT_T]) | 36 | AC_SUBST([HAVE_WINT_T]) |
37 | 37 | ||
38 | AC_REQUIRE([gl_TYPE_WINT_T_PREREQ]) | ||
39 | |||
38 | dnl Check for declarations of anything we want to poison if the | 40 | dnl Check for declarations of anything we want to poison if the |
39 | dnl corresponding gnulib module is not in use. | 41 | dnl corresponding gnulib module is not in use. |
40 | gl_WARN_ON_USE_PREPARE([[ | 42 | gl_WARN_ON_USE_PREPARE([[ |
41 | /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before | 43 | #include <wchar.h> |
42 | <wchar.h>. | ||
43 | BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | ||
44 | included before <wchar.h>. */ | ||
45 | #if !(defined __GLIBC__ && !defined __UCLIBC__) | ||
46 | # include <stddef.h> | ||
47 | # include <stdio.h> | ||
48 | # include <time.h> | ||
49 | #endif | ||
50 | #include <wchar.h> | ||
51 | ]], | 44 | ]], |
52 | [btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb | 45 | [btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb |
53 | wcsrtombs wcsnrtombs wcwidth wmemchr wmemcmp wmemcpy wmemmove wmemset | 46 | wcsrtombs wcsnrtombs wcwidth |
47 | wmemchr wmemcmp wmemcpy wmemmove wmempcpy wmemset | ||
54 | wcslen wcsnlen wcscpy wcpcpy wcsncpy wcpncpy wcscat wcsncat wcscmp | 48 | wcslen wcsnlen wcscpy wcpcpy wcsncpy wcpncpy wcscat wcsncat wcscmp |
55 | wcsncmp wcscasecmp wcsncasecmp wcscoll wcsxfrm wcsdup wcschr wcsrchr | 49 | wcsncmp wcscasecmp wcsncasecmp wcscoll wcsxfrm wcsdup wcschr wcsrchr |
56 | wcscspn wcsspn wcspbrk wcsstr wcstok wcswidth | 50 | wcscspn wcsspn wcspbrk wcsstr wcstok wcswidth wcsftime |
57 | ]) | 51 | ]) |
52 | |||
53 | AC_REQUIRE([AC_C_RESTRICT]) | ||
54 | |||
55 | AC_CHECK_DECLS([wcsdup], [], [], [[ | ||
56 | #include <wchar.h> | ||
57 | ]]) | ||
58 | if test $ac_cv_have_decl_wcsdup = no; then | ||
59 | HAVE_DECL_WCSDUP=0 | ||
60 | fi | ||
58 | ]) | 61 | ]) |
59 | 62 | ||
60 | dnl Check whether <wchar.h> is usable at all. | 63 | dnl Check whether <wchar.h> is usable at all. |
61 | AC_DEFUN([gl_WCHAR_H_INLINE_OK], | 64 | AC_DEFUN([gl_WCHAR_H_INLINE_OK], |
62 | [ | 65 | [ |
63 | dnl Test whether <wchar.h> suffers due to the transition from '__inline' to | 66 | dnl Test whether <wchar.h> suffers due to the transition from '__inline' to |
64 | dnl 'gnu_inline'. See <http://sourceware.org/bugzilla/show_bug.cgi?id=4022> | 67 | dnl 'gnu_inline'. See <https://sourceware.org/bugzilla/show_bug.cgi?id=4022> |
65 | dnl and <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42440>. In summary, | 68 | dnl and <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42440>. In summary, |
66 | dnl glibc version 2.5 or older, together with gcc version 4.3 or newer and | 69 | dnl glibc version 2.5 or older, together with gcc version 4.3 or newer and |
67 | dnl the option -std=c99 or -std=gnu99, leads to a broken <wchar.h>. | 70 | dnl the option -std=c99 or -std=gnu99, leads to a broken <wchar.h>. |
71 | AC_REQUIRE([AC_CANONICAL_HOST]) | ||
68 | AC_CACHE_CHECK([whether <wchar.h> uses 'inline' correctly], | 72 | AC_CACHE_CHECK([whether <wchar.h> uses 'inline' correctly], |
69 | [gl_cv_header_wchar_h_correct_inline], | 73 | [gl_cv_header_wchar_h_correct_inline], |
70 | [gl_cv_header_wchar_h_correct_inline=yes | 74 | [gl_cv_header_wchar_h_correct_inline=yes |
71 | AC_LANG_CONFTEST([ | 75 | case "$host_os" in |
72 | AC_LANG_SOURCE([[#define wcstod renamed_wcstod | 76 | *-gnu* | gnu*) |
73 | /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before | 77 | AC_LANG_CONFTEST([ |
74 | <wchar.h>. | 78 | AC_LANG_SOURCE([[ |
75 | BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | 79 | #define wcstod renamed_wcstod |
76 | included before <wchar.h>. */ | 80 | #include <wchar.h> |
77 | #include <stddef.h> | 81 | extern int zero (void); |
78 | #include <stdio.h> | 82 | int main () { return zero(); } |
79 | #include <time.h> | 83 | ]])]) |
80 | #include <wchar.h> | 84 | dnl Do not rename the object file from conftest.$ac_objext to |
81 | extern int zero (void); | 85 | dnl conftest1.$ac_objext, as this will cause the link to fail on |
82 | int main () { return zero(); } | 86 | dnl z/OS when using the XPLINK object format (due to duplicate |
83 | ]])]) | 87 | dnl CSECT names). Instead, temporarily redefine $ac_compile so |
84 | if AC_TRY_EVAL([ac_compile]); then | 88 | dnl that the object file has the latter name from the start. |
85 | mv conftest.$ac_objext conftest1.$ac_objext | 89 | save_ac_compile="$ac_compile" |
86 | AC_LANG_CONFTEST([ | 90 | ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest1/` |
87 | AC_LANG_SOURCE([[#define wcstod renamed_wcstod | 91 | if echo '#include "conftest.c"' >conftest1.c \ |
88 | /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before | 92 | && AC_TRY_EVAL([ac_compile]); then |
89 | <wchar.h>. | 93 | AC_LANG_CONFTEST([ |
90 | BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | 94 | AC_LANG_SOURCE([[ |
91 | included before <wchar.h>. */ | 95 | #define wcstod renamed_wcstod |
92 | #include <stddef.h> | 96 | #include <wchar.h> |
93 | #include <stdio.h> | 97 | int zero (void) { return 0; } |
94 | #include <time.h> | 98 | ]])]) |
95 | #include <wchar.h> | 99 | dnl See note above about renaming object files. |
96 | int zero (void) { return 0; } | 100 | ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest2/` |
97 | ]])]) | 101 | if echo '#include "conftest.c"' >conftest2.c \ |
98 | if AC_TRY_EVAL([ac_compile]); then | 102 | && AC_TRY_EVAL([ac_compile]); then |
99 | mv conftest.$ac_objext conftest2.$ac_objext | 103 | if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&AS_MESSAGE_LOG_FD 2>&1; then |
100 | if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&AS_MESSAGE_LOG_FD 2>&1; then | 104 | : |
101 | : | 105 | else |
102 | else | 106 | gl_cv_header_wchar_h_correct_inline=no |
103 | gl_cv_header_wchar_h_correct_inline=no | 107 | fi |
108 | fi | ||
104 | fi | 109 | fi |
105 | fi | 110 | ac_compile="$save_ac_compile" |
106 | fi | 111 | rm -f conftest[12].c conftest[12].$ac_objext conftest$ac_exeext |
107 | rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext | 112 | ;; |
113 | esac | ||
108 | ]) | 114 | ]) |
109 | if test $gl_cv_header_wchar_h_correct_inline = no; then | 115 | if test $gl_cv_header_wchar_h_correct_inline = no; then |
110 | AC_MSG_ERROR([<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS). | 116 | AC_MSG_ERROR([<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS). |
@@ -112,63 +118,84 @@ This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in | |||
112 | C99 mode. You have four options: | 118 | C99 mode. You have four options: |
113 | - Add the flag -fgnu89-inline to CC and reconfigure, or | 119 | - Add the flag -fgnu89-inline to CC and reconfigure, or |
114 | - Fix your include files, using parts of | 120 | - Fix your include files, using parts of |
115 | <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or | 121 | <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or |
116 | - Use a gcc version older than 4.3, or | 122 | - Use a gcc version older than 4.3, or |
117 | - Don't use the flags -std=c99 or -std=gnu99. | 123 | - Don't use the flags -std=c99 or -std=gnu99. |
118 | Configuration aborted.]) | 124 | Configuration aborted.]) |
119 | fi | 125 | fi |
120 | ]) | 126 | ]) |
121 | 127 | ||
128 | # gl_WCHAR_MODULE_INDICATOR([modulename]) | ||
129 | # sets the shell variable that indicates the presence of the given module | ||
130 | # to a C preprocessor expression that will evaluate to 1. | ||
131 | # This macro invocation must not occur in macros that are AC_REQUIREd. | ||
122 | AC_DEFUN([gl_WCHAR_MODULE_INDICATOR], | 132 | AC_DEFUN([gl_WCHAR_MODULE_INDICATOR], |
123 | [ | 133 | [ |
124 | dnl Use AC_REQUIRE here, so that the default settings are expanded once only. | 134 | dnl Ensure to expand the default settings once only. |
125 | AC_REQUIRE([gl_WCHAR_H_DEFAULTS]) | 135 | gl_WCHAR_H_REQUIRE_DEFAULTS |
126 | gl_MODULE_INDICATOR_SET_VARIABLE([$1]) | 136 | gl_MODULE_INDICATOR_SET_VARIABLE([$1]) |
127 | dnl Define it also as a C macro, for the benefit of the unit tests. | 137 | dnl Define it also as a C macro, for the benefit of the unit tests. |
128 | gl_MODULE_INDICATOR_FOR_TESTS([$1]) | 138 | gl_MODULE_INDICATOR_FOR_TESTS([$1]) |
129 | ]) | 139 | ]) |
130 | 140 | ||
141 | # Initializes the default values for AC_SUBSTed shell variables. | ||
142 | # This macro must not be AC_REQUIREd. It must only be invoked, and only | ||
143 | # outside of macros or in macros that are not AC_REQUIREd. | ||
144 | AC_DEFUN([gl_WCHAR_H_REQUIRE_DEFAULTS], | ||
145 | [ | ||
146 | m4_defun(GL_MODULE_INDICATOR_PREFIX[_WCHAR_H_MODULE_INDICATOR_DEFAULTS], [ | ||
147 | gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_BTOWC]) | ||
148 | gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCTOB]) | ||
149 | gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MBSINIT]) | ||
150 | gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MBRTOWC]) | ||
151 | gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MBRLEN]) | ||
152 | gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MBSRTOWCS]) | ||
153 | gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MBSNRTOWCS]) | ||
154 | gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCRTOMB]) | ||
155 | gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSRTOMBS]) | ||
156 | gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSNRTOMBS]) | ||
157 | gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCWIDTH]) | ||
158 | gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WMEMCHR]) | ||
159 | gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WMEMCMP]) | ||
160 | gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WMEMCPY]) | ||
161 | gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WMEMMOVE]) | ||
162 | gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WMEMPCPY]) | ||
163 | gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WMEMSET]) | ||
164 | gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSLEN]) | ||
165 | gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSNLEN]) | ||
166 | gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSCPY]) | ||
167 | gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCPCPY]) | ||
168 | gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSNCPY]) | ||
169 | gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCPNCPY]) | ||
170 | gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSCAT]) | ||
171 | gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSNCAT]) | ||
172 | gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSCMP]) | ||
173 | gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSNCMP]) | ||
174 | gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSCASECMP]) | ||
175 | gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSNCASECMP]) | ||
176 | gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSCOLL]) | ||
177 | gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSXFRM]) | ||
178 | gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSDUP]) | ||
179 | gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSCHR]) | ||
180 | gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSRCHR]) | ||
181 | gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSCSPN]) | ||
182 | gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSSPN]) | ||
183 | gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSPBRK]) | ||
184 | gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSSTR]) | ||
185 | gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSTOK]) | ||
186 | gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSWIDTH]) | ||
187 | gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSFTIME]) | ||
188 | dnl Support Microsoft deprecated alias function names by default. | ||
189 | gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_WCSDUP], [1]) | ||
190 | ]) | ||
191 | m4_require(GL_MODULE_INDICATOR_PREFIX[_WCHAR_H_MODULE_INDICATOR_DEFAULTS]) | ||
192 | dnl Make sure the shell variable for GNULIB_FREE_POSIX is initialized. | ||
193 | gl_STDLIB_H_REQUIRE_DEFAULTS | ||
194 | AC_REQUIRE([gl_WCHAR_H_DEFAULTS]) | ||
195 | ]) | ||
196 | |||
131 | AC_DEFUN([gl_WCHAR_H_DEFAULTS], | 197 | AC_DEFUN([gl_WCHAR_H_DEFAULTS], |
132 | [ | 198 | [ |
133 | GNULIB_BTOWC=0; AC_SUBST([GNULIB_BTOWC]) | ||
134 | GNULIB_WCTOB=0; AC_SUBST([GNULIB_WCTOB]) | ||
135 | GNULIB_MBSINIT=0; AC_SUBST([GNULIB_MBSINIT]) | ||
136 | GNULIB_MBRTOWC=0; AC_SUBST([GNULIB_MBRTOWC]) | ||
137 | GNULIB_MBRLEN=0; AC_SUBST([GNULIB_MBRLEN]) | ||
138 | GNULIB_MBSRTOWCS=0; AC_SUBST([GNULIB_MBSRTOWCS]) | ||
139 | GNULIB_MBSNRTOWCS=0; AC_SUBST([GNULIB_MBSNRTOWCS]) | ||
140 | GNULIB_WCRTOMB=0; AC_SUBST([GNULIB_WCRTOMB]) | ||
141 | GNULIB_WCSRTOMBS=0; AC_SUBST([GNULIB_WCSRTOMBS]) | ||
142 | GNULIB_WCSNRTOMBS=0; AC_SUBST([GNULIB_WCSNRTOMBS]) | ||
143 | GNULIB_WCWIDTH=0; AC_SUBST([GNULIB_WCWIDTH]) | ||
144 | GNULIB_WMEMCHR=0; AC_SUBST([GNULIB_WMEMCHR]) | ||
145 | GNULIB_WMEMCMP=0; AC_SUBST([GNULIB_WMEMCMP]) | ||
146 | GNULIB_WMEMCPY=0; AC_SUBST([GNULIB_WMEMCPY]) | ||
147 | GNULIB_WMEMMOVE=0; AC_SUBST([GNULIB_WMEMMOVE]) | ||
148 | GNULIB_WMEMSET=0; AC_SUBST([GNULIB_WMEMSET]) | ||
149 | GNULIB_WCSLEN=0; AC_SUBST([GNULIB_WCSLEN]) | ||
150 | GNULIB_WCSNLEN=0; AC_SUBST([GNULIB_WCSNLEN]) | ||
151 | GNULIB_WCSCPY=0; AC_SUBST([GNULIB_WCSCPY]) | ||
152 | GNULIB_WCPCPY=0; AC_SUBST([GNULIB_WCPCPY]) | ||
153 | GNULIB_WCSNCPY=0; AC_SUBST([GNULIB_WCSNCPY]) | ||
154 | GNULIB_WCPNCPY=0; AC_SUBST([GNULIB_WCPNCPY]) | ||
155 | GNULIB_WCSCAT=0; AC_SUBST([GNULIB_WCSCAT]) | ||
156 | GNULIB_WCSNCAT=0; AC_SUBST([GNULIB_WCSNCAT]) | ||
157 | GNULIB_WCSCMP=0; AC_SUBST([GNULIB_WCSCMP]) | ||
158 | GNULIB_WCSNCMP=0; AC_SUBST([GNULIB_WCSNCMP]) | ||
159 | GNULIB_WCSCASECMP=0; AC_SUBST([GNULIB_WCSCASECMP]) | ||
160 | GNULIB_WCSNCASECMP=0; AC_SUBST([GNULIB_WCSNCASECMP]) | ||
161 | GNULIB_WCSCOLL=0; AC_SUBST([GNULIB_WCSCOLL]) | ||
162 | GNULIB_WCSXFRM=0; AC_SUBST([GNULIB_WCSXFRM]) | ||
163 | GNULIB_WCSDUP=0; AC_SUBST([GNULIB_WCSDUP]) | ||
164 | GNULIB_WCSCHR=0; AC_SUBST([GNULIB_WCSCHR]) | ||
165 | GNULIB_WCSRCHR=0; AC_SUBST([GNULIB_WCSRCHR]) | ||
166 | GNULIB_WCSCSPN=0; AC_SUBST([GNULIB_WCSCSPN]) | ||
167 | GNULIB_WCSSPN=0; AC_SUBST([GNULIB_WCSSPN]) | ||
168 | GNULIB_WCSPBRK=0; AC_SUBST([GNULIB_WCSPBRK]) | ||
169 | GNULIB_WCSSTR=0; AC_SUBST([GNULIB_WCSSTR]) | ||
170 | GNULIB_WCSTOK=0; AC_SUBST([GNULIB_WCSTOK]) | ||
171 | GNULIB_WCSWIDTH=0; AC_SUBST([GNULIB_WCSWIDTH]) | ||
172 | dnl Assume proper GNU behavior unless another module says otherwise. | 199 | dnl Assume proper GNU behavior unless another module says otherwise. |
173 | HAVE_BTOWC=1; AC_SUBST([HAVE_BTOWC]) | 200 | HAVE_BTOWC=1; AC_SUBST([HAVE_BTOWC]) |
174 | HAVE_MBSINIT=1; AC_SUBST([HAVE_MBSINIT]) | 201 | HAVE_MBSINIT=1; AC_SUBST([HAVE_MBSINIT]) |
@@ -183,6 +210,7 @@ AC_DEFUN([gl_WCHAR_H_DEFAULTS], | |||
183 | HAVE_WMEMCMP=1; AC_SUBST([HAVE_WMEMCMP]) | 210 | HAVE_WMEMCMP=1; AC_SUBST([HAVE_WMEMCMP]) |
184 | HAVE_WMEMCPY=1; AC_SUBST([HAVE_WMEMCPY]) | 211 | HAVE_WMEMCPY=1; AC_SUBST([HAVE_WMEMCPY]) |
185 | HAVE_WMEMMOVE=1; AC_SUBST([HAVE_WMEMMOVE]) | 212 | HAVE_WMEMMOVE=1; AC_SUBST([HAVE_WMEMMOVE]) |
213 | HAVE_WMEMPCPY=1; AC_SUBST([HAVE_WMEMPCPY]) | ||
186 | HAVE_WMEMSET=1; AC_SUBST([HAVE_WMEMSET]) | 214 | HAVE_WMEMSET=1; AC_SUBST([HAVE_WMEMSET]) |
187 | HAVE_WCSLEN=1; AC_SUBST([HAVE_WCSLEN]) | 215 | HAVE_WCSLEN=1; AC_SUBST([HAVE_WCSLEN]) |
188 | HAVE_WCSNLEN=1; AC_SUBST([HAVE_WCSNLEN]) | 216 | HAVE_WCSNLEN=1; AC_SUBST([HAVE_WCSNLEN]) |
@@ -207,7 +235,9 @@ AC_DEFUN([gl_WCHAR_H_DEFAULTS], | |||
207 | HAVE_WCSSTR=1; AC_SUBST([HAVE_WCSSTR]) | 235 | HAVE_WCSSTR=1; AC_SUBST([HAVE_WCSSTR]) |
208 | HAVE_WCSTOK=1; AC_SUBST([HAVE_WCSTOK]) | 236 | HAVE_WCSTOK=1; AC_SUBST([HAVE_WCSTOK]) |
209 | HAVE_WCSWIDTH=1; AC_SUBST([HAVE_WCSWIDTH]) | 237 | HAVE_WCSWIDTH=1; AC_SUBST([HAVE_WCSWIDTH]) |
238 | HAVE_WCSFTIME=1; AC_SUBST([HAVE_WCSFTIME]) | ||
210 | HAVE_DECL_WCTOB=1; AC_SUBST([HAVE_DECL_WCTOB]) | 239 | HAVE_DECL_WCTOB=1; AC_SUBST([HAVE_DECL_WCTOB]) |
240 | HAVE_DECL_WCSDUP=1; AC_SUBST([HAVE_DECL_WCSDUP]) | ||
211 | HAVE_DECL_WCWIDTH=1; AC_SUBST([HAVE_DECL_WCWIDTH]) | 241 | HAVE_DECL_WCWIDTH=1; AC_SUBST([HAVE_DECL_WCWIDTH]) |
212 | REPLACE_MBSTATE_T=0; AC_SUBST([REPLACE_MBSTATE_T]) | 242 | REPLACE_MBSTATE_T=0; AC_SUBST([REPLACE_MBSTATE_T]) |
213 | REPLACE_BTOWC=0; AC_SUBST([REPLACE_BTOWC]) | 243 | REPLACE_BTOWC=0; AC_SUBST([REPLACE_BTOWC]) |
@@ -222,4 +252,6 @@ AC_DEFUN([gl_WCHAR_H_DEFAULTS], | |||
222 | REPLACE_WCSNRTOMBS=0; AC_SUBST([REPLACE_WCSNRTOMBS]) | 252 | REPLACE_WCSNRTOMBS=0; AC_SUBST([REPLACE_WCSNRTOMBS]) |
223 | REPLACE_WCWIDTH=0; AC_SUBST([REPLACE_WCWIDTH]) | 253 | REPLACE_WCWIDTH=0; AC_SUBST([REPLACE_WCWIDTH]) |
224 | REPLACE_WCSWIDTH=0; AC_SUBST([REPLACE_WCSWIDTH]) | 254 | REPLACE_WCSWIDTH=0; AC_SUBST([REPLACE_WCSWIDTH]) |
255 | REPLACE_WCSFTIME=0; AC_SUBST([REPLACE_WCSFTIME]) | ||
256 | REPLACE_WCSTOK=0; AC_SUBST([REPLACE_WCSTOK]) | ||
225 | ]) | 257 | ]) |