Janis Danisevskis | 53e448c | 2016-03-31 13:35:25 +0100 | [diff] [blame] | 1 | /* 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 |
| 5 | can cope with, allowing it to run on SunOS4 and other "close to standard" |
| 6 | systems. |
| 7 | |
| 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. |
| 15 | |
| 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. |
| 20 | |
| 21 | Boolean macros such as HAVE_STDLIB_H and SUPPORT_PCRE2_8 should either be defined |
| 22 | (conventionally to 1) for TRUE, and not defined at all for FALSE. All such |
| 23 | macros are listed as a commented #undef in config.h.generic. Macros such as |
| 24 | 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. |
| 26 | |
| 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. */ |
| 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 | |
| 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 |
| 43 | UTF-8/16/32. */ |
| 44 | /* #undef EBCDIC */ |
| 45 | |
| 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. */ |
| 49 | /* #undef EBCDIC_NL25 */ |
| 50 | |
| 51 | /* Define to 1 if you have the `bcopy' function. */ |
| 52 | /* #undef HAVE_BCOPY */ |
| 53 | |
| 54 | /* Define to 1 if you have the <bzlib.h> header file. */ |
| 55 | /* #undef HAVE_BZLIB_H */ |
| 56 | |
| 57 | /* Define to 1 if you have the <dirent.h> header file. */ |
| 58 | /* #undef HAVE_DIRENT_H */ |
| 59 | |
| 60 | /* Define to 1 if you have the <dlfcn.h> header file. */ |
| 61 | /* #undef HAVE_DLFCN_H */ |
| 62 | |
| 63 | /* Define to 1 if you have the <editline/readline.h> header file. */ |
| 64 | /* #undef HAVE_EDITLINE_READLINE_H */ |
| 65 | |
| 66 | /* Define to 1 if you have the <edit/readline/readline.h> header file. */ |
| 67 | /* #undef HAVE_EDIT_READLINE_READLINE_H */ |
| 68 | |
| 69 | /* Define to 1 if you have the <inttypes.h> header file. */ |
| 70 | /* #undef HAVE_INTTYPES_H */ |
| 71 | |
| 72 | /* Define to 1 if you have the <limits.h> header file. */ |
| 73 | /* #undef HAVE_LIMITS_H */ |
| 74 | |
| 75 | /* Define to 1 if you have the `memmove' function. */ |
| 76 | /* #undef HAVE_MEMMOVE */ |
| 77 | |
| 78 | /* Define to 1 if you have the <memory.h> header file. */ |
| 79 | /* #undef HAVE_MEMORY_H */ |
| 80 | |
Elliott Hughes | 9bc971b | 2018-07-27 13:23:14 -0700 | [diff] [blame^] | 81 | /* Define to 1 if you have the `mkostemp' function. */ |
| 82 | /* #undef HAVE_MKOSTEMP */ |
| 83 | |
Janis Danisevskis | 53e448c | 2016-03-31 13:35:25 +0100 | [diff] [blame] | 84 | /* Define if you have POSIX threads libraries and header files. */ |
| 85 | /* #undef HAVE_PTHREAD */ |
| 86 | |
| 87 | /* Have PTHREAD_PRIO_INHERIT. */ |
| 88 | /* #undef HAVE_PTHREAD_PRIO_INHERIT */ |
| 89 | |
| 90 | /* Define to 1 if you have the <readline/history.h> header file. */ |
| 91 | /* #undef HAVE_READLINE_HISTORY_H */ |
| 92 | |
| 93 | /* Define to 1 if you have the <readline/readline.h> header file. */ |
| 94 | /* #undef HAVE_READLINE_READLINE_H */ |
| 95 | |
Elliott Hughes | 9bc971b | 2018-07-27 13:23:14 -0700 | [diff] [blame^] | 96 | /* Define to 1 if you have the `secure_getenv' function. */ |
| 97 | /* #undef HAVE_SECURE_GETENV */ |
| 98 | |
Janis Danisevskis | 53e448c | 2016-03-31 13:35:25 +0100 | [diff] [blame] | 99 | /* Define to 1 if you have the <stdint.h> header file. */ |
| 100 | /* #undef HAVE_STDINT_H */ |
| 101 | |
| 102 | /* Define to 1 if you have the <stdlib.h> header file. */ |
| 103 | /* #undef HAVE_STDLIB_H */ |
| 104 | |
| 105 | /* Define to 1 if you have the `strerror' function. */ |
| 106 | /* #undef HAVE_STRERROR */ |
| 107 | |
| 108 | /* Define to 1 if you have the <strings.h> header file. */ |
| 109 | /* #undef HAVE_STRINGS_H */ |
| 110 | |
| 111 | /* Define to 1 if you have the <string.h> header file. */ |
| 112 | /* #undef HAVE_STRING_H */ |
| 113 | |
| 114 | /* Define to 1 if you have the <sys/stat.h> header file. */ |
| 115 | /* #undef HAVE_SYS_STAT_H */ |
| 116 | |
| 117 | /* Define to 1 if you have the <sys/types.h> header file. */ |
| 118 | /* #undef HAVE_SYS_TYPES_H */ |
| 119 | |
Janis Danisevskis | 8b979b2 | 2016-08-15 16:09:16 +0100 | [diff] [blame] | 120 | /* Define to 1 if you have the <sys/wait.h> header file. */ |
| 121 | /* #undef HAVE_SYS_WAIT_H */ |
| 122 | |
Janis Danisevskis | 53e448c | 2016-03-31 13:35:25 +0100 | [diff] [blame] | 123 | /* Define to 1 if you have the <unistd.h> header file. */ |
| 124 | /* #undef HAVE_UNISTD_H */ |
| 125 | |
| 126 | /* Define to 1 if the compiler supports simple visibility declarations. */ |
| 127 | /* #undef HAVE_VISIBILITY */ |
| 128 | |
| 129 | /* Define to 1 if you have the <windows.h> header file. */ |
| 130 | /* #undef HAVE_WINDOWS_H */ |
| 131 | |
| 132 | /* Define to 1 if you have the <zlib.h> header file. */ |
| 133 | /* #undef HAVE_ZLIB_H */ |
| 134 | |
Elliott Hughes | 9bc971b | 2018-07-27 13:23:14 -0700 | [diff] [blame^] | 135 | /* This limits the amount of memory that pcre2_match() may use while matching |
| 136 | a pattern. The value is in kilobytes. */ |
| 137 | #ifndef HEAP_LIMIT |
| 138 | #define HEAP_LIMIT 20000000 |
| 139 | #endif |
Janis Danisevskis | 53e448c | 2016-03-31 13:35:25 +0100 | [diff] [blame] | 140 | |
| 141 | /* The value of LINK_SIZE determines the number of bytes used to store links |
| 142 | as offsets within the compiled regex. The default is 2, which allows for |
| 143 | compiled patterns up to 64K long. This covers the vast majority of cases. |
| 144 | However, PCRE2 can also be compiled to use 3 or 4 bytes instead. This |
| 145 | allows for longer patterns in extreme cases. */ |
| 146 | #ifndef LINK_SIZE |
| 147 | #define LINK_SIZE 2 |
| 148 | #endif |
| 149 | |
| 150 | /* Define to the sub-directory where libtool stores uninstalled libraries. */ |
| 151 | /* This is ignored unless you are using libtool. */ |
| 152 | #ifndef LT_OBJDIR |
| 153 | #define LT_OBJDIR ".libs/" |
| 154 | #endif |
| 155 | |
| 156 | /* The value of MATCH_LIMIT determines the default number of times the |
Elliott Hughes | 9bc971b | 2018-07-27 13:23:14 -0700 | [diff] [blame^] | 157 | pcre2_match() function can record a backtrack position during a single |
| 158 | matching attempt. There is a runtime interface for setting a different |
| 159 | limit. The limit exists in order to catch runaway regular expressions that |
| 160 | take for ever to determine that they do not match. The default is set very |
| 161 | large so that it does not accidentally catch legitimate cases. */ |
Janis Danisevskis | 53e448c | 2016-03-31 13:35:25 +0100 | [diff] [blame] | 162 | #ifndef MATCH_LIMIT |
| 163 | #define MATCH_LIMIT 10000000 |
| 164 | #endif |
| 165 | |
Elliott Hughes | 9bc971b | 2018-07-27 13:23:14 -0700 | [diff] [blame^] | 166 | /* The above limit applies to all backtracks, whether or not they are nested. |
| 167 | In some environments it is desirable to limit the nesting of backtracking |
| 168 | (that is, the depth of tree that is searched) more strictly, in order to |
| 169 | restrict the maximum amount of heap memory that is used. The value of |
| 170 | MATCH_LIMIT_DEPTH provides this facility. To have any useful effect, it |
| 171 | must be less than the value of MATCH_LIMIT. The default is to use the same |
| 172 | value as MATCH_LIMIT. There is a runtime method for setting a different |
| 173 | limit. */ |
| 174 | #ifndef MATCH_LIMIT_DEPTH |
| 175 | #define MATCH_LIMIT_DEPTH MATCH_LIMIT |
Janis Danisevskis | 53e448c | 2016-03-31 13:35:25 +0100 | [diff] [blame] | 176 | #endif |
| 177 | |
| 178 | /* This limit is parameterized just in case anybody ever wants to change it. |
| 179 | Care must be taken if it is increased, because it guards against integer |
| 180 | overflow caused by enormously large patterns. */ |
| 181 | #ifndef MAX_NAME_COUNT |
| 182 | #define MAX_NAME_COUNT 10000 |
| 183 | #endif |
| 184 | |
| 185 | /* This limit is parameterized just in case anybody ever wants to change it. |
| 186 | Care must be taken if it is increased, because it guards against integer |
| 187 | overflow caused by enormously large patterns. */ |
| 188 | #ifndef MAX_NAME_SIZE |
| 189 | #define MAX_NAME_SIZE 32 |
| 190 | #endif |
| 191 | |
| 192 | /* Defining NEVER_BACKSLASH_C locks out the use of \C in all patterns. */ |
| 193 | /* #undef NEVER_BACKSLASH_C */ |
| 194 | |
| 195 | /* The value of NEWLINE_DEFAULT determines the default newline character |
| 196 | sequence. PCRE2 client programs can override this by selecting other values |
Elliott Hughes | 9bc971b | 2018-07-27 13:23:14 -0700 | [diff] [blame^] | 197 | at run time. The valid values are 1 (CR), 2 (LF), 3 (CRLF), 4 (ANY), 5 |
| 198 | (ANYCRLF), and 6 (NUL). */ |
Janis Danisevskis | 53e448c | 2016-03-31 13:35:25 +0100 | [diff] [blame] | 199 | #ifndef NEWLINE_DEFAULT |
| 200 | #define NEWLINE_DEFAULT 2 |
| 201 | #endif |
| 202 | |
| 203 | /* Name of package */ |
| 204 | #define PACKAGE "pcre2" |
| 205 | |
| 206 | /* Define to the address where bug reports for this package should be sent. */ |
| 207 | #define PACKAGE_BUGREPORT "" |
| 208 | |
| 209 | /* Define to the full name of this package. */ |
| 210 | #define PACKAGE_NAME "PCRE2" |
| 211 | |
| 212 | /* Define to the full name and version of this package. */ |
Elliott Hughes | 9bc971b | 2018-07-27 13:23:14 -0700 | [diff] [blame^] | 213 | #define PACKAGE_STRING "PCRE2 10.31" |
Janis Danisevskis | 53e448c | 2016-03-31 13:35:25 +0100 | [diff] [blame] | 214 | |
| 215 | /* Define to the one symbol short name of this package. */ |
| 216 | #define PACKAGE_TARNAME "pcre2" |
| 217 | |
| 218 | /* Define to the home page for this package. */ |
| 219 | #define PACKAGE_URL "" |
| 220 | |
| 221 | /* Define to the version of this package. */ |
Elliott Hughes | 9bc971b | 2018-07-27 13:23:14 -0700 | [diff] [blame^] | 222 | #define PACKAGE_VERSION "10.31" |
Janis Danisevskis | 53e448c | 2016-03-31 13:35:25 +0100 | [diff] [blame] | 223 | |
| 224 | /* The value of PARENS_NEST_LIMIT specifies the maximum depth of nested |
| 225 | parentheses (of any kind) in a pattern. This limits the amount of system |
| 226 | stack that is used while compiling a pattern. */ |
| 227 | #ifndef PARENS_NEST_LIMIT |
| 228 | #define PARENS_NEST_LIMIT 250 |
| 229 | #endif |
| 230 | |
Elliott Hughes | 9bc971b | 2018-07-27 13:23:14 -0700 | [diff] [blame^] | 231 | /* The value of PCRE2GREP_BUFSIZE is the starting size of the buffer used by |
| 232 | pcre2grep to hold parts of the file it is searching. The buffer will be |
| 233 | expanded up to PCRE2GREP_MAX_BUFSIZE if necessary, for files containing |
| 234 | very long lines. The actual amount of memory used by pcre2grep is three |
| 235 | times this number, because it allows for the buffering of "before" and |
| 236 | "after" lines. */ |
Janis Danisevskis | 53e448c | 2016-03-31 13:35:25 +0100 | [diff] [blame] | 237 | #ifndef PCRE2GREP_BUFSIZE |
| 238 | #define PCRE2GREP_BUFSIZE 20480 |
| 239 | #endif |
| 240 | |
Elliott Hughes | 9bc971b | 2018-07-27 13:23:14 -0700 | [diff] [blame^] | 241 | /* The value of PCRE2GREP_MAX_BUFSIZE specifies the maximum size of the buffer |
| 242 | used by pcre2grep to hold parts of the file it is searching. The actual |
| 243 | amount of memory used by pcre2grep is three times this number, because it |
| 244 | allows for the buffering of "before" and "after" lines. */ |
| 245 | #ifndef PCRE2GREP_MAX_BUFSIZE |
| 246 | #define PCRE2GREP_MAX_BUFSIZE 1048576 |
| 247 | #endif |
| 248 | |
Janis Danisevskis | 53e448c | 2016-03-31 13:35:25 +0100 | [diff] [blame] | 249 | /* Define to any value to include debugging code. */ |
| 250 | /* #undef PCRE2_DEBUG */ |
| 251 | |
| 252 | /* If you are compiling for a system other than a Unix-like system or |
| 253 | Win32, and it needs some magic to be inserted before the definition |
| 254 | of a function that is exported by the library, define this macro to |
| 255 | contain the relevant magic. If you do not define this macro, a suitable |
| 256 | __declspec value is used for Windows systems; in other environments |
| 257 | "extern" is used for a C compiler and "extern C" for a C++ compiler. |
| 258 | This macro apears at the start of every exported function that is part |
| 259 | of the external API. It does not appear on functions that are "external" |
| 260 | in the C sense, but which are internal to the library. */ |
| 261 | /* #undef PCRE2_EXP_DEFN */ |
| 262 | |
| 263 | /* Define to any value if linking statically (TODO: make nice with Libtool) */ |
| 264 | /* #undef PCRE2_STATIC */ |
| 265 | |
| 266 | /* Define to necessary symbol if this constant uses a non-standard name on |
| 267 | your system. */ |
| 268 | /* #undef PTHREAD_CREATE_JOINABLE */ |
| 269 | |
Elliott Hughes | 9bc971b | 2018-07-27 13:23:14 -0700 | [diff] [blame^] | 270 | /* Define to any non-zero number to enable support for SELinux compatible |
| 271 | executable memory allocator in JIT. Note that this will have no effect |
| 272 | unless SUPPORT_JIT is also defined. */ |
| 273 | /* #undef SLJIT_PROT_EXECUTABLE_ALLOCATOR */ |
| 274 | |
Janis Danisevskis | 53e448c | 2016-03-31 13:35:25 +0100 | [diff] [blame] | 275 | /* Define to 1 if you have the ANSI C header files. */ |
| 276 | /* #undef STDC_HEADERS */ |
| 277 | |
| 278 | /* Define to any value to enable support for Just-In-Time compiling. */ |
| 279 | /* #undef SUPPORT_JIT */ |
| 280 | |
| 281 | /* Define to any value to allow pcre2grep to be linked with libbz2, so that it |
| 282 | is able to handle .bz2 files. */ |
| 283 | /* #undef SUPPORT_LIBBZ2 */ |
| 284 | |
| 285 | /* Define to any value to allow pcre2test to be linked with libedit. */ |
| 286 | /* #undef SUPPORT_LIBEDIT */ |
| 287 | |
| 288 | /* Define to any value to allow pcre2test to be linked with libreadline. */ |
| 289 | /* #undef SUPPORT_LIBREADLINE */ |
| 290 | |
| 291 | /* Define to any value to allow pcre2grep to be linked with libz, so that it |
| 292 | is able to handle .gz files. */ |
| 293 | /* #undef SUPPORT_LIBZ */ |
| 294 | |
Janis Danisevskis | 8b979b2 | 2016-08-15 16:09:16 +0100 | [diff] [blame] | 295 | /* Define to any value to enable callout script support in pcre2grep. */ |
| 296 | /* #undef SUPPORT_PCRE2GREP_CALLOUT */ |
| 297 | |
Elliott Hughes | 9bc971b | 2018-07-27 13:23:14 -0700 | [diff] [blame^] | 298 | /* Define to any value to enable JIT support in pcre2grep. Note that this will |
| 299 | have no effect unless SUPPORT_JIT is also defined. */ |
Janis Danisevskis | 53e448c | 2016-03-31 13:35:25 +0100 | [diff] [blame] | 300 | /* #undef SUPPORT_PCRE2GREP_JIT */ |
| 301 | |
| 302 | /* Define to any value to enable the 16 bit PCRE2 library. */ |
| 303 | /* #undef SUPPORT_PCRE2_16 */ |
| 304 | |
| 305 | /* Define to any value to enable the 32 bit PCRE2 library. */ |
| 306 | /* #undef SUPPORT_PCRE2_32 */ |
| 307 | |
| 308 | /* Define to any value to enable the 8 bit PCRE2 library. */ |
| 309 | /* #undef SUPPORT_PCRE2_8 */ |
| 310 | |
| 311 | /* Define to any value to enable support for Unicode and UTF encoding. This |
| 312 | will work even in an EBCDIC environment, but it is incompatible with the |
| 313 | EBCDIC macro. That is, PCRE2 can support *either* EBCDIC code *or* |
| 314 | ASCII/Unicode, but not both at once. */ |
| 315 | /* #undef SUPPORT_UNICODE */ |
| 316 | |
| 317 | /* Define to any value for valgrind support to find invalid memory reads. */ |
| 318 | /* #undef SUPPORT_VALGRIND */ |
| 319 | |
Elliott Hughes | 9bc971b | 2018-07-27 13:23:14 -0700 | [diff] [blame^] | 320 | /* Enable extensions on AIX 3, Interix. */ |
| 321 | #ifndef _ALL_SOURCE |
| 322 | # define _ALL_SOURCE 1 |
| 323 | #endif |
| 324 | /* Enable GNU extensions on systems that have them. */ |
| 325 | #ifndef _GNU_SOURCE |
| 326 | # define _GNU_SOURCE 1 |
| 327 | #endif |
| 328 | /* Enable threading extensions on Solaris. */ |
| 329 | #ifndef _POSIX_PTHREAD_SEMANTICS |
| 330 | # define _POSIX_PTHREAD_SEMANTICS 1 |
| 331 | #endif |
| 332 | /* Enable extensions on HP NonStop. */ |
| 333 | #ifndef _TANDEM_SOURCE |
| 334 | # define _TANDEM_SOURCE 1 |
| 335 | #endif |
| 336 | /* Enable general extensions on Solaris. */ |
| 337 | #ifndef __EXTENSIONS__ |
| 338 | # define __EXTENSIONS__ 1 |
| 339 | #endif |
| 340 | |
Janis Danisevskis | 53e448c | 2016-03-31 13:35:25 +0100 | [diff] [blame] | 341 | /* Version number of package */ |
Elliott Hughes | 9bc971b | 2018-07-27 13:23:14 -0700 | [diff] [blame^] | 342 | #define VERSION "10.31" |
| 343 | |
| 344 | /* Define to 1 if on MINIX. */ |
| 345 | /* #undef _MINIX */ |
| 346 | |
| 347 | /* Define to 2 if the system does not provide POSIX.1 features except with |
| 348 | this defined. */ |
| 349 | /* #undef _POSIX_1_SOURCE */ |
| 350 | |
| 351 | /* Define to 1 if you need to in order for `stat' and other things to work. */ |
| 352 | /* #undef _POSIX_SOURCE */ |
Janis Danisevskis | 53e448c | 2016-03-31 13:35:25 +0100 | [diff] [blame] | 353 | |
| 354 | /* Define to empty if `const' does not conform to ANSI C. */ |
| 355 | /* #undef const */ |
| 356 | |
| 357 | /* Define to the type of a signed integer type of width exactly 64 bits if |
| 358 | such a type exists and the standard includes do not define it. */ |
| 359 | /* #undef int64_t */ |
| 360 | |
| 361 | /* Define to `unsigned int' if <sys/types.h> does not define. */ |
| 362 | /* #undef size_t */ |