annotate m4/vasnprintf.m4 @ 276:23034db7dd8a 2.5

fixed expression 'slots' to not store null on a pass 1 store
author lost
date Mon, 31 Aug 2009 08:39:36 +0000
parents d5392bb5da3c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
272
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1 # vasnprintf.m4 serial 25
d5392bb5da3c Added generated files
lost
parents:
diff changeset
2 dnl Copyright (C) 2002-2004, 2006-2008 Free Software Foundation, Inc.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
3 dnl This file is free software; the Free Software Foundation
d5392bb5da3c Added generated files
lost
parents:
diff changeset
4 dnl gives unlimited permission to copy and/or distribute it,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
5 dnl with or without modifications, as long as this notice is preserved.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
6
d5392bb5da3c Added generated files
lost
parents:
diff changeset
7 AC_DEFUN([gl_FUNC_VASNPRINTF],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
8 [
d5392bb5da3c Added generated files
lost
parents:
diff changeset
9 AC_CHECK_FUNCS_ONCE([vasnprintf])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
10 if test $ac_cv_func_vasnprintf = no; then
d5392bb5da3c Added generated files
lost
parents:
diff changeset
11 gl_REPLACE_VASNPRINTF
d5392bb5da3c Added generated files
lost
parents:
diff changeset
12 fi
d5392bb5da3c Added generated files
lost
parents:
diff changeset
13 ])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
14
d5392bb5da3c Added generated files
lost
parents:
diff changeset
15 AC_DEFUN([gl_REPLACE_VASNPRINTF],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
16 [
d5392bb5da3c Added generated files
lost
parents:
diff changeset
17 AC_CHECK_FUNCS_ONCE([vasnprintf])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
18 AC_LIBOBJ([vasnprintf])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
19 AC_LIBOBJ([printf-args])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
20 AC_LIBOBJ([printf-parse])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
21 AC_LIBOBJ([asnprintf])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
22 if test $ac_cv_func_vasnprintf = yes; then
d5392bb5da3c Added generated files
lost
parents:
diff changeset
23 AC_DEFINE([REPLACE_VASNPRINTF], 1,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
24 [Define if vasnprintf exists but is overridden by gnulib.])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
25 fi
d5392bb5da3c Added generated files
lost
parents:
diff changeset
26 gl_PREREQ_PRINTF_ARGS
d5392bb5da3c Added generated files
lost
parents:
diff changeset
27 gl_PREREQ_PRINTF_PARSE
d5392bb5da3c Added generated files
lost
parents:
diff changeset
28 gl_PREREQ_VASNPRINTF
d5392bb5da3c Added generated files
lost
parents:
diff changeset
29 gl_PREREQ_ASNPRINTF
d5392bb5da3c Added generated files
lost
parents:
diff changeset
30 ])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
31
d5392bb5da3c Added generated files
lost
parents:
diff changeset
32 # Prequisites of lib/printf-args.h, lib/printf-args.c.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
33 AC_DEFUN([gl_PREREQ_PRINTF_ARGS],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
34 [
d5392bb5da3c Added generated files
lost
parents:
diff changeset
35 AC_REQUIRE([AC_TYPE_LONG_LONG_INT])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
36 AC_REQUIRE([gt_TYPE_WCHAR_T])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
37 AC_REQUIRE([gt_TYPE_WINT_T])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
38 ])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
39
d5392bb5da3c Added generated files
lost
parents:
diff changeset
40 # Prequisites of lib/printf-parse.h, lib/printf-parse.c.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
41 AC_DEFUN([gl_PREREQ_PRINTF_PARSE],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
42 [
d5392bb5da3c Added generated files
lost
parents:
diff changeset
43 AC_REQUIRE([AC_TYPE_LONG_LONG_INT])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
44 AC_REQUIRE([gt_TYPE_WCHAR_T])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
45 AC_REQUIRE([gt_TYPE_WINT_T])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
46 AC_REQUIRE([AC_TYPE_SIZE_T])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
47 AC_CHECK_TYPE([ptrdiff_t], ,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
48 [AC_DEFINE([ptrdiff_t], [long],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
49 [Define as the type of the result of subtracting two pointers, if the system doesn't define it.])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
50 ])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
51 AC_REQUIRE([gt_AC_TYPE_INTMAX_T])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
52 ])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
53
d5392bb5da3c Added generated files
lost
parents:
diff changeset
54 # Prerequisites of lib/vasnprintf.c.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
55 AC_DEFUN([gl_PREREQ_VASNPRINTF],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
56 [
d5392bb5da3c Added generated files
lost
parents:
diff changeset
57 AC_REQUIRE([AC_FUNC_ALLOCA])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
58 AC_REQUIRE([AC_TYPE_LONG_LONG_INT])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
59 AC_REQUIRE([gt_TYPE_WCHAR_T])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
60 AC_REQUIRE([gt_TYPE_WINT_T])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
61 AC_CHECK_FUNCS(snprintf wcslen)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
62 dnl Use the _snprintf function only if it is declared (because on NetBSD it
d5392bb5da3c Added generated files
lost
parents:
diff changeset
63 dnl is defined as a weak alias of snprintf; we prefer to use the latter).
d5392bb5da3c Added generated files
lost
parents:
diff changeset
64 AC_CHECK_DECLS([_snprintf], , , [#include <stdio.h>])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
65 ])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
66
d5392bb5da3c Added generated files
lost
parents:
diff changeset
67 # Extra prerequisites of lib/vasnprintf.c for supporting 'long double'
d5392bb5da3c Added generated files
lost
parents:
diff changeset
68 # arguments.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
69 AC_DEFUN([gl_PREREQ_VASNPRINTF_LONG_DOUBLE],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
70 [
d5392bb5da3c Added generated files
lost
parents:
diff changeset
71 AC_REQUIRE([gl_PRINTF_LONG_DOUBLE])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
72 case "$gl_cv_func_printf_long_double" in
d5392bb5da3c Added generated files
lost
parents:
diff changeset
73 *yes)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
74 ;;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
75 *)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
76 AC_DEFINE([NEED_PRINTF_LONG_DOUBLE], 1,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
77 [Define if the vasnprintf implementation needs special code for
d5392bb5da3c Added generated files
lost
parents:
diff changeset
78 'long double' arguments.])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
79 ;;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
80 esac
d5392bb5da3c Added generated files
lost
parents:
diff changeset
81 ])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
82
d5392bb5da3c Added generated files
lost
parents:
diff changeset
83 # Extra prerequisites of lib/vasnprintf.c for supporting infinite 'double'
d5392bb5da3c Added generated files
lost
parents:
diff changeset
84 # arguments.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
85 AC_DEFUN([gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
86 [
d5392bb5da3c Added generated files
lost
parents:
diff changeset
87 AC_REQUIRE([gl_PRINTF_INFINITE])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
88 case "$gl_cv_func_printf_infinite" in
d5392bb5da3c Added generated files
lost
parents:
diff changeset
89 *yes)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
90 ;;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
91 *)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
92 AC_DEFINE([NEED_PRINTF_INFINITE_DOUBLE], 1,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
93 [Define if the vasnprintf implementation needs special code for
d5392bb5da3c Added generated files
lost
parents:
diff changeset
94 infinite 'double' arguments.])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
95 ;;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
96 esac
d5392bb5da3c Added generated files
lost
parents:
diff changeset
97 ])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
98
d5392bb5da3c Added generated files
lost
parents:
diff changeset
99 # Extra prerequisites of lib/vasnprintf.c for supporting infinite 'long double'
d5392bb5da3c Added generated files
lost
parents:
diff changeset
100 # arguments.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
101 AC_DEFUN([gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
102 [
d5392bb5da3c Added generated files
lost
parents:
diff changeset
103 AC_REQUIRE([gl_PRINTF_INFINITE_LONG_DOUBLE])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
104 dnl There is no need to set NEED_PRINTF_INFINITE_LONG_DOUBLE if
d5392bb5da3c Added generated files
lost
parents:
diff changeset
105 dnl NEED_PRINTF_LONG_DOUBLE is already set.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
106 AC_REQUIRE([gl_PREREQ_VASNPRINTF_LONG_DOUBLE])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
107 case "$gl_cv_func_printf_long_double" in
d5392bb5da3c Added generated files
lost
parents:
diff changeset
108 *yes)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
109 case "$gl_cv_func_printf_infinite_long_double" in
d5392bb5da3c Added generated files
lost
parents:
diff changeset
110 *yes)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
111 ;;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
112 *)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
113 AC_DEFINE([NEED_PRINTF_INFINITE_LONG_DOUBLE], 1,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
114 [Define if the vasnprintf implementation needs special code for
d5392bb5da3c Added generated files
lost
parents:
diff changeset
115 infinite 'long double' arguments.])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
116 ;;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
117 esac
d5392bb5da3c Added generated files
lost
parents:
diff changeset
118 ;;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
119 esac
d5392bb5da3c Added generated files
lost
parents:
diff changeset
120 ])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
121
d5392bb5da3c Added generated files
lost
parents:
diff changeset
122 # Extra prerequisites of lib/vasnprintf.c for supporting the 'a' directive.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
123 AC_DEFUN([gl_PREREQ_VASNPRINTF_DIRECTIVE_A],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
124 [
d5392bb5da3c Added generated files
lost
parents:
diff changeset
125 AC_REQUIRE([gl_PRINTF_DIRECTIVE_A])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
126 case "$gl_cv_func_printf_directive_a" in
d5392bb5da3c Added generated files
lost
parents:
diff changeset
127 *yes)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
128 ;;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
129 *)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
130 AC_DEFINE([NEED_PRINTF_DIRECTIVE_A], 1,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
131 [Define if the vasnprintf implementation needs special code for
d5392bb5da3c Added generated files
lost
parents:
diff changeset
132 the 'a' and 'A' directives.])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
133 AC_CHECK_FUNCS([nl_langinfo])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
134 ;;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
135 esac
d5392bb5da3c Added generated files
lost
parents:
diff changeset
136 ])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
137
d5392bb5da3c Added generated files
lost
parents:
diff changeset
138 # Extra prerequisites of lib/vasnprintf.c for supporting the 'F' directive.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
139 AC_DEFUN([gl_PREREQ_VASNPRINTF_DIRECTIVE_F],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
140 [
d5392bb5da3c Added generated files
lost
parents:
diff changeset
141 AC_REQUIRE([gl_PRINTF_DIRECTIVE_F])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
142 case "$gl_cv_func_printf_directive_f" in
d5392bb5da3c Added generated files
lost
parents:
diff changeset
143 *yes)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
144 ;;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
145 *)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
146 AC_DEFINE([NEED_PRINTF_DIRECTIVE_F], 1,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
147 [Define if the vasnprintf implementation needs special code for
d5392bb5da3c Added generated files
lost
parents:
diff changeset
148 the 'F' directive.])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
149 ;;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
150 esac
d5392bb5da3c Added generated files
lost
parents:
diff changeset
151 ])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
152
d5392bb5da3c Added generated files
lost
parents:
diff changeset
153 # Extra prerequisites of lib/vasnprintf.c for supporting the ' flag.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
154 AC_DEFUN([gl_PREREQ_VASNPRINTF_FLAG_GROUPING],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
155 [
d5392bb5da3c Added generated files
lost
parents:
diff changeset
156 AC_REQUIRE([gl_PRINTF_FLAG_GROUPING])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
157 case "$gl_cv_func_printf_flag_grouping" in
d5392bb5da3c Added generated files
lost
parents:
diff changeset
158 *yes)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
159 ;;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
160 *)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
161 AC_DEFINE([NEED_PRINTF_FLAG_GROUPING], 1,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
162 [Define if the vasnprintf implementation needs special code for the
d5392bb5da3c Added generated files
lost
parents:
diff changeset
163 ' flag.])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
164 ;;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
165 esac
d5392bb5da3c Added generated files
lost
parents:
diff changeset
166 ])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
167
d5392bb5da3c Added generated files
lost
parents:
diff changeset
168 # Extra prerequisites of lib/vasnprintf.c for supporting the '-' flag.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
169 AC_DEFUN([gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
170 [
d5392bb5da3c Added generated files
lost
parents:
diff changeset
171 AC_REQUIRE([gl_PRINTF_FLAG_LEFTADJUST])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
172 case "$gl_cv_func_printf_flag_leftadjust" in
d5392bb5da3c Added generated files
lost
parents:
diff changeset
173 *yes)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
174 ;;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
175 *)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
176 AC_DEFINE([NEED_PRINTF_FLAG_LEFTADJUST], 1,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
177 [Define if the vasnprintf implementation needs special code for the
d5392bb5da3c Added generated files
lost
parents:
diff changeset
178 '-' flag.])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
179 ;;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
180 esac
d5392bb5da3c Added generated files
lost
parents:
diff changeset
181 ])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
182
d5392bb5da3c Added generated files
lost
parents:
diff changeset
183 # Extra prerequisites of lib/vasnprintf.c for supporting the 0 flag.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
184 AC_DEFUN([gl_PREREQ_VASNPRINTF_FLAG_ZERO],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
185 [
d5392bb5da3c Added generated files
lost
parents:
diff changeset
186 AC_REQUIRE([gl_PRINTF_FLAG_ZERO])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
187 case "$gl_cv_func_printf_flag_zero" in
d5392bb5da3c Added generated files
lost
parents:
diff changeset
188 *yes)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
189 ;;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
190 *)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
191 AC_DEFINE([NEED_PRINTF_FLAG_ZERO], 1,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
192 [Define if the vasnprintf implementation needs special code for the
d5392bb5da3c Added generated files
lost
parents:
diff changeset
193 0 flag.])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
194 ;;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
195 esac
d5392bb5da3c Added generated files
lost
parents:
diff changeset
196 ])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
197
d5392bb5da3c Added generated files
lost
parents:
diff changeset
198 # Extra prerequisites of lib/vasnprintf.c for supporting large precisions.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
199 AC_DEFUN([gl_PREREQ_VASNPRINTF_PRECISION],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
200 [
d5392bb5da3c Added generated files
lost
parents:
diff changeset
201 AC_REQUIRE([gl_PRINTF_PRECISION])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
202 case "$gl_cv_func_printf_precision" in
d5392bb5da3c Added generated files
lost
parents:
diff changeset
203 *yes)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
204 ;;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
205 *)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
206 AC_DEFINE([NEED_PRINTF_UNBOUNDED_PRECISION], 1,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
207 [Define if the vasnprintf implementation needs special code for
d5392bb5da3c Added generated files
lost
parents:
diff changeset
208 supporting large precisions without arbitrary bounds.])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
209 AC_DEFINE([NEED_PRINTF_DOUBLE], 1,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
210 [Define if the vasnprintf implementation needs special code for
d5392bb5da3c Added generated files
lost
parents:
diff changeset
211 'double' arguments.])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
212 AC_DEFINE([NEED_PRINTF_LONG_DOUBLE], 1,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
213 [Define if the vasnprintf implementation needs special code for
d5392bb5da3c Added generated files
lost
parents:
diff changeset
214 'long double' arguments.])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
215 ;;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
216 esac
d5392bb5da3c Added generated files
lost
parents:
diff changeset
217 ])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
218
d5392bb5da3c Added generated files
lost
parents:
diff changeset
219 # Extra prerequisites of lib/vasnprintf.c for surviving out-of-memory
d5392bb5da3c Added generated files
lost
parents:
diff changeset
220 # conditions.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
221 AC_DEFUN([gl_PREREQ_VASNPRINTF_ENOMEM],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
222 [
d5392bb5da3c Added generated files
lost
parents:
diff changeset
223 AC_REQUIRE([gl_PRINTF_ENOMEM])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
224 case "$gl_cv_func_printf_enomem" in
d5392bb5da3c Added generated files
lost
parents:
diff changeset
225 *yes)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
226 ;;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
227 *)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
228 AC_DEFINE([NEED_PRINTF_ENOMEM], 1,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
229 [Define if the vasnprintf implementation needs special code for
d5392bb5da3c Added generated files
lost
parents:
diff changeset
230 surviving out-of-memory conditions.])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
231 AC_DEFINE([NEED_PRINTF_DOUBLE], 1,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
232 [Define if the vasnprintf implementation needs special code for
d5392bb5da3c Added generated files
lost
parents:
diff changeset
233 'double' arguments.])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
234 AC_DEFINE([NEED_PRINTF_LONG_DOUBLE], 1,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
235 [Define if the vasnprintf implementation needs special code for
d5392bb5da3c Added generated files
lost
parents:
diff changeset
236 'long double' arguments.])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
237 ;;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
238 esac
d5392bb5da3c Added generated files
lost
parents:
diff changeset
239 ])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
240
d5392bb5da3c Added generated files
lost
parents:
diff changeset
241 # Prerequisites of lib/vasnprintf.c including all extras for POSIX compliance.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
242 AC_DEFUN([gl_PREREQ_VASNPRINTF_WITH_EXTRAS],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
243 [
d5392bb5da3c Added generated files
lost
parents:
diff changeset
244 AC_REQUIRE([gl_PREREQ_VASNPRINTF])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
245 gl_PREREQ_VASNPRINTF_LONG_DOUBLE
d5392bb5da3c Added generated files
lost
parents:
diff changeset
246 gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE
d5392bb5da3c Added generated files
lost
parents:
diff changeset
247 gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE
d5392bb5da3c Added generated files
lost
parents:
diff changeset
248 gl_PREREQ_VASNPRINTF_DIRECTIVE_A
d5392bb5da3c Added generated files
lost
parents:
diff changeset
249 gl_PREREQ_VASNPRINTF_DIRECTIVE_F
d5392bb5da3c Added generated files
lost
parents:
diff changeset
250 gl_PREREQ_VASNPRINTF_FLAG_GROUPING
d5392bb5da3c Added generated files
lost
parents:
diff changeset
251 gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST
d5392bb5da3c Added generated files
lost
parents:
diff changeset
252 gl_PREREQ_VASNPRINTF_FLAG_ZERO
d5392bb5da3c Added generated files
lost
parents:
diff changeset
253 gl_PREREQ_VASNPRINTF_PRECISION
d5392bb5da3c Added generated files
lost
parents:
diff changeset
254 gl_PREREQ_VASNPRINTF_ENOMEM
d5392bb5da3c Added generated files
lost
parents:
diff changeset
255 ])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
256
d5392bb5da3c Added generated files
lost
parents:
diff changeset
257 # Prerequisites of lib/asnprintf.c.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
258 AC_DEFUN([gl_PREREQ_ASNPRINTF],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
259 [
d5392bb5da3c Added generated files
lost
parents:
diff changeset
260 ])