Add -lm dependency for gettextlib to fix LTO build
[platform/upstream/gettext.git] / gettext-runtime / libasprintf / config.h.in
1 /* config.h.in.  Generated from configure.ac by autoheader.  */
2
3 /* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
4    systems. This function is required for `alloca.c' support on those systems.
5    */
6 #undef CRAY_STACKSEG_END
7
8 /* Define to 1 if using `alloca.c'. */
9 #undef C_ALLOCA
10
11 /* Define to 1 if you have `alloca', as a function or macro. */
12 #undef HAVE_ALLOCA
13
14 /* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
15    */
16 #undef HAVE_ALLOCA_H
17
18 /* Define to 1 if you have the declaration of `_snprintf', and to 0 if you
19    don't. */
20 #undef HAVE_DECL__SNPRINTF
21
22 /* Define to 1 if you have the <dlfcn.h> header file. */
23 #undef HAVE_DLFCN_H
24
25 /* Define to 1 if you have the <features.h> header file. */
26 #undef HAVE_FEATURES_H
27
28 /* Define if you have the 'intmax_t' type in <stdint.h> or <inttypes.h>. */
29 #undef HAVE_INTMAX_T
30
31 /* Define to 1 if you have the <inttypes.h> header file. */
32 #undef HAVE_INTTYPES_H
33
34 /* Define if <inttypes.h> exists, doesn't clash with <sys/types.h>, and
35    declares uintmax_t. */
36 #undef HAVE_INTTYPES_H_WITH_UINTMAX
37
38 /* Define to 1 if the system has the type 'long long int'. */
39 #undef HAVE_LONG_LONG_INT
40
41 /* Define to 1 if you have the `mbrtowc' function. */
42 #undef HAVE_MBRTOWC
43
44 /* Define to 1 if <wchar.h> declares mbstate_t. */
45 #undef HAVE_MBSTATE_T
46
47 /* Define to 1 if you have the <memory.h> header file. */
48 #undef HAVE_MEMORY_H
49
50 /* Define if your printf() function supports format strings with positions. */
51 #undef HAVE_POSIX_PRINTF
52
53 /* Define to 1 if you have the `snprintf' function. */
54 #undef HAVE_SNPRINTF
55
56 /* Define to 1 if you have the <stdint.h> header file. */
57 #undef HAVE_STDINT_H
58
59 /* Define if <stdint.h> exists, doesn't clash with <sys/types.h>, and declares
60    uintmax_t. */
61 #undef HAVE_STDINT_H_WITH_UINTMAX
62
63 /* Define to 1 if you have the <stdlib.h> header file. */
64 #undef HAVE_STDLIB_H
65
66 /* Define to 1 if you have the <strings.h> header file. */
67 #undef HAVE_STRINGS_H
68
69 /* Define to 1 if you have the <string.h> header file. */
70 #undef HAVE_STRING_H
71
72 /* Define to 1 if you have the `strnlen' function. */
73 #undef HAVE_STRNLEN
74
75 /* Define to 1 if you have the <sys/stat.h> header file. */
76 #undef HAVE_SYS_STAT_H
77
78 /* Define to 1 if you have the <sys/types.h> header file. */
79 #undef HAVE_SYS_TYPES_H
80
81 /* Define to 1 if you have the <unistd.h> header file. */
82 #undef HAVE_UNISTD_H
83
84 /* Define to 1 if the system has the type 'unsigned long long int'. */
85 #undef HAVE_UNSIGNED_LONG_LONG_INT
86
87 /* Define to 1 if you have the `vasprintf' function. */
88 #undef HAVE_VASPRINTF
89
90 /* Define if you have the 'wchar_t' type. */
91 #undef HAVE_WCHAR_T
92
93 /* Define to 1 if you have the `wcrtomb' function. */
94 #undef HAVE_WCRTOMB
95
96 /* Define to 1 if you have the `wcslen' function. */
97 #undef HAVE_WCSLEN
98
99 /* Define to 1 if you have the `wcsnlen' function. */
100 #undef HAVE_WCSNLEN
101
102 /* Define if you have the 'wint_t' type. */
103 #undef HAVE_WINT_T
104
105 /* Define to the sub-directory where libtool stores uninstalled libraries. */
106 #undef LT_OBJDIR
107
108 /* Name of package */
109 #undef PACKAGE
110
111 /* Define to the address where bug reports for this package should be sent. */
112 #undef PACKAGE_BUGREPORT
113
114 /* Define to the full name of this package. */
115 #undef PACKAGE_NAME
116
117 /* Define to the full name and version of this package. */
118 #undef PACKAGE_STRING
119
120 /* Define to the one symbol short name of this package. */
121 #undef PACKAGE_TARNAME
122
123 /* Define to the home page for this package. */
124 #undef PACKAGE_URL
125
126 /* Define to the version of this package. */
127 #undef PACKAGE_VERSION
128
129 /* Define as the maximum value of type 'size_t', if the system doesn't define
130    it. */
131 #ifndef SIZE_MAX
132 # undef SIZE_MAX
133 #endif
134
135 /* If using the C implementation of alloca, define if you know the
136    direction of stack growth for your system; otherwise it will be
137    automatically deduced at runtime.
138         STACK_DIRECTION > 0 => grows toward higher addresses
139         STACK_DIRECTION < 0 => grows toward lower addresses
140         STACK_DIRECTION = 0 => direction of growth unknown */
141 #undef STACK_DIRECTION
142
143 /* Define to 1 if you have the ANSI C header files. */
144 #undef STDC_HEADERS
145
146 /* Version number of package */
147 #undef VERSION
148
149 /* The _Noreturn keyword of C11.  */
150 #if ! (defined _Noreturn \
151        || (defined __STDC_VERSION__ && 201112 <= __STDC_VERSION__))
152 # if (3 <= __GNUC__ || (__GNUC__ == 2 && 8 <= __GNUC_MINOR__) \
153       || 0x5110 <= __SUNPRO_C)
154 #  define _Noreturn __attribute__ ((__noreturn__))
155 # elif defined _MSC_VER && 1200 <= _MSC_VER
156 #  define _Noreturn __declspec (noreturn)
157 # else
158 #  define _Noreturn
159 # endif
160 #endif
161
162
163 /* Please see the Gnulib manual for how to use these macros.
164
165    Suppress extern inline with HP-UX cc, as it appears to be broken; see
166    <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>.
167
168    Suppress extern inline with Sun C in standards-conformance mode, as it
169    mishandles inline functions that call each other.  E.g., for 'inline void f
170    (void) { } inline void g (void) { f (); }', c99 incorrectly complains
171    'reference to static identifier "f" in extern inline function'.
172    This bug was observed with Sun C 5.12 SunOS_i386 2011/11/16.
173
174    Suppress extern inline (with or without __attribute__ ((__gnu_inline__)))
175    on configurations that mistakenly use 'static inline' to implement
176    functions or macros in standard C headers like <ctype.h>.  For example,
177    if isdigit is mistakenly implemented via a static inline function,
178    a program containing an extern inline function that calls isdigit
179    may not work since the C standard prohibits extern inline functions
180    from calling static functions.  This bug is known to occur on:
181
182      OS X 10.8 and earlier; see:
183      http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html
184
185      DragonFly; see
186      http://muscles.dragonflybsd.org/bulk/bleeding-edge-potential/latest-per-pkg/ah-tty-0.3.12.log
187
188      FreeBSD; see:
189      http://lists.gnu.org/archive/html/bug-gnulib/2014-07/msg00104.html
190
191    OS X 10.9 has a macro __header_inline indicating the bug is fixed for C and
192    for clang but remains for g++; see <http://trac.macports.org/ticket/41033>.
193    Assume DragonFly and FreeBSD will be similar.  */
194 #if (((defined __APPLE__ && defined __MACH__) \
195       || defined __DragonFly__ || defined __FreeBSD__) \
196      && (defined __header_inline \
197          ? (defined __cplusplus && defined __GNUC_STDC_INLINE__ \
198             && ! defined __clang__) \
199          : ((! defined _DONT_USE_CTYPE_INLINE_ \
200              && (defined __GNUC__ || defined __cplusplus)) \
201             || (defined _FORTIFY_SOURCE && 0 < _FORTIFY_SOURCE \
202                 && defined __GNUC__ && ! defined __cplusplus))))
203 # define _GL_EXTERN_INLINE_STDHEADER_BUG
204 #endif
205 #if ((__GNUC__ \
206       ? defined __GNUC_STDC_INLINE__ && __GNUC_STDC_INLINE__ \
207       : (199901L <= __STDC_VERSION__ \
208          && !defined __HP_cc \
209          && !(defined __SUNPRO_C && __STDC__))) \
210      && !defined _GL_EXTERN_INLINE_STDHEADER_BUG)
211 # define _GL_INLINE inline
212 # define _GL_EXTERN_INLINE extern inline
213 # define _GL_EXTERN_INLINE_IN_USE
214 #elif (2 < __GNUC__ + (7 <= __GNUC_MINOR__) && !defined __STRICT_ANSI__ \
215        && !defined _GL_EXTERN_INLINE_STDHEADER_BUG)
216 # if defined __GNUC_GNU_INLINE__ && __GNUC_GNU_INLINE__
217    /* __gnu_inline__ suppresses a GCC 4.2 diagnostic.  */
218 #  define _GL_INLINE extern inline __attribute__ ((__gnu_inline__))
219 # else
220 #  define _GL_INLINE extern inline
221 # endif
222 # define _GL_EXTERN_INLINE extern
223 # define _GL_EXTERN_INLINE_IN_USE
224 #else
225 # define _GL_INLINE static _GL_UNUSED
226 # define _GL_EXTERN_INLINE static _GL_UNUSED
227 #endif
228
229 /* In GCC 4.6 (inclusive) to 5.1 (exclusive),
230    suppress bogus "no previous prototype for 'FOO'"
231    and "no previous declaration for 'FOO'" diagnostics,
232    when FOO is an inline function in the header; see
233    <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54113> and
234    <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63877>.  */
235 #if __GNUC__ == 4 && 6 <= __GNUC_MINOR__
236 # if defined __GNUC_STDC_INLINE__ && __GNUC_STDC_INLINE__
237 #  define _GL_INLINE_HEADER_CONST_PRAGMA
238 # else
239 #  define _GL_INLINE_HEADER_CONST_PRAGMA \
240      _Pragma ("GCC diagnostic ignored \"-Wsuggest-attribute=const\"")
241 # endif
242 # define _GL_INLINE_HEADER_BEGIN \
243     _Pragma ("GCC diagnostic push") \
244     _Pragma ("GCC diagnostic ignored \"-Wmissing-prototypes\"") \
245     _Pragma ("GCC diagnostic ignored \"-Wmissing-declarations\"") \
246     _GL_INLINE_HEADER_CONST_PRAGMA
247 # define _GL_INLINE_HEADER_END \
248     _Pragma ("GCC diagnostic pop")
249 #else
250 # define _GL_INLINE_HEADER_BEGIN
251 # define _GL_INLINE_HEADER_END
252 #endif
253
254 /* Define to `__inline__' or `__inline' if that's what the C compiler
255    calls it, or to nothing if 'inline' is not supported under any name.  */
256 #ifndef __cplusplus
257 #undef inline
258 #endif
259
260 /* Define to long or long long if <inttypes.h> and <stdint.h> don't define. */
261 #undef intmax_t
262
263 /* Work around a bug in Apple GCC 4.0.1 build 5465: In C99 mode, it supports
264    the ISO C 99 semantics of 'extern inline' (unlike the GNU C semantics of
265    earlier versions), but does not display it by setting __GNUC_STDC_INLINE__.
266    __APPLE__ && __MACH__ test for Mac OS X.
267    __APPLE_CC__ tests for the Apple compiler and its version.
268    __STDC_VERSION__ tests for the C99 mode.  */
269 #if defined __APPLE__ && defined __MACH__ && __APPLE_CC__ >= 5465 && !defined __cplusplus && __STDC_VERSION__ >= 199901L && !defined __GNUC_STDC_INLINE__
270 # define __GNUC_STDC_INLINE__ 1
271 #endif
272
273 /* Define to a type if <wchar.h> does not define. */
274 #undef mbstate_t
275
276 /* Define as the type of the result of subtracting two pointers, if the system
277    doesn't define it. */
278 #undef ptrdiff_t
279
280 /* Define to `unsigned int' if <sys/types.h> does not define. */
281 #undef size_t
282
283 /* Define as a marker that can be attached to declarations that might not
284     be used.  This helps to reduce warnings, such as from
285     GCC -Wunused-parameter.  */
286 #if __GNUC__ >= 3 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
287 # define _GL_UNUSED __attribute__ ((__unused__))
288 #else
289 # define _GL_UNUSED
290 #endif
291 /* The name _UNUSED_PARAMETER_ is an earlier spelling, although the name
292    is a misnomer outside of parameter lists.  */
293 #define _UNUSED_PARAMETER_ _GL_UNUSED
294
295 /* gcc supports the "unused" attribute on possibly unused labels, and
296    g++ has since version 4.5.  Note to support C++ as well as C,
297    _GL_UNUSED_LABEL should be used with a trailing ;  */
298 #if !defined __cplusplus || __GNUC__ > 4 \
299     || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5)
300 # define _GL_UNUSED_LABEL _GL_UNUSED
301 #else
302 # define _GL_UNUSED_LABEL
303 #endif
304
305 /* The __pure__ attribute was added in gcc 2.96.  */
306 #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96)
307 # define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__))
308 #else
309 # define _GL_ATTRIBUTE_PURE /* empty */
310 #endif
311
312 /* The __const__ attribute was added in gcc 2.95.  */
313 #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
314 # define _GL_ATTRIBUTE_CONST __attribute__ ((__const__))
315 #else
316 # define _GL_ATTRIBUTE_CONST /* empty */
317 #endif
318