blob: e620bb0e1345b63d91bd0c0bc7e2fa240df3e9af [file] [log] [blame]
Janis Danisevskis53e448c2016-03-31 13:35:25 +01001/* src/config.h. Generated from config.h.in by configure. */
2/* src/config.h.in. Generated from configure.ac by autoheader. */
3
4/* PCRE2 is written in Standard C, but there are a few non-standard things it
5can cope with, allowing it to run on SunOS4 and other "close to standard"
6systems.
7
8In environments that support the GNU autotools, config.h.in is converted into
9config.h by the "configure" script. In environments that use CMake,
10config-cmake.in is converted into config.h. If you are going to build PCRE2 "by
11hand" without using "configure" or CMake, you should copy the distributed
12config.h.generic to config.h, and edit the macro definitions to be the way you
13need them. You must then add -DHAVE_CONFIG_H to all of your compile commands,
14so that config.h is included at the start of every source.
15
16Alternatively, you can avoid editing by using -D on the compiler command line
17to set the macro values. In this case, you do not have to set -DHAVE_CONFIG_H,
18but if you do, default values will be taken from config.h for non-boolean
19macros that are not defined on the command line.
20
Elliott Hughes653c2102019-01-09 15:41:36 -080021Boolean macros such as HAVE_STDLIB_H and SUPPORT_PCRE2_8 should either be
22defined (conventionally to 1) for TRUE, and not defined at all for FALSE. All
23such macros are listed as a commented #undef in config.h.generic. Macros such
24as MATCH_LIMIT, whose actual value is relevant, have defaults defined, but are
Janis Danisevskis53e448c2016-03-31 13:35:25 +010025surrounded by #ifndef/#endif lines so that the value can be overridden by -D.
26
27PCRE2 uses memmove() if HAVE_MEMMOVE is defined; otherwise it uses bcopy() if
28HAVE_BCOPY is defined. If your system has neither bcopy() nor memmove(), make
29sure both macros are undefined; an emulation function will then be used. */
30
31/* By default, the \R escape sequence matches any Unicode line ending
32 character or sequence of characters. If BSR_ANYCRLF is defined (to any
33 value), this is changed so that backslash-R matches only CR, LF, or CRLF.
34 The build-time default can be overridden by the user of PCRE2 at runtime.
35 */
36/* #undef BSR_ANYCRLF */
37
Elliott Hughes0c26e192019-08-07 12:24:46 -070038/* Define to any value to disable the use of the z and t modifiers in
39 formatting settings such as %zu or %td (this is rarely needed). */
40/* #undef DISABLE_PERCENT_ZT */
41
Janis Danisevskis53e448c2016-03-31 13:35:25 +010042/* If you are compiling for a system that uses EBCDIC instead of ASCII
43 character codes, define this macro to any value. When EBCDIC is set, PCRE2
44 assumes that all input strings are in EBCDIC. If you do not define this
45 macro, PCRE2 will assume input strings are ASCII or UTF-8/16/32 Unicode. It
46 is not possible to build a version of PCRE2 that supports both EBCDIC and
47 UTF-8/16/32. */
48/* #undef EBCDIC */
49
50/* In an EBCDIC environment, define this macro to any value to arrange for the
51 NL character to be 0x25 instead of the default 0x15. NL plays the role that
52 LF does in an ASCII/Unicode environment. */
53/* #undef EBCDIC_NL25 */
54
Elliott Hughes2dbd7d22020-06-03 14:32:37 -070055/* Define this if your compiler supports __attribute__((uninitialized)) */
56/* #undef HAVE_ATTRIBUTE_UNINITIALIZED */
57
Janis Danisevskis53e448c2016-03-31 13:35:25 +010058/* Define to 1 if you have the `bcopy' function. */
59/* #undef HAVE_BCOPY */
60
61/* Define to 1 if you have the <bzlib.h> header file. */
62/* #undef HAVE_BZLIB_H */
63
64/* Define to 1 if you have the <dirent.h> header file. */
65/* #undef HAVE_DIRENT_H */
66
67/* Define to 1 if you have the <dlfcn.h> header file. */
68/* #undef HAVE_DLFCN_H */
69
70/* Define to 1 if you have the <editline/readline.h> header file. */
71/* #undef HAVE_EDITLINE_READLINE_H */
72
73/* Define to 1 if you have the <edit/readline/readline.h> header file. */
74/* #undef HAVE_EDIT_READLINE_READLINE_H */
75
76/* Define to 1 if you have the <inttypes.h> header file. */
77/* #undef HAVE_INTTYPES_H */
78
79/* Define to 1 if you have the <limits.h> header file. */
80/* #undef HAVE_LIMITS_H */
81
Elliott Hughes2dbd7d22020-06-03 14:32:37 -070082/* Define to 1 if you have the `memfd_create' function. */
83/* #undef HAVE_MEMFD_CREATE */
84
Janis Danisevskis53e448c2016-03-31 13:35:25 +010085/* Define to 1 if you have the `memmove' function. */
86/* #undef HAVE_MEMMOVE */
87
Elliott Hughes378b1752021-06-08 13:42:40 -070088/* Define to 1 if you have the <minix/config.h> header file. */
89/* #undef HAVE_MINIX_CONFIG_H */
Janis Danisevskis53e448c2016-03-31 13:35:25 +010090
Elliott Hughes9bc971b2018-07-27 13:23:14 -070091/* Define to 1 if you have the `mkostemp' function. */
92/* #undef HAVE_MKOSTEMP */
93
Janis Danisevskis53e448c2016-03-31 13:35:25 +010094/* Define if you have POSIX threads libraries and header files. */
95/* #undef HAVE_PTHREAD */
96
97/* Have PTHREAD_PRIO_INHERIT. */
98/* #undef HAVE_PTHREAD_PRIO_INHERIT */
99
100/* Define to 1 if you have the <readline/history.h> header file. */
101/* #undef HAVE_READLINE_HISTORY_H */
102
103/* Define to 1 if you have the <readline/readline.h> header file. */
104/* #undef HAVE_READLINE_READLINE_H */
105
Elliott Hughes9bc971b2018-07-27 13:23:14 -0700106/* Define to 1 if you have the `secure_getenv' function. */
107/* #undef HAVE_SECURE_GETENV */
108
Janis Danisevskis53e448c2016-03-31 13:35:25 +0100109/* Define to 1 if you have the <stdint.h> header file. */
110/* #undef HAVE_STDINT_H */
111
Elliott Hughes378b1752021-06-08 13:42:40 -0700112/* Define to 1 if you have the <stdio.h> header file. */
113/* #undef HAVE_STDIO_H */
114
Janis Danisevskis53e448c2016-03-31 13:35:25 +0100115/* Define to 1 if you have the <stdlib.h> header file. */
116/* #undef HAVE_STDLIB_H */
117
118/* Define to 1 if you have the `strerror' function. */
119/* #undef HAVE_STRERROR */
120
121/* Define to 1 if you have the <strings.h> header file. */
122/* #undef HAVE_STRINGS_H */
123
124/* Define to 1 if you have the <string.h> header file. */
125/* #undef HAVE_STRING_H */
126
127/* Define to 1 if you have the <sys/stat.h> header file. */
128/* #undef HAVE_SYS_STAT_H */
129
130/* Define to 1 if you have the <sys/types.h> header file. */
131/* #undef HAVE_SYS_TYPES_H */
132
Janis Danisevskis8b979b22016-08-15 16:09:16 +0100133/* Define to 1 if you have the <sys/wait.h> header file. */
134/* #undef HAVE_SYS_WAIT_H */
135
Janis Danisevskis53e448c2016-03-31 13:35:25 +0100136/* Define to 1 if you have the <unistd.h> header file. */
137/* #undef HAVE_UNISTD_H */
138
139/* Define to 1 if the compiler supports simple visibility declarations. */
140/* #undef HAVE_VISIBILITY */
141
Elliott Hughes378b1752021-06-08 13:42:40 -0700142/* Define to 1 if you have the <wchar.h> header file. */
143/* #undef HAVE_WCHAR_H */
144
Janis Danisevskis53e448c2016-03-31 13:35:25 +0100145/* Define to 1 if you have the <windows.h> header file. */
146/* #undef HAVE_WINDOWS_H */
147
148/* Define to 1 if you have the <zlib.h> header file. */
149/* #undef HAVE_ZLIB_H */
150
Elliott Hughes653c2102019-01-09 15:41:36 -0800151/* This limits the amount of memory that may be used while matching a pattern.
152 It applies to both pcre2_match() and pcre2_dfa_match(). It does not apply
153 to JIT matching. The value is in kibibytes (units of 1024 bytes). */
Elliott Hughes9bc971b2018-07-27 13:23:14 -0700154#ifndef HEAP_LIMIT
155#define HEAP_LIMIT 20000000
156#endif
Janis Danisevskis53e448c2016-03-31 13:35:25 +0100157
158/* The value of LINK_SIZE determines the number of bytes used to store links
159 as offsets within the compiled regex. The default is 2, which allows for
Elliott Hughes653c2102019-01-09 15:41:36 -0800160 compiled patterns up to 65535 code units long. This covers the vast
161 majority of cases. However, PCRE2 can also be compiled to use 3 or 4 bytes
162 instead. This allows for longer patterns in extreme cases. */
Janis Danisevskis53e448c2016-03-31 13:35:25 +0100163#ifndef LINK_SIZE
164#define LINK_SIZE 2
165#endif
166
167/* Define to the sub-directory where libtool stores uninstalled libraries. */
168/* This is ignored unless you are using libtool. */
169#ifndef LT_OBJDIR
170#define LT_OBJDIR ".libs/"
171#endif
172
173/* The value of MATCH_LIMIT determines the default number of times the
Elliott Hughes9bc971b2018-07-27 13:23:14 -0700174 pcre2_match() function can record a backtrack position during a single
Elliott Hughes653c2102019-01-09 15:41:36 -0800175 matching attempt. The value is also used to limit a loop counter in
176 pcre2_dfa_match(). There is a runtime interface for setting a different
Elliott Hughes9bc971b2018-07-27 13:23:14 -0700177 limit. The limit exists in order to catch runaway regular expressions that
178 take for ever to determine that they do not match. The default is set very
179 large so that it does not accidentally catch legitimate cases. */
Janis Danisevskis53e448c2016-03-31 13:35:25 +0100180#ifndef MATCH_LIMIT
181#define MATCH_LIMIT 10000000
182#endif
183
Elliott Hughes9bc971b2018-07-27 13:23:14 -0700184/* The above limit applies to all backtracks, whether or not they are nested.
185 In some environments it is desirable to limit the nesting of backtracking
186 (that is, the depth of tree that is searched) more strictly, in order to
187 restrict the maximum amount of heap memory that is used. The value of
188 MATCH_LIMIT_DEPTH provides this facility. To have any useful effect, it
189 must be less than the value of MATCH_LIMIT. The default is to use the same
190 value as MATCH_LIMIT. There is a runtime method for setting a different
Elliott Hughes653c2102019-01-09 15:41:36 -0800191 limit. In the case of pcre2_dfa_match(), this limit controls the depth of
192 the internal nested function calls that are used for pattern recursions,
193 lookarounds, and atomic groups. */
Elliott Hughes9bc971b2018-07-27 13:23:14 -0700194#ifndef MATCH_LIMIT_DEPTH
195#define MATCH_LIMIT_DEPTH MATCH_LIMIT
Janis Danisevskis53e448c2016-03-31 13:35:25 +0100196#endif
197
198/* This limit is parameterized just in case anybody ever wants to change it.
199 Care must be taken if it is increased, because it guards against integer
200 overflow caused by enormously large patterns. */
201#ifndef MAX_NAME_COUNT
202#define MAX_NAME_COUNT 10000
203#endif
204
205/* This limit is parameterized just in case anybody ever wants to change it.
206 Care must be taken if it is increased, because it guards against integer
207 overflow caused by enormously large patterns. */
208#ifndef MAX_NAME_SIZE
209#define MAX_NAME_SIZE 32
210#endif
211
212/* Defining NEVER_BACKSLASH_C locks out the use of \C in all patterns. */
213/* #undef NEVER_BACKSLASH_C */
214
215/* The value of NEWLINE_DEFAULT determines the default newline character
216 sequence. PCRE2 client programs can override this by selecting other values
Elliott Hughes9bc971b2018-07-27 13:23:14 -0700217 at run time. The valid values are 1 (CR), 2 (LF), 3 (CRLF), 4 (ANY), 5
218 (ANYCRLF), and 6 (NUL). */
Janis Danisevskis53e448c2016-03-31 13:35:25 +0100219#ifndef NEWLINE_DEFAULT
220#define NEWLINE_DEFAULT 2
221#endif
222
223/* Name of package */
224#define PACKAGE "pcre2"
225
226/* Define to the address where bug reports for this package should be sent. */
227#define PACKAGE_BUGREPORT ""
228
229/* Define to the full name of this package. */
230#define PACKAGE_NAME "PCRE2"
231
232/* Define to the full name and version of this package. */
Elliott Hughes378b1752021-06-08 13:42:40 -0700233#define PACKAGE_STRING "PCRE2 10.37"
Janis Danisevskis53e448c2016-03-31 13:35:25 +0100234
235/* Define to the one symbol short name of this package. */
236#define PACKAGE_TARNAME "pcre2"
237
238/* Define to the home page for this package. */
239#define PACKAGE_URL ""
240
241/* Define to the version of this package. */
Elliott Hughes378b1752021-06-08 13:42:40 -0700242#define PACKAGE_VERSION "10.37"
Janis Danisevskis53e448c2016-03-31 13:35:25 +0100243
244/* The value of PARENS_NEST_LIMIT specifies the maximum depth of nested
245 parentheses (of any kind) in a pattern. This limits the amount of system
246 stack that is used while compiling a pattern. */
247#ifndef PARENS_NEST_LIMIT
248#define PARENS_NEST_LIMIT 250
249#endif
250
Elliott Hughes9bc971b2018-07-27 13:23:14 -0700251/* The value of PCRE2GREP_BUFSIZE is the starting size of the buffer used by
252 pcre2grep to hold parts of the file it is searching. The buffer will be
253 expanded up to PCRE2GREP_MAX_BUFSIZE if necessary, for files containing
254 very long lines. The actual amount of memory used by pcre2grep is three
255 times this number, because it allows for the buffering of "before" and
256 "after" lines. */
Janis Danisevskis53e448c2016-03-31 13:35:25 +0100257#ifndef PCRE2GREP_BUFSIZE
258#define PCRE2GREP_BUFSIZE 20480
259#endif
260
Elliott Hughes9bc971b2018-07-27 13:23:14 -0700261/* The value of PCRE2GREP_MAX_BUFSIZE specifies the maximum size of the buffer
262 used by pcre2grep to hold parts of the file it is searching. The actual
263 amount of memory used by pcre2grep is three times this number, because it
264 allows for the buffering of "before" and "after" lines. */
265#ifndef PCRE2GREP_MAX_BUFSIZE
266#define PCRE2GREP_MAX_BUFSIZE 1048576
267#endif
268
Janis Danisevskis53e448c2016-03-31 13:35:25 +0100269/* Define to any value to include debugging code. */
270/* #undef PCRE2_DEBUG */
271
272/* If you are compiling for a system other than a Unix-like system or
273 Win32, and it needs some magic to be inserted before the definition
274 of a function that is exported by the library, define this macro to
275 contain the relevant magic. If you do not define this macro, a suitable
276 __declspec value is used for Windows systems; in other environments
277 "extern" is used for a C compiler and "extern C" for a C++ compiler.
278 This macro apears at the start of every exported function that is part
279 of the external API. It does not appear on functions that are "external"
280 in the C sense, but which are internal to the library. */
281/* #undef PCRE2_EXP_DEFN */
282
283/* Define to any value if linking statically (TODO: make nice with Libtool) */
284/* #undef PCRE2_STATIC */
285
286/* Define to necessary symbol if this constant uses a non-standard name on
287 your system. */
288/* #undef PTHREAD_CREATE_JOINABLE */
289
Elliott Hughes9bc971b2018-07-27 13:23:14 -0700290/* Define to any non-zero number to enable support for SELinux compatible
291 executable memory allocator in JIT. Note that this will have no effect
292 unless SUPPORT_JIT is also defined. */
293/* #undef SLJIT_PROT_EXECUTABLE_ALLOCATOR */
294
Elliott Hughes378b1752021-06-08 13:42:40 -0700295/* Define to 1 if all of the C90 standard headers exist (not just the ones
296 required in a freestanding environment). This macro is provided for
297 backward compatibility; new code need not use it. */
Janis Danisevskis53e448c2016-03-31 13:35:25 +0100298/* #undef STDC_HEADERS */
299
300/* Define to any value to enable support for Just-In-Time compiling. */
301/* #undef SUPPORT_JIT */
302
303/* Define to any value to allow pcre2grep to be linked with libbz2, so that it
304 is able to handle .bz2 files. */
305/* #undef SUPPORT_LIBBZ2 */
306
307/* Define to any value to allow pcre2test to be linked with libedit. */
308/* #undef SUPPORT_LIBEDIT */
309
310/* Define to any value to allow pcre2test to be linked with libreadline. */
311/* #undef SUPPORT_LIBREADLINE */
312
313/* Define to any value to allow pcre2grep to be linked with libz, so that it
314 is able to handle .gz files. */
315/* #undef SUPPORT_LIBZ */
316
Janis Danisevskis8b979b22016-08-15 16:09:16 +0100317/* Define to any value to enable callout script support in pcre2grep. */
318/* #undef SUPPORT_PCRE2GREP_CALLOUT */
319
Elliott Hughes0c26e192019-08-07 12:24:46 -0700320/* Define to any value to enable fork support in pcre2grep callout scripts.
321 This will have no effect unless SUPPORT_PCRE2GREP_CALLOUT is also defined.
322 */
323/* #undef SUPPORT_PCRE2GREP_CALLOUT_FORK */
324
Elliott Hughes9bc971b2018-07-27 13:23:14 -0700325/* Define to any value to enable JIT support in pcre2grep. Note that this will
326 have no effect unless SUPPORT_JIT is also defined. */
Janis Danisevskis53e448c2016-03-31 13:35:25 +0100327/* #undef SUPPORT_PCRE2GREP_JIT */
328
329/* Define to any value to enable the 16 bit PCRE2 library. */
330/* #undef SUPPORT_PCRE2_16 */
331
332/* Define to any value to enable the 32 bit PCRE2 library. */
333/* #undef SUPPORT_PCRE2_32 */
334
335/* Define to any value to enable the 8 bit PCRE2 library. */
336/* #undef SUPPORT_PCRE2_8 */
337
338/* Define to any value to enable support for Unicode and UTF encoding. This
339 will work even in an EBCDIC environment, but it is incompatible with the
340 EBCDIC macro. That is, PCRE2 can support *either* EBCDIC code *or*
341 ASCII/Unicode, but not both at once. */
342/* #undef SUPPORT_UNICODE */
343
344/* Define to any value for valgrind support to find invalid memory reads. */
345/* #undef SUPPORT_VALGRIND */
346
Elliott Hughes9bc971b2018-07-27 13:23:14 -0700347/* Enable extensions on AIX 3, Interix. */
348#ifndef _ALL_SOURCE
349# define _ALL_SOURCE 1
350#endif
Elliott Hughes378b1752021-06-08 13:42:40 -0700351/* Enable general extensions on macOS. */
352#ifndef _DARWIN_C_SOURCE
353# define _DARWIN_C_SOURCE 1
Elliott Hughes9bc971b2018-07-27 13:23:14 -0700354#endif
355/* Enable general extensions on Solaris. */
356#ifndef __EXTENSIONS__
357# define __EXTENSIONS__ 1
358#endif
Elliott Hughes378b1752021-06-08 13:42:40 -0700359/* Enable GNU extensions on systems that have them. */
360#ifndef _GNU_SOURCE
361# define _GNU_SOURCE 1
362#endif
363/* Enable X/Open compliant socket functions that do not require linking
364 with -lxnet on HP-UX 11.11. */
365#ifndef _HPUX_ALT_XOPEN_SOCKET_API
366# define _HPUX_ALT_XOPEN_SOCKET_API 1
367#endif
368/* Identify the host operating system as Minix.
369 This macro does not affect the system headers' behavior.
370 A future release of Autoconf may stop defining this macro. */
371#ifndef _MINIX
372/* # undef _MINIX */
373#endif
374/* Enable general extensions on NetBSD.
375 Enable NetBSD compatibility extensions on Minix. */
376#ifndef _NETBSD_SOURCE
377# define _NETBSD_SOURCE 1
378#endif
379/* Enable OpenBSD compatibility extensions on NetBSD.
380 Oddly enough, this does nothing on OpenBSD. */
381#ifndef _OPENBSD_SOURCE
382# define _OPENBSD_SOURCE 1
383#endif
384/* Define to 1 if needed for POSIX-compatible behavior. */
385#ifndef _POSIX_SOURCE
386/* # undef _POSIX_SOURCE */
387#endif
388/* Define to 2 if needed for POSIX-compatible behavior. */
389#ifndef _POSIX_1_SOURCE
390/* # undef _POSIX_1_SOURCE */
391#endif
392/* Enable POSIX-compatible threading on Solaris. */
393#ifndef _POSIX_PTHREAD_SEMANTICS
394# define _POSIX_PTHREAD_SEMANTICS 1
395#endif
396/* Enable extensions specified by ISO/IEC TS 18661-5:2014. */
397#ifndef __STDC_WANT_IEC_60559_ATTRIBS_EXT__
398# define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1
399#endif
400/* Enable extensions specified by ISO/IEC TS 18661-1:2014. */
401#ifndef __STDC_WANT_IEC_60559_BFP_EXT__
402# define __STDC_WANT_IEC_60559_BFP_EXT__ 1
403#endif
404/* Enable extensions specified by ISO/IEC TS 18661-2:2015. */
405#ifndef __STDC_WANT_IEC_60559_DFP_EXT__
406# define __STDC_WANT_IEC_60559_DFP_EXT__ 1
407#endif
408/* Enable extensions specified by ISO/IEC TS 18661-4:2015. */
409#ifndef __STDC_WANT_IEC_60559_FUNCS_EXT__
410# define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1
411#endif
412/* Enable extensions specified by ISO/IEC TS 18661-3:2015. */
413#ifndef __STDC_WANT_IEC_60559_TYPES_EXT__
414# define __STDC_WANT_IEC_60559_TYPES_EXT__ 1
415#endif
416/* Enable extensions specified by ISO/IEC TR 24731-2:2010. */
417#ifndef __STDC_WANT_LIB_EXT2__
418# define __STDC_WANT_LIB_EXT2__ 1
419#endif
420/* Enable extensions specified by ISO/IEC 24747:2009. */
421#ifndef __STDC_WANT_MATH_SPEC_FUNCS__
422# define __STDC_WANT_MATH_SPEC_FUNCS__ 1
423#endif
424/* Enable extensions on HP NonStop. */
425#ifndef _TANDEM_SOURCE
426# define _TANDEM_SOURCE 1
427#endif
428/* Enable X/Open extensions. Define to 500 only if necessary
429 to make mbstate_t available. */
430#ifndef _XOPEN_SOURCE
431/* # undef _XOPEN_SOURCE */
432#endif
Elliott Hughes9bc971b2018-07-27 13:23:14 -0700433
Janis Danisevskis53e448c2016-03-31 13:35:25 +0100434/* Version number of package */
Elliott Hughes378b1752021-06-08 13:42:40 -0700435#define VERSION "10.37"
Janis Danisevskis53e448c2016-03-31 13:35:25 +0100436
437/* Define to empty if `const' does not conform to ANSI C. */
438/* #undef const */
439
440/* Define to the type of a signed integer type of width exactly 64 bits if
441 such a type exists and the standard includes do not define it. */
442/* #undef int64_t */
443
444/* Define to `unsigned int' if <sys/types.h> does not define. */
445/* #undef size_t */