1 /* config.h. Generated from config.h.in by configure. */ 2 /* config.h.in. Generated from configure.ac by autoheader. */ 3 4 5 /* On Unix-like systems config.h.in is converted by "configure" into config.h. 6 Some other environments also support the use of "configure". PCRE is written in 7 Standard C, but there are a few non-standard things it can cope with, allowing 8 it to run on SunOS4 and other "close to standard" systems. 9 10 If you are going to build PCRE "by hand" on a system without "configure" you 11 should copy the distributed config.h.generic to config.h, and then set up the 12 macro definitions the way you need them. You must then add -DHAVE_CONFIG_H to 13 all of your compile commands, so that config.h is included at the start of 14 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 19 PCRE uses memmove() if HAVE_MEMMOVE is set to 1; otherwise it uses bcopy() if 20 HAVE_BCOPY is set to 1. If your system has neither bcopy() nor memmove(), set 21 them both to 0; an emulation function will be used. */ 22 23 /* By default, the \R escape sequence matches any Unicode line ending 24 character or sequence of characters. If BSR_ANYCRLF is defined, this is 25 changed so that backslash-R matches only CR, LF, or CRLF. The build- time 26 default can be overridden by the user of PCRE at runtime. On systems that 27 support it, "configure" can be used to override the default. */ 28 /* #undef BSR_ANYCRLF */ 29 30 /* If you are compiling for a system that uses EBCDIC instead of ASCII 31 character codes, define this macro as 1. On systems that can use 32 "configure", this can be done via --enable-ebcdic. PCRE will then assume 33 that all input strings are in EBCDIC. If you do not define this macro, PCRE 34 will assume input strings are ASCII or UTF-8 Unicode. It is not possible to 35 build a version of PCRE that supports both EBCDIC and UTF-8. */ 36 /* #undef EBCDIC */ 37 38 /* Define to 1 if you have the `bcopy' function. */ 39 #ifndef HAVE_BCOPY 40 #define HAVE_BCOPY 0 41 #endif 42 43 /* Define to 1 if you have the <bits/type_traits.h> header file. */ 44 /* #undef HAVE_BITS_TYPE_TRAITS_H */ 45 46 /* Define to 1 if you have the <bzlib.h> header file. */ 47 #ifndef HAVE_BZLIB_H 48 #define HAVE_BZLIB_H 0 49 #endif 50 51 /* Define to 1 if you have the <dirent.h> header file. */ 52 #ifndef HAVE_DIRENT_H 53 #define HAVE_DIRENT_H 0 54 #endif 55 56 /* Define to 1 if you have the <dlfcn.h> header file. */ 57 #ifndef HAVE_DLFCN_H 58 #define HAVE_DLFCN_H 0 59 #endif 60 61 /* Define to 1 if you have the <inttypes.h> header file. */ 62 #ifndef HAVE_INTTYPES_H 63 #define HAVE_INTTYPES_H 0 64 #endif 65 66 /* Define to 1 if you have the <limits.h> header file. */ 67 #ifndef HAVE_LIMITS_H 68 #define HAVE_LIMITS_H 0 69 #endif 70 71 /* Define to 1 if the system has the type `long long'. */ 72 #ifndef HAVE_LONG_LONG 73 #define HAVE_LONG_LONG 1 74 #endif 75 76 /* Define to 1 if you have the `memmove' function. */ 77 #ifndef HAVE_MEMMOVE 78 #define HAVE_MEMMOVE 1 79 #endif 80 81 /* Define to 1 if you have the <memory.h> header file. */ 82 #ifndef HAVE_MEMORY_H 83 #define HAVE_MEMORY_H 0 84 #endif 85 86 /* Define to 1 if you have the <readline/history.h> header file. */ 87 #ifndef HAVE_READLINE_HISTORY_H 88 #define HAVE_READLINE_HISTORY_H 0 89 #endif 90 91 /* Define to 1 if you have the <readline/readline.h> header file. */ 92 #ifndef HAVE_READLINE_READLINE_H 93 #define HAVE_READLINE_READLINE_H 0 94 #endif 95 96 /* Define to 1 if you have the <stdint.h> header file. */ 97 #ifndef HAVE_STDINT_H 98 #define HAVE_STDINT_H 0 99 #endif 100 101 /* Define to 1 if you have the <stdlib.h> header file. */ 102 #ifndef HAVE_STDLIB_H 103 #define HAVE_STDLIB_H 0 104 #endif 105 106 /* Define to 1 if you have the `strerror' function. */ 107 #ifndef HAVE_STRERROR 108 #define HAVE_STRERROR 1 109 #endif 110 111 /* Define to 1 if you have the <string> header file. */ 112 #ifndef HAVE_STRING 113 #define HAVE_STRING 0 114 #endif 115 116 /* Define to 1 if you have the <strings.h> header file. */ 117 #ifndef HAVE_STRINGS_H 118 #define HAVE_STRINGS_H 0 119 #endif 120 121 /* Define to 1 if you have the <string.h> header file. */ 122 #ifndef HAVE_STRING_H 123 #define HAVE_STRING_H 0 124 #endif 125 126 /* Define to 1 if you have `strtoimax'. */ 127 /* #undef HAVE_STRTOIMAX */ 128 129 /* Define to 1 if you have `strtoll'. */ 130 /* #undef HAVE_STRTOLL */ 131 132 /* Define to 1 if you have `strtoq'. */ 133 #ifndef HAVE_STRTOQ 134 #define HAVE_STRTOQ 0 135 #endif 136 137 /* Define to 1 if you have the <sys/stat.h> header file. */ 138 #ifndef HAVE_SYS_STAT_H 139 #define HAVE_SYS_STAT_H 1 140 #endif 141 142 /* Define to 1 if you have the <sys/types.h> header file. */ 143 #ifndef HAVE_SYS_TYPES_H 144 #define HAVE_SYS_TYPES_H 1 145 #endif 146 147 /* Define to 1 if you have the <type_traits.h> header file. */ 148 /* #undef HAVE_TYPE_TRAITS_H */ 149 150 /* Define to 1 if you have the <unistd.h> header file. */ 151 #ifndef HAVE_UNISTD_H 152 #define HAVE_UNISTD_H 0 153 #endif 154 155 /* Define to 1 if the system has the type `unsigned long long'. */ 156 #ifndef HAVE_UNSIGNED_LONG_LONG 157 #define HAVE_UNSIGNED_LONG_LONG 1 158 #endif 159 160 /* Define to 1 if you have the <windows.h> header file. */ 161 /* #undef HAVE_WINDOWS_H */ 162 163 /* Define to 1 if you have the <zlib.h> header file. */ 164 #ifndef HAVE_ZLIB_H 165 #define HAVE_ZLIB_H 0 166 #endif 167 168 /* Define to 1 if you have `_strtoi64'. */ 169 /* #undef HAVE__STRTOI64 */ 170 171 /* The value of LINK_SIZE determines the number of bytes used to store links 172 as offsets within the compiled regex. The default is 2, which allows for 173 compiled patterns up to 64K long. This covers the vast majority of cases. 174 However, PCRE can also be compiled to use 3 or 4 bytes instead. This allows 175 for longer patterns in extreme cases. On systems that support it, 176 "configure" can be used to override this default. */ 177 #ifndef LINK_SIZE 178 #define LINK_SIZE 2 179 #endif 180 181 /* Define to the sub-directory in which libtool stores uninstalled libraries. 182 */ 183 /* 184 #ifndef LT_OBJDIR 185 #define LT_OBJDIR ".libs/" 186 #endif 187 */ 188 189 /* The value of MATCH_LIMIT determines the default number of times the 190 internal match() function can be called during a single execution of 191 pcre_exec(). There is a runtime interface for setting a different limit. 192 The limit exists in order to catch runaway regular expressions that take 193 for ever to determine that they do not match. The default is set very large 194 so that it does not accidentally catch legitimate cases. On systems that 195 support it, "configure" can be used to override this default default. */ 196 #ifndef MATCH_LIMIT 197 #define MATCH_LIMIT 10000000 198 #endif 199 200 /* The above limit applies to all calls of match(), whether or not they 201 increase the recursion depth. In some environments it is desirable to limit 202 the depth of recursive calls of match() more strictly, in order to restrict 203 the maximum amount of stack (or heap, if NO_RECURSE is defined) that is 204 used. The value of MATCH_LIMIT_RECURSION applies only to recursive calls of 205 match(). To have any useful effect, it must be less than the value of 206 MATCH_LIMIT. The default is to use the same value as MATCH_LIMIT. There is 207 a runtime method for setting a different limit. On systems that support it, 208 "configure" can be used to override the default. */ 209 #ifndef MATCH_LIMIT_RECURSION 210 #define MATCH_LIMIT_RECURSION MATCH_LIMIT 211 #endif 212 213 /* This limit is parameterized just in case anybody ever wants to change it. 214 Care must be taken if it is increased, because it guards against integer 215 overflow caused by enormously large patterns. */ 216 #ifndef MAX_NAME_COUNT 217 #define MAX_NAME_COUNT 10000 218 #endif 219 220 /* This limit is parameterized just in case anybody ever wants to change it. 221 Care must be taken if it is increased, because it guards against integer 222 overflow caused by enormously large patterns. */ 223 #ifndef MAX_NAME_SIZE 224 #define MAX_NAME_SIZE 32 225 #endif 226 227 /* The value of NEWLINE determines the newline character sequence. On systems 228 that support it, "configure" can be used to override the default, which is 229 10. The possible values are 10 (LF), 13 (CR), 3338 (CRLF), -1 (ANY), or -2 230 (ANYCRLF). */ 231 #ifndef NEWLINE 232 #define NEWLINE 10 233 #endif 234 235 /* PCRE uses recursive function calls to handle backtracking while matching. 236 This can sometimes be a problem on systems that have stacks of limited 237 size. Define NO_RECURSE to get a version that doesn't use recursion in the 238 match() function; instead it creates its own stack by steam using 239 pcre_recurse_malloc() to obtain memory from the heap. For more detail, see 240 the comments and other stuff just above the match() function. On systems 241 that support it, "configure" can be used to set this in the Makefile (use 242 --disable-stack-for-recursion). */ 243 /* #undef NO_RECURSE */ 244 245 /* Name of package */ 246 #define PACKAGE "pcre" 247 248 /* Define to the address where bug reports for this package should be sent. */ 249 #define PACKAGE_BUGREPORT "" 250 251 /* Define to the full name of this package. */ 252 #define PACKAGE_NAME "PCRE" 253 254 /* Define to the full name and version of this package. */ 255 #define PACKAGE_STRING "PCRE 8.12" 256 257 /* Define to the one symbol short name of this package. */ 258 #define PACKAGE_TARNAME "pcre" 259 260 /* Define to the home page for this package. */ 261 #define PACKAGE_URL "" 262 263 /* Define to the version of this package. */ 264 #define PACKAGE_VERSION "8.12" 265 266 267 /* If you are compiling for a system other than a Unix-like system or 268 Win32, and it needs some magic to be inserted before the definition 269 of a function that is exported by the library, define this macro to 270 contain the relevant magic. If you do not define this macro, it 271 defaults to "extern" for a C compiler and "extern C" for a C++ 272 compiler on non-Win32 systems. This macro apears at the start of 273 every exported function that is part of the external API. It does 274 not appear on functions that are "external" in the C sense, but 275 which are internal to the library. */ 276 /* #undef PCRE_EXP_DEFN */ 277 278 /* Define if linking statically (TODO: make nice with Libtool) */ 279 /* #undef PCRE_STATIC */ 280 #define PCRE_STATIC 1 281 282 /* When calling PCRE via the POSIX interface, additional working storage is 283 required for holding the pointers to capturing substrings because PCRE 284 requires three integers per substring, whereas the POSIX interface provides 285 only two. If the number of expected substrings is small, the wrapper 286 function uses space on the stack, because this is faster than using 287 malloc() for each call. The threshold above which the stack is no longer 288 used is defined by POSIX_MALLOC_THRESHOLD. On systems that support it, 289 "configure" can be used to override this default. */ 290 #ifndef POSIX_MALLOC_THRESHOLD 291 #define POSIX_MALLOC_THRESHOLD 10 292 #endif 293 294 /* Define to 1 if you have the ANSI C header files. */ 295 #ifndef STDC_HEADERS 296 #define STDC_HEADERS 0 297 #endif 298 299 /* Define to allow pcregrep to be linked with libbz2, so that it is able to 300 handle .bz2 files. */ 301 /* #undef SUPPORT_LIBBZ2 */ 302 303 /* Define to allow pcretest to be linked with libreadline. */ 304 /* #undef SUPPORT_LIBREADLINE */ 305 306 /* Define to allow pcregrep to be linked with libz, so that it is able to 307 handle .gz files. */ 308 /* #undef SUPPORT_LIBZ */ 309 310 /* Define to enable support for Unicode properties */ 311 /* #undef SUPPORT_UCP */ 312 313 /* Define to enable support for the UTF-8 Unicode encoding. This will work 314 even in an EBCDIC environment, but it is incompatible with the EBCDIC 315 macro. That is, PCRE can support *either* EBCDIC code *or* ASCII/UTF-8, but 316 not both at once. */ 317 /* #undef SUPPORT_UTF8 */ 318 319 /* Version number of package */ 320 #ifndef VERSION 321 #define VERSION "8.12" 322 #endif 323 324 /* Define to empty if `const' does not conform to ANSI C. */ 325 /* #undef const */ 326 327 /* Define to the type of a signed integer type of width exactly 64 bits if 328 such a type exists and the standard includes do not define it. */ 329 /* #undef int64_t */ 330 331 /* Define to `unsigned int' if <sys/types.h> does not define. */ 332 /* #undef size_t */ 333