Update to latest pcre2
[TortoiseGit.git] / ext / build / pcre2 / config.h
blob1ddc358a6884363d8090a975f94c53ca8ae1e7fd
1 /* src/config.h. Generated from config.h.in by configure. */
2 /* src/config.h.in. Generated from configure.ac by autoheader. */
4 /* PCRE2 is written in Standard C, but there are a few non-standard things it
5 can cope with, allowing it to run on SunOS4 and other "close to standard"
6 systems.
8 In environments that support the GNU autotools, config.h.in is converted into
9 config.h by the "configure" script. In environments that use CMake,
10 config-cmake.in is converted into config.h. If you are going to build PCRE2 "by
11 hand" without using "configure" or CMake, you should copy the distributed
12 config.h.generic to config.h, and edit the macro definitions to be the way you
13 need them. You must then add -DHAVE_CONFIG_H to all of your compile commands,
14 so that config.h is included at the start of every source.
16 Alternatively, you can avoid editing by using -D on the compiler command line
17 to set the macro values. In this case, you do not have to set -DHAVE_CONFIG_H,
18 but if you do, default values will be taken from config.h for non-boolean
19 macros that are not defined on the command line.
21 Boolean macros such as HAVE_STDLIB_H and SUPPORT_PCRE2_8 should either be
22 defined (conventionally to 1) for TRUE, and not defined at all for FALSE. All
23 such macros are listed as a commented #undef in config.h.generic. Macros such
24 as MATCH_LIMIT, whose actual value is relevant, have defaults defined, but are
25 surrounded by #ifndef/#endif lines so that the value can be overridden by -D.
27 PCRE2 uses memmove() if HAVE_MEMMOVE is defined; otherwise it uses bcopy() if
28 HAVE_BCOPY is defined. If your system has neither bcopy() nor memmove(), make
29 sure both macros are undefined; an emulation function will then be used. */
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.
36 /* #undef BSR_ANYCRLF */
38 /* 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 */
42 /* 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 */
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 */
55 /* Define to 1 if you have the `bcopy' function. */
56 /* #undef HAVE_BCOPY */
58 /* Define to 1 if you have the <bzlib.h> header file. */
59 /* #undef HAVE_BZLIB_H */
61 /* Define to 1 if you have the <dirent.h> header file. */
62 /* #undef HAVE_DIRENT_H */
64 /* Define to 1 if you have the <dlfcn.h> header file. */
65 /* #undef HAVE_DLFCN_H */
67 /* Define to 1 if you have the <editline/readline.h> header file. */
68 /* #undef HAVE_EDITLINE_READLINE_H */
70 /* Define to 1 if you have the <edit/readline/readline.h> header file. */
71 /* #undef HAVE_EDIT_READLINE_READLINE_H */
73 /* Define to 1 if you have the <inttypes.h> header file. */
74 #define HAVE_INTTYPES_H 1
76 /* Define to 1 if you have the <limits.h> header file. */
77 #define HAVE_LIMITS_H 1
79 /* Define to 1 if you have the `memmove' function. */
80 #define HAVE_MEMMOVE 1
82 /* Define to 1 if you have the <memory.h> header file. */
83 #define HAVE_MEMORY_H 1
85 /* Define to 1 if you have the `mkostemp' function. */
86 /* #undef HAVE_MKOSTEMP */
88 /* Define if you have POSIX threads libraries and header files. */
89 /* #undef HAVE_PTHREAD */
91 /* Have PTHREAD_PRIO_INHERIT. */
92 /* #undef HAVE_PTHREAD_PRIO_INHERIT */
94 /* Define to 1 if you have the <readline/history.h> header file. */
95 /* #undef HAVE_READLINE_HISTORY_H */
97 /* Define to 1 if you have the <readline/readline.h> header file. */
98 /* #undef HAVE_READLINE_READLINE_H */
100 /* Define to 1 if you have the `secure_getenv' function. */
101 /* #undef HAVE_SECURE_GETENV */
103 /* Define to 1 if you have the <stdint.h> header file. */
104 #define HAVE_STDINT_H 1
106 /* Define to 1 if you have the <stdlib.h> header file. */
107 #define HAVE_STDLIB_H 1
109 /* Define to 1 if you have the `strerror' function. */
110 #define HAVE_STRERROR 1
112 /* Define to 1 if you have the <strings.h> header file. */
113 /* #undef HAVE_STRINGS_H */
115 /* Define to 1 if you have the <string.h> header file. */
116 #define HAVE_STRING_H 1
118 /* Define to 1 if you have the <sys/stat.h> header file. */
119 #define HAVE_SYS_STAT_H 1
121 /* Define to 1 if you have the <sys/types.h> header file. */
122 #define HAVE_SYS_TYPES_H 1
124 /* Define to 1 if you have the <sys/wait.h> header file. */
125 /* #undef HAVE_SYS_WAIT_H */
127 /* Define to 1 if you have the <unistd.h> header file. */
128 #define HAVE_UNISTD_H 1
130 /* Define to 1 if the compiler supports simple visibility declarations. */
131 /* #undef HAVE_VISIBILITY */
133 /* Define to 1 if you have the <windows.h> header file. */
134 #define HAVE_WINDOWS_H 1
136 /* Define to 1 if you have the <zlib.h> header file. */
137 /* #undef HAVE_ZLIB_H */
139 /* This limits the amount of memory that may be used while matching a pattern.
140 It applies to both pcre2_match() and pcre2_dfa_match(). It does not apply
141 to JIT matching. The value is in kibibytes (units of 1024 bytes). */
142 #ifndef HEAP_LIMIT
143 #define HEAP_LIMIT 20000000
144 #endif
146 /* The value of LINK_SIZE determines the number of bytes used to store links
147 as offsets within the compiled regex. The default is 2, which allows for
148 compiled patterns up to 65535 code units long. This covers the vast
149 majority of cases. However, PCRE2 can also be compiled to use 3 or 4 bytes
150 instead. This allows for longer patterns in extreme cases. */
151 #ifndef LINK_SIZE
152 #define LINK_SIZE 2
153 #endif
155 /* Define to the sub-directory where libtool stores uninstalled libraries. */
156 /* This is ignored unless you are using libtool. */
157 #ifndef LT_OBJDIR
158 #define LT_OBJDIR ".libs/"
159 #endif
161 /* The value of MATCH_LIMIT determines the default number of times the
162 pcre2_match() function can record a backtrack position during a single
163 matching attempt. The value is also used to limit a loop counter in
164 pcre2_dfa_match(). There is a runtime interface for setting a different
165 limit. The limit exists in order to catch runaway regular expressions that
166 take for ever to determine that they do not match. The default is set very
167 large so that it does not accidentally catch legitimate cases. */
168 #ifndef MATCH_LIMIT
169 #define MATCH_LIMIT 10000000
170 #endif
172 /* The above limit applies to all backtracks, whether or not they are nested.
173 In some environments it is desirable to limit the nesting of backtracking
174 (that is, the depth of tree that is searched) more strictly, in order to
175 restrict the maximum amount of heap memory that is used. The value of
176 MATCH_LIMIT_DEPTH provides this facility. To have any useful effect, it
177 must be less than the value of MATCH_LIMIT. The default is to use the same
178 value as MATCH_LIMIT. There is a runtime method for setting a different
179 limit. In the case of pcre2_dfa_match(), this limit controls the depth of
180 the internal nested function calls that are used for pattern recursions,
181 lookarounds, and atomic groups. */
182 #ifndef MATCH_LIMIT_DEPTH
183 #define MATCH_LIMIT_DEPTH MATCH_LIMIT
184 #endif
186 /* This limit is parameterized just in case anybody ever wants to change it.
187 Care must be taken if it is increased, because it guards against integer
188 overflow caused by enormously large patterns. */
189 #ifndef MAX_NAME_COUNT
190 #define MAX_NAME_COUNT 10000
191 #endif
193 /* This limit is parameterized just in case anybody ever wants to change it.
194 Care must be taken if it is increased, because it guards against integer
195 overflow caused by enormously large patterns. */
196 #ifndef MAX_NAME_SIZE
197 #define MAX_NAME_SIZE 32
198 #endif
200 /* Defining NEVER_BACKSLASH_C locks out the use of \C in all patterns. */
201 /* #undef NEVER_BACKSLASH_C */
203 /* The value of NEWLINE_DEFAULT determines the default newline character
204 sequence. PCRE2 client programs can override this by selecting other values
205 at run time. The valid values are 1 (CR), 2 (LF), 3 (CRLF), 4 (ANY), 5
206 (ANYCRLF), and 6 (NUL). */
207 #ifndef NEWLINE_DEFAULT
208 #define NEWLINE_DEFAULT 2
209 #endif
211 /* Name of package */
212 #define PACKAGE "pcre2"
214 /* Define to the address where bug reports for this package should be sent. */
215 #define PACKAGE_BUGREPORT ""
217 /* Define to the full name of this package. */
218 #define PACKAGE_NAME "PCRE2"
220 /* Define to the full name and version of this package. */
221 #define PACKAGE_STRING "PCRE2 10.33-RC1"
223 /* Define to the one symbol short name of this package. */
224 #define PACKAGE_TARNAME "pcre2"
226 /* Define to the home page for this package. */
227 #define PACKAGE_URL ""
229 /* Define to the version of this package. */
230 #define PACKAGE_VERSION "10.33-RC1"
232 /* The value of PARENS_NEST_LIMIT specifies the maximum depth of nested
233 parentheses (of any kind) in a pattern. This limits the amount of system
234 stack that is used while compiling a pattern. */
235 #ifndef PARENS_NEST_LIMIT
236 #define PARENS_NEST_LIMIT 250
237 #endif
239 /* The value of PCRE2GREP_BUFSIZE is the starting size of the buffer used by
240 pcre2grep to hold parts of the file it is searching. The buffer will be
241 expanded up to PCRE2GREP_MAX_BUFSIZE if necessary, for files containing
242 very long lines. The actual amount of memory used by pcre2grep is three
243 times this number, because it allows for the buffering of "before" and
244 "after" lines. */
245 #ifndef PCRE2GREP_BUFSIZE
246 #define PCRE2GREP_BUFSIZE 20480
247 #endif
249 /* The value of PCRE2GREP_MAX_BUFSIZE specifies the maximum size of the buffer
250 used by pcre2grep to hold parts of the file it is searching. The actual
251 amount of memory used by pcre2grep is three times this number, because it
252 allows for the buffering of "before" and "after" lines. */
253 #ifndef PCRE2GREP_MAX_BUFSIZE
254 #define PCRE2GREP_MAX_BUFSIZE 1048576
255 #endif
257 /* Define to any value to include debugging code. */
258 /* #undef PCRE2_DEBUG */
260 /* If you are compiling for a system other than a Unix-like system or
261 Win32, and it needs some magic to be inserted before the definition
262 of a function that is exported by the library, define this macro to
263 contain the relevant magic. If you do not define this macro, a suitable
264 __declspec value is used for Windows systems; in other environments
265 "extern" is used for a C compiler and "extern C" for a C++ compiler.
266 This macro apears at the start of every exported function that is part
267 of the external API. It does not appear on functions that are "external"
268 in the C sense, but which are internal to the library. */
269 /* #undef PCRE2_EXP_DEFN */
271 /* Define to any value if linking statically (TODO: make nice with Libtool) */
272 #define PCRE2_STATIC 1
274 /* Define to necessary symbol if this constant uses a non-standard name on
275 your system. */
276 /* #undef PTHREAD_CREATE_JOINABLE */
278 /* Define to any non-zero number to enable support for SELinux compatible
279 executable memory allocator in JIT. Note that this will have no effect
280 unless SUPPORT_JIT is also defined. */
281 /* #undef SLJIT_PROT_EXECUTABLE_ALLOCATOR */
283 /* Define to 1 if you have the ANSI C header files. */
284 /* #undef STDC_HEADERS */
286 /* Define to any value to enable support for Just-In-Time compiling. */
287 /* #undef SUPPORT_JIT */
289 /* Define to any value to allow pcre2grep to be linked with libbz2, so that it
290 is able to handle .bz2 files. */
291 /* #undef SUPPORT_LIBBZ2 */
293 /* Define to any value to allow pcre2test to be linked with libedit. */
294 /* #undef SUPPORT_LIBEDIT */
296 /* Define to any value to allow pcre2test to be linked with libreadline. */
297 /* #undef SUPPORT_LIBREADLINE */
299 /* Define to any value to allow pcre2grep to be linked with libz, so that it
300 is able to handle .gz files. */
301 /* #undef SUPPORT_LIBZ */
303 /* Define to any value to enable callout script support in pcre2grep. */
304 /* #undef SUPPORT_PCRE2GREP_CALLOUT */
306 /* Define to any value to enable fork support in pcre2grep callout scripts.
307 This will have no effect unless SUPPORT_PCRE2GREP_CALLOUT is also defined.
309 /* #undef SUPPORT_PCRE2GREP_CALLOUT_FORK */
311 /* Define to any value to enable JIT support in pcre2grep. Note that this will
312 have no effect unless SUPPORT_JIT is also defined. */
313 /* #undef SUPPORT_PCRE2GREP_JIT */
315 /* Define to any value to enable the 16 bit PCRE2 library. */
316 /* #undef SUPPORT_PCRE2_16 */
318 /* Define to any value to enable the 32 bit PCRE2 library. */
319 /* #undef SUPPORT_PCRE2_32 */
321 /* Define to any value to enable the 8 bit PCRE2 library. */
322 #define SUPPORT_PCRE2_8 1
324 /* Define to any value to enable support for Unicode and UTF encoding. This
325 will work even in an EBCDIC environment, but it is incompatible with the
326 EBCDIC macro. That is, PCRE2 can support *either* EBCDIC code *or*
327 ASCII/Unicode, but not both at once. */
328 #define SUPPORT_UNICODE 1
330 /* Define to any value for valgrind support to find invalid memory reads. */
331 /* #undef SUPPORT_VALGRIND */
333 /* Enable extensions on AIX 3, Interix. */
334 #ifndef _ALL_SOURCE
335 # define _ALL_SOURCE 1
336 #endif
337 /* Enable GNU extensions on systems that have them. */
338 #ifndef _GNU_SOURCE
339 # define _GNU_SOURCE 1
340 #endif
341 /* Enable threading extensions on Solaris. */
342 #ifndef _POSIX_PTHREAD_SEMANTICS
343 # define _POSIX_PTHREAD_SEMANTICS 1
344 #endif
345 /* Enable extensions on HP NonStop. */
346 #ifndef _TANDEM_SOURCE
347 # define _TANDEM_SOURCE 1
348 #endif
349 /* Enable general extensions on Solaris. */
350 #ifndef __EXTENSIONS__
351 # define __EXTENSIONS__ 1
352 #endif
354 /* Version number of package */
355 #define VERSION "10.33-RC1"
357 /* Define to 1 if on MINIX. */
358 /* #undef _MINIX */
360 /* Define to 2 if the system does not provide POSIX.1 features except with
361 this defined. */
362 /* #undef _POSIX_1_SOURCE */
364 /* Define to 1 if you need to in order for `stat' and other things to work. */
365 /* #undef _POSIX_SOURCE */
367 /* Define to empty if `const' does not conform to ANSI C. */
368 /* #undef const */
370 /* Define to the type of a signed integer type of width exactly 64 bits if
371 such a type exists and the standard includes do not define it. */
372 /* #undef int64_t */
374 /* Define to `unsigned int' if <sys/types.h> does not define. */
375 /* #undef size_t */