1 /* 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"
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.
38 /* If you are compiling for a system that uses EBCDIC instead of ASCII
39 character codes, define this macro to any value. When EBCDIC is set, PCRE2
40 assumes that all input strings are in EBCDIC. If you do not define this
41 macro, PCRE2 will assume input strings are ASCII or UTF-8/16/32 Unicode. It
42 is not possible to build a version of PCRE2 that supports both EBCDIC and
46 /* In an EBCDIC environment, define this macro to any value to arrange for the
47 NL character to be 0x25 instead of the default 0x15. NL plays the role that
48 LF does in an ASCII/Unicode environment. */
51 /* Define to 1 if you have the `bcopy' function. */
54 /* Define to 1 if you have the <bzlib.h> header file. */
57 /* Define to 1 if you have the <dirent.h> header file. */
60 /* Define to 1 if you have the <dlfcn.h> header file. */
63 /* Define to 1 if you have the <editline/readline.h> header file. */
64 #undef HAVE_EDITLINE_READLINE_H
66 /* Define to 1 if you have the <edit/readline/readline.h> header file. */
67 #undef HAVE_EDIT_READLINE_READLINE_H
69 /* Define to 1 if you have the <inttypes.h> header file. */
70 #undef HAVE_INTTYPES_H
72 /* Define to 1 if you have the <limits.h> header file. */
75 /* Define to 1 if you have the `memmove' function. */
78 /* Define to 1 if you have the <memory.h> header file. */
81 /* Define to 1 if you have the `mkostemp' function. */
84 /* Define if you have POSIX threads libraries and header files. */
87 /* Have PTHREAD_PRIO_INHERIT. */
88 #undef HAVE_PTHREAD_PRIO_INHERIT
90 /* Define to 1 if you have the <readline/history.h> header file. */
91 #undef HAVE_READLINE_HISTORY_H
93 /* Define to 1 if you have the <readline/readline.h> header file. */
94 #undef HAVE_READLINE_READLINE_H
96 /* Define to 1 if you have the `secure_getenv' function. */
97 #undef HAVE_SECURE_GETENV
99 /* Define to 1 if you have the <stdint.h> header file. */
102 /* Define to 1 if you have the <stdlib.h> header file. */
105 /* Define to 1 if you have the `strerror' function. */
108 /* Define to 1 if you have the <strings.h> header file. */
109 #undef HAVE_STRINGS_H
111 /* Define to 1 if you have the <string.h> header file. */
114 /* Define to 1 if you have the <sys/stat.h> header file. */
115 #undef HAVE_SYS_STAT_H
117 /* Define to 1 if you have the <sys/types.h> header file. */
118 #undef HAVE_SYS_TYPES_H
120 /* Define to 1 if you have the <sys/wait.h> header file. */
121 #undef HAVE_SYS_WAIT_H
123 /* Define to 1 if you have the <unistd.h> header file. */
126 /* Define to 1 if the compiler supports simple visibility declarations. */
127 #undef HAVE_VISIBILITY
129 /* Define to 1 if you have the <windows.h> header file. */
130 #undef HAVE_WINDOWS_H
132 /* Define to 1 if you have the <zlib.h> header file. */
135 /* This limits the amount of memory that may be used while matching a pattern.
136 It applies to both pcre2_match() and pcre2_dfa_match(). It does not apply
137 to JIT matching. The value is in kibibytes (units of 1024 bytes). */
140 /* The value of LINK_SIZE determines the number of bytes used to store links
141 as offsets within the compiled regex. The default is 2, which allows for
142 compiled patterns up to 65535 code units long. This covers the vast
143 majority of cases. However, PCRE2 can also be compiled to use 3 or 4 bytes
144 instead. This allows for longer patterns in extreme cases. */
147 /* Define to the sub-directory where libtool stores uninstalled libraries. */
150 /* The value of MATCH_LIMIT determines the default number of times the
151 pcre2_match() function can record a backtrack position during a single
152 matching attempt. The value is also used to limit a loop counter in
153 pcre2_dfa_match(). There is a runtime interface for setting a different
154 limit. The limit exists in order to catch runaway regular expressions that
155 take for ever to determine that they do not match. The default is set very
156 large so that it does not accidentally catch legitimate cases. */
159 /* The above limit applies to all backtracks, whether or not they are nested.
160 In some environments it is desirable to limit the nesting of backtracking
161 (that is, the depth of tree that is searched) more strictly, in order to
162 restrict the maximum amount of heap memory that is used. The value of
163 MATCH_LIMIT_DEPTH provides this facility. To have any useful effect, it
164 must be less than the value of MATCH_LIMIT. The default is to use the same
165 value as MATCH_LIMIT. There is a runtime method for setting a different
166 limit. In the case of pcre2_dfa_match(), this limit controls the depth of
167 the internal nested function calls that are used for pattern recursions,
168 lookarounds, and atomic groups. */
169 #undef MATCH_LIMIT_DEPTH
171 /* This limit is parameterized just in case anybody ever wants to change it.
172 Care must be taken if it is increased, because it guards against integer
173 overflow caused by enormously large patterns. */
174 #undef MAX_NAME_COUNT
176 /* This limit is parameterized just in case anybody ever wants to change it.
177 Care must be taken if it is increased, because it guards against integer
178 overflow caused by enormously large patterns. */
181 /* Defining NEVER_BACKSLASH_C locks out the use of \C in all patterns. */
182 #undef NEVER_BACKSLASH_C
184 /* The value of NEWLINE_DEFAULT determines the default newline character
185 sequence. PCRE2 client programs can override this by selecting other values
186 at run time. The valid values are 1 (CR), 2 (LF), 3 (CRLF), 4 (ANY), 5
187 (ANYCRLF), and 6 (NUL). */
188 #undef NEWLINE_DEFAULT
190 /* Name of package */
193 /* Define to the address where bug reports for this package should be sent. */
194 #undef PACKAGE_BUGREPORT
196 /* Define to the full name of this package. */
199 /* Define to the full name and version of this package. */
200 #undef PACKAGE_STRING
202 /* Define to the one symbol short name of this package. */
203 #undef PACKAGE_TARNAME
205 /* Define to the home page for this package. */
208 /* Define to the version of this package. */
209 #undef PACKAGE_VERSION
211 /* The value of PARENS_NEST_LIMIT specifies the maximum depth of nested
212 parentheses (of any kind) in a pattern. This limits the amount of system
213 stack that is used while compiling a pattern. */
214 #undef PARENS_NEST_LIMIT
216 /* The value of PCRE2GREP_BUFSIZE is the starting size of the buffer used by
217 pcre2grep to hold parts of the file it is searching. The buffer will be
218 expanded up to PCRE2GREP_MAX_BUFSIZE if necessary, for files containing
219 very long lines. The actual amount of memory used by pcre2grep is three
220 times this number, because it allows for the buffering of "before" and
222 #undef PCRE2GREP_BUFSIZE
224 /* The value of PCRE2GREP_MAX_BUFSIZE specifies the maximum size of the buffer
225 used by pcre2grep to hold parts of the file it is searching. The actual
226 amount of memory used by pcre2grep is three times this number, because it
227 allows for the buffering of "before" and "after" lines. */
228 #undef PCRE2GREP_MAX_BUFSIZE
230 /* to make a symbol visible */
231 #undef PCRE2POSIX_EXP_DECL
233 /* to make a symbol visible */
234 #undef PCRE2POSIX_EXP_DEFN
236 /* Define to any value to include debugging code. */
239 /* to make a symbol visible */
240 #undef PCRE2_EXP_DECL
243 /* If you are compiling for a system other than a Unix-like system or
244 Win32, and it needs some magic to be inserted before the definition
245 of a function that is exported by the library, define this macro to
246 contain the relevant magic. If you do not define this macro, a suitable
247 __declspec value is used for Windows systems; in other environments
248 "extern" is used for a C compiler and "extern C" for a C++ compiler.
249 This macro apears at the start of every exported function that is part
250 of the external API. It does not appear on functions that are "external"
251 in the C sense, but which are internal to the library. */
252 #undef PCRE2_EXP_DEFN
254 /* Define to any value if linking statically (TODO: make nice with Libtool) */
257 /* Define to necessary symbol if this constant uses a non-standard name on
259 #undef PTHREAD_CREATE_JOINABLE
261 /* Define to any non-zero number to enable support for SELinux compatible
262 executable memory allocator in JIT. Note that this will have no effect
263 unless SUPPORT_JIT is also defined. */
264 #undef SLJIT_PROT_EXECUTABLE_ALLOCATOR
266 /* Define to 1 if you have the ANSI C header files. */
269 /* Define to any value to enable support for Just-In-Time compiling. */
272 /* Define to any value to allow pcre2grep to be linked with libbz2, so that it
273 is able to handle .bz2 files. */
274 #undef SUPPORT_LIBBZ2
276 /* Define to any value to allow pcre2test to be linked with libedit. */
277 #undef SUPPORT_LIBEDIT
279 /* Define to any value to allow pcre2test to be linked with libreadline. */
280 #undef SUPPORT_LIBREADLINE
282 /* Define to any value to allow pcre2grep to be linked with libz, so that it
283 is able to handle .gz files. */
286 /* Define to any value to enable callout script support in pcre2grep. */
287 #undef SUPPORT_PCRE2GREP_CALLOUT
289 /* Define to any value to enable JIT support in pcre2grep. Note that this will
290 have no effect unless SUPPORT_JIT is also defined. */
291 #undef SUPPORT_PCRE2GREP_JIT
293 /* Define to any value to enable the 16 bit PCRE2 library. */
294 #undef SUPPORT_PCRE2_16
296 /* Define to any value to enable the 32 bit PCRE2 library. */
297 #undef SUPPORT_PCRE2_32
299 /* Define to any value to enable the 8 bit PCRE2 library. */
300 #undef SUPPORT_PCRE2_8
302 /* Define to any value to enable support for Unicode and UTF encoding. This
303 will work even in an EBCDIC environment, but it is incompatible with the
304 EBCDIC macro. That is, PCRE2 can support *either* EBCDIC code *or*
305 ASCII/Unicode, but not both at once. */
306 #undef SUPPORT_UNICODE
308 /* Define to any value for valgrind support to find invalid memory reads. */
309 #undef SUPPORT_VALGRIND
311 /* Enable extensions on AIX 3, Interix. */
315 /* Enable GNU extensions on systems that have them. */
319 /* Enable threading extensions on Solaris. */
320 #ifndef _POSIX_PTHREAD_SEMANTICS
321 # undef _POSIX_PTHREAD_SEMANTICS
323 /* Enable extensions on HP NonStop. */
324 #ifndef _TANDEM_SOURCE
325 # undef _TANDEM_SOURCE
327 /* Enable general extensions on Solaris. */
328 #ifndef __EXTENSIONS__
329 # undef __EXTENSIONS__
333 /* Version number of package */
336 /* Define to 1 if on MINIX. */
339 /* Define to 2 if the system does not provide POSIX.1 features except with
341 #undef _POSIX_1_SOURCE
343 /* Define to 1 if you need to in order for `stat' and other things to work. */
346 /* Define to empty if `const' does not conform to ANSI C. */
349 /* Define to the type of a signed integer type of width exactly 64 bits if
350 such a type exists and the standard includes do not define it. */
353 /* Define to `unsigned int' if <sys/types.h> does not define. */