/* src/config.h. Generated from config.h.in by configure. */1/* src/config.h.in. Generated from configure.ac by autoheader. */23/* PCRE2 is written in Standard C, but there are a few non-standard things it4can cope with, allowing it to run on SunOS4 and other "close to standard"5systems.67In environments that support the GNU autotools, config.h.in is converted into8config.h by the "configure" script. In environments that use CMake,9config-cmake.in is converted into config.h. If you are going to build PCRE2 "by10hand" without using "configure" or CMake, you should copy the distributed11config.h.generic to config.h, and edit the macro definitions to be the way you12need them. You must then add -DHAVE_CONFIG_H to all of your compile commands,13so that config.h is included at the start of every source.1415Alternatively, you can avoid editing by using -D on the compiler command line16to set the macro values. In this case, you do not have to set -DHAVE_CONFIG_H,17but if you do, default values will be taken from config.h for non-boolean18macros that are not defined on the command line.1920Boolean macros such as HAVE_STDLIB_H and SUPPORT_PCRE2_8 should either be21defined (conventionally to 1) for TRUE, and not defined at all for FALSE. All22such macros are listed as a commented #undef in config.h.generic. Macros such23as MATCH_LIMIT, whose actual value is relevant, have defaults defined, but are24surrounded by #ifndef/#endif lines so that the value can be overridden by -D. */2526/* By default, the \R escape sequence matches any Unicode line ending27character or sequence of characters. If BSR_ANYCRLF is defined (to any28value), this is changed so that backslash-R matches only CR, LF, or CRLF.29The build-time default can be overridden by the user of PCRE2 at runtime.30*/31/* #undef BSR_ANYCRLF */3233/* Define to any value to disable the use of the z and t modifiers in34formatting settings such as %zu or %td (this is rarely needed). */35/* #undef DISABLE_PERCENT_ZT */3637/* If you are compiling for a system that uses EBCDIC instead of ASCII38character codes, define this macro to any value. When EBCDIC is set, PCRE239assumes that all input strings are in EBCDIC. If you do not define this40macro, PCRE2 will assume input strings are ASCII or UTF-8/16/32 Unicode. It41is not possible to build a version of PCRE2 that supports both EBCDIC and42ASCII or UTF-8/16/32. */43/* #undef EBCDIC */4445/* To force an EBCDIC environment, define this macro to make the core PCRE246library functions use EBCDIC codepage 1047, regardless of whether the47compiler supports it using C character literals. */48/* #undef EBCDIC_IGNORING_COMPILER */4950/* In an EBCDIC environment, define this macro to any value to arrange for the51NL character to be 0x25 instead of the default 0x15. NL plays the role that52LF does in an ASCII/Unicode environment. */53/* #undef EBCDIC_NL25 */5455/* Define to 1 if you have the <assert.h> header file. */56/* #undef HAVE_ASSERT_H */5758/* Define this if your compiler supports __attribute__((uninitialized)) */59/* #undef HAVE_ATTRIBUTE_UNINITIALIZED */6061/* Define this if your compiler provides __assume() */62/* #undef HAVE_BUILTIN_ASSUME */6364/* Define this if your compiler provides __builtin_mul_overflow() */65/* #undef HAVE_BUILTIN_MUL_OVERFLOW */6667/* Define this if your compiler provides __builtin_unreachable() */68/* #undef HAVE_BUILTIN_UNREACHABLE */6970/* Define to 1 if you have the <bzlib.h> header file. */71/* #undef HAVE_BZLIB_H */7273/* Define to 1 if you have the <dirent.h> header file. */74/* #undef HAVE_DIRENT_H */7576/* Define to 1 if you have the <dlfcn.h> header file. */77/* #undef HAVE_DLFCN_H */7879/* Define to 1 if you have the <editline/readline.h> header file. */80/* #undef HAVE_EDITLINE_READLINE_H */8182/* Define to 1 if you have the <edit/readline/readline.h> header file. */83/* #undef HAVE_EDIT_READLINE_READLINE_H */8485/* Define to 1 if you have the <inttypes.h> header file. */86/* #undef HAVE_INTTYPES_H */8788/* Define to 1 if you have the <limits.h> header file. */89/* #undef HAVE_LIMITS_H */9091/* Define to 1 if you have the `memfd_create' function. */92/* #undef HAVE_MEMFD_CREATE */9394/* Define to 1 if you have the <minix/config.h> header file. */95/* #undef HAVE_MINIX_CONFIG_H */9697/* Define to 1 if you have the `mkostemp' function. */98/* #undef HAVE_MKOSTEMP */99100/* Define if you have POSIX threads libraries and header files. */101/* #undef HAVE_PTHREAD */102103/* Have PTHREAD_PRIO_INHERIT. */104/* #undef HAVE_PTHREAD_PRIO_INHERIT */105106/* Define to 1 if you have the <readline.h> header file. */107/* #undef HAVE_READLINE_H */108109/* Define to 1 if you have the <readline/history.h> header file. */110/* #undef HAVE_READLINE_HISTORY_H */111112/* Define to 1 if you have the <readline/readline.h> header file. */113/* #undef HAVE_READLINE_READLINE_H */114115/* Define to 1 if you have the `realpath' function. */116/* #undef HAVE_REALPATH */117118/* Define to 1 if you have the `secure_getenv' function. */119/* #undef HAVE_SECURE_GETENV */120121/* Define to 1 if you have the <stdint.h> header file. */122/* #undef HAVE_STDINT_H */123124/* Define to 1 if you have the <stdio.h> header file. */125/* #undef HAVE_STDIO_H */126127/* Define to 1 if you have the <stdlib.h> header file. */128/* #undef HAVE_STDLIB_H */129130/* Define to 1 if you have the <strings.h> header file. */131/* #undef HAVE_STRINGS_H */132133/* Define to 1 if you have the <string.h> header file. */134/* #undef HAVE_STRING_H */135136/* Define to 1 if you have the <sys/stat.h> header file. */137/* #undef HAVE_SYS_STAT_H */138139/* Define to 1 if you have the <sys/types.h> header file. */140/* #undef HAVE_SYS_TYPES_H */141142/* Define to 1 if you have the <sys/wait.h> header file. */143/* #undef HAVE_SYS_WAIT_H */144145/* Define to 1 if you have the <unistd.h> header file. */146/* #undef HAVE_UNISTD_H */147148/* Define to 1 if the compiler supports GCC compatible visibility149declarations. */150/* #undef HAVE_VISIBILITY */151152/* Define to 1 if you have the <wchar.h> header file. */153/* #undef HAVE_WCHAR_H */154155/* Define to 1 if you have the <windows.h> header file. */156/* #undef HAVE_WINDOWS_H */157158/* Define to 1 if you have the <zlib.h> header file. */159/* #undef HAVE_ZLIB_H */160161/* This limits the amount of memory that may be used while matching a pattern.162It applies to both pcre2_match() and pcre2_dfa_match(). It does not apply163to JIT matching. The value is in kibibytes (units of 1024 bytes). */164#ifndef HEAP_LIMIT165#define HEAP_LIMIT 20000000166#endif167168/* The value of LINK_SIZE determines the number of bytes used to store links169as offsets within the compiled regex. The default is 2, which allows for170compiled patterns up to 65535 code units long. This covers the vast171majority of cases. However, PCRE2 can also be compiled to use 3 or 4 bytes172instead. This allows for longer patterns in extreme cases. */173#ifndef LINK_SIZE174#define LINK_SIZE 2175#endif176177/* Define to the sub-directory where libtool stores uninstalled libraries. */178/* This is ignored unless you are using libtool. */179#ifndef LT_OBJDIR180#define LT_OBJDIR ".libs/"181#endif182183/* The value of MATCH_LIMIT determines the default number of times the184pcre2_match() function can record a backtrack position during a single185matching attempt. The value is also used to limit a loop counter in186pcre2_dfa_match(). There is a runtime interface for setting a different187limit. The limit exists in order to catch runaway regular expressions that188take forever to determine that they do not match. The default is set very189large so that it does not accidentally catch legitimate cases. */190#ifndef MATCH_LIMIT191#define MATCH_LIMIT 10000000192#endif193194/* The above limit applies to all backtracks, whether or not they are nested.195In some environments it is desirable to limit the nesting of backtracking196(that is, the depth of tree that is searched) more strictly, in order to197restrict the maximum amount of heap memory that is used. The value of198MATCH_LIMIT_DEPTH provides this facility. To have any useful effect, it199must be less than the value of MATCH_LIMIT. The default is to use the same200value as MATCH_LIMIT. There is a runtime method for setting a different201limit. In the case of pcre2_dfa_match(), this limit controls the depth of202the internal nested function calls that are used for pattern recursions,203lookarounds, and atomic groups. */204#ifndef MATCH_LIMIT_DEPTH205#define MATCH_LIMIT_DEPTH MATCH_LIMIT206#endif207208/* This limit is parameterized just in case anybody ever wants to change it.209Care must be taken if it is increased, because it guards against integer210overflow caused by enormously large patterns. */211#ifndef MAX_NAME_COUNT212#define MAX_NAME_COUNT 10000213#endif214215/* This limit is parameterized just in case anybody ever wants to change it.216Care must be taken if it is increased, because it guards against integer217overflow caused by enormously large patterns. */218#ifndef MAX_NAME_SIZE219#define MAX_NAME_SIZE 128220#endif221222/* The value of MAX_VARLOOKBEHIND specifies the default maximum length, in223characters, for a variable-length lookbehind assertion. */224#ifndef MAX_VARLOOKBEHIND225#define MAX_VARLOOKBEHIND 255226#endif227228/* Defining NEVER_BACKSLASH_C locks out the use of \C in all patterns. */229/* #undef NEVER_BACKSLASH_C */230231/* The value of NEWLINE_DEFAULT determines the default newline character232sequence. PCRE2 client programs can override this by selecting other values233at run time. The valid values are 1 (CR), 2 (LF), 3 (CRLF), 4 (ANY), 5234(ANYCRLF), and 6 (NUL). */235#ifndef NEWLINE_DEFAULT236#define NEWLINE_DEFAULT 2237#endif238239/* Name of package */240#define PACKAGE "pcre2"241242/* Define to the address where bug reports for this package should be sent. */243#define PACKAGE_BUGREPORT ""244245/* Define to the full name of this package. */246#define PACKAGE_NAME "PCRE2"247248/* Define to the full name and version of this package. */249#define PACKAGE_STRING "PCRE2 10.47"250251/* Define to the one symbol short name of this package. */252#define PACKAGE_TARNAME "pcre2"253254/* Define to the home page for this package. */255#define PACKAGE_URL ""256257/* Define to the version of this package. */258#define PACKAGE_VERSION "10.47"259260/* The value of PARENS_NEST_LIMIT specifies the maximum depth of nested261parentheses (of any kind) in a pattern. This limits the amount of system262stack that is used while compiling a pattern. */263#ifndef PARENS_NEST_LIMIT264#define PARENS_NEST_LIMIT 250265#endif266267/* The value of PCRE2GREP_BUFSIZE is the starting size of the buffer used by268pcre2grep to hold parts of the file it is searching. The buffer will be269expanded up to PCRE2GREP_MAX_BUFSIZE if necessary, for files containing270very long lines. The actual amount of memory used by pcre2grep is three271times this number, because it allows for the buffering of "before" and272"after" lines. */273#ifndef PCRE2GREP_BUFSIZE274#define PCRE2GREP_BUFSIZE 20480275#endif276277/* The value of PCRE2GREP_MAX_BUFSIZE specifies the maximum size of the buffer278used by pcre2grep to hold parts of the file it is searching. The actual279amount of memory used by pcre2grep is three times this number, because it280allows for the buffering of "before" and "after" lines. */281#ifndef PCRE2GREP_MAX_BUFSIZE282#define PCRE2GREP_MAX_BUFSIZE 1048576283#endif284285/* See PCRE2_EXP_DEFN; but this is applied to functions in the libpcre2-posix286library. */287/* #undef PCRE2POSIX_EXP_DEFN */288289/* Define to any value if linking libpcre2-posix dynamically. Ideally, if both290static and shared libraries are being built, then PCRE2POSIX_SHARED would291be defined only for the shared build. Indeed, this is a requirement on292Windows. However, when building with Autoconf and libtool, we compile the293sources once only to create both the static and shared library, so in this294case, PCRE2POSIX_SHARED should only be defined if the shared library is295being built, regardless of whether or not the static library is also being296built. */297/* #undef PCRE2POSIX_SHARED */298299/* Define to any value to include debugging code. */300/* #undef PCRE2_DEBUG */301302/* Define to the annotation for making a symbol visible. */303#define PCRE2_EXPORT304305/* If you are compiling for a system other than a Unix-like system or306Win32, and it needs some magic to be inserted before the definition307of a function that is exported by the library, define this macro to308contain the relevant magic. If you do not define this macro, a suitable309__declspec value is used for Windows systems; in other environments310a compiler relevant "extern" is used with any "visibility" related311attributes from PCRE2_EXPORT included.312This macro apears at the start of every exported function that is part313of the external API. It does not appear on functions that are "external"314in the C sense, but which are internal to the library. */315/* #undef PCRE2_EXP_DEFN */316317/* Define to any value if linking statically. Ideally, if both static and318shared libraries are being built, then PCRE2_STATIC would be defined only319for the static build. Indeed, this is a requirement on Windows. With320Autoconf and libtool however, it is idiomatic to compile the sources once321to create both the static and shared library, so in this case, PCRE2_STATIC322should only be defined if no shared library is being built. */323/* #undef PCRE2_STATIC */324325/* Define to necessary symbol if this constant uses a non-standard name on326your system. */327/* #undef PTHREAD_CREATE_JOINABLE */328329/* Define to any non-zero number to enable support for SELinux compatible330executable memory allocator in JIT. Note that this will have no effect331unless SUPPORT_JIT is also defined. */332/* #undef SLJIT_PROT_EXECUTABLE_ALLOCATOR */333334/* Define to 1 if all of the C90 standard headers exist (not just the ones335required in a freestanding environment). This macro is provided for336backward compatibility; new code need not use it. */337/* #undef STDC_HEADERS */338339/* Define to any value to enable differential fuzzing support. */340/* #undef SUPPORT_DIFF_FUZZ */341342/* Define to any value to enable support for Just-In-Time compiling. */343/* #undef SUPPORT_JIT */344345/* Define to any value to allow pcre2grep to be linked with libbz2, so that it346is able to handle .bz2 files. */347/* #undef SUPPORT_LIBBZ2 */348349/* Define to any value to allow pcre2test to be linked with libedit. */350/* #undef SUPPORT_LIBEDIT */351352/* Define to any value to allow pcre2test to be linked with libreadline. */353/* #undef SUPPORT_LIBREADLINE */354355/* Define to any value to allow pcre2grep to be linked with libz, so that it356is able to handle .gz files. */357/* #undef SUPPORT_LIBZ */358359/* Define to any value to enable callout script support in pcre2grep. */360/* #undef SUPPORT_PCRE2GREP_CALLOUT */361362/* Define to any value to enable fork support in pcre2grep callout scripts.363This will have no effect unless SUPPORT_PCRE2GREP_CALLOUT is also defined.364*/365/* #undef SUPPORT_PCRE2GREP_CALLOUT_FORK */366367/* Define to any value to enable JIT support in pcre2grep. Note that this will368have no effect unless SUPPORT_JIT is also defined. */369/* #undef SUPPORT_PCRE2GREP_JIT */370371/* Define to any value to enable the 16 bit PCRE2 library. */372/* #undef SUPPORT_PCRE2_16 */373374/* Define to any value to enable the 32 bit PCRE2 library. */375/* #undef SUPPORT_PCRE2_32 */376377/* Define to any value to enable the 8 bit PCRE2 library. */378/* #undef SUPPORT_PCRE2_8 */379380/* Define to any value to enable support for Unicode and UTF encoding. This381will work even in an EBCDIC environment, but it is incompatible with the382EBCDIC macro. That is, PCRE2 can support *either* EBCDIC code *or*383ASCII/Unicode, but not both at once. */384/* #undef SUPPORT_UNICODE */385386/* Define to any value for valgrind support to find invalid memory reads. */387/* #undef SUPPORT_VALGRIND */388389/* Enable extensions on AIX 3, Interix. */390#ifndef _ALL_SOURCE391# define _ALL_SOURCE 1392#endif393/* Enable general extensions on macOS. */394#ifndef _DARWIN_C_SOURCE395# define _DARWIN_C_SOURCE 1396#endif397/* Enable general extensions on Solaris. */398#ifndef __EXTENSIONS__399# define __EXTENSIONS__ 1400#endif401/* Enable GNU extensions on systems that have them. */402#ifndef _GNU_SOURCE403# define _GNU_SOURCE 1404#endif405/* Enable X/Open compliant socket functions that do not require linking406with -lxnet on HP-UX 11.11. */407#ifndef _HPUX_ALT_XOPEN_SOCKET_API408# define _HPUX_ALT_XOPEN_SOCKET_API 1409#endif410/* Identify the host operating system as Minix.411This macro does not affect the system headers' behavior.412A future release of Autoconf may stop defining this macro. */413#ifndef _MINIX414/* # undef _MINIX */415#endif416/* Enable general extensions on NetBSD.417Enable NetBSD compatibility extensions on Minix. */418#ifndef _NETBSD_SOURCE419# define _NETBSD_SOURCE 1420#endif421/* Enable OpenBSD compatibility extensions on NetBSD.422Oddly enough, this does nothing on OpenBSD. */423#ifndef _OPENBSD_SOURCE424# define _OPENBSD_SOURCE 1425#endif426/* Define to 1 if needed for POSIX-compatible behavior. */427#ifndef _POSIX_SOURCE428/* # undef _POSIX_SOURCE */429#endif430/* Define to 2 if needed for POSIX-compatible behavior. */431#ifndef _POSIX_1_SOURCE432/* # undef _POSIX_1_SOURCE */433#endif434/* Enable POSIX-compatible threading on Solaris. */435#ifndef _POSIX_PTHREAD_SEMANTICS436# define _POSIX_PTHREAD_SEMANTICS 1437#endif438/* Enable extensions specified by ISO/IEC TS 18661-5:2014. */439#ifndef __STDC_WANT_IEC_60559_ATTRIBS_EXT__440# define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1441#endif442/* Enable extensions specified by ISO/IEC TS 18661-1:2014. */443#ifndef __STDC_WANT_IEC_60559_BFP_EXT__444# define __STDC_WANT_IEC_60559_BFP_EXT__ 1445#endif446/* Enable extensions specified by ISO/IEC TS 18661-2:2015. */447#ifndef __STDC_WANT_IEC_60559_DFP_EXT__448# define __STDC_WANT_IEC_60559_DFP_EXT__ 1449#endif450/* Enable extensions specified by ISO/IEC TS 18661-4:2015. */451#ifndef __STDC_WANT_IEC_60559_FUNCS_EXT__452# define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1453#endif454/* Enable extensions specified by ISO/IEC TS 18661-3:2015. */455#ifndef __STDC_WANT_IEC_60559_TYPES_EXT__456# define __STDC_WANT_IEC_60559_TYPES_EXT__ 1457#endif458/* Enable extensions specified by ISO/IEC TR 24731-2:2010. */459#ifndef __STDC_WANT_LIB_EXT2__460# define __STDC_WANT_LIB_EXT2__ 1461#endif462/* Enable extensions specified by ISO/IEC 24747:2009. */463#ifndef __STDC_WANT_MATH_SPEC_FUNCS__464# define __STDC_WANT_MATH_SPEC_FUNCS__ 1465#endif466/* Enable extensions on HP NonStop. */467#ifndef _TANDEM_SOURCE468# define _TANDEM_SOURCE 1469#endif470/* Enable X/Open extensions. Define to 500 only if necessary471to make mbstate_t available. */472#ifndef _XOPEN_SOURCE473/* # undef _XOPEN_SOURCE */474#endif475476/* Version number of package */477#define VERSION "10.47"478479/* Number of bits in a file offset, on hosts where this is settable. */480/* #undef _FILE_OFFSET_BITS */481482/* Define for large files, on AIX-style hosts. */483/* #undef _LARGE_FILES */484485/* Define to empty if `const' does not conform to ANSI C. */486/* #undef const */487488/* Define to the type of a signed integer type of width exactly 64 bits if489such a type exists and the standard includes do not define it. */490/* #undef int64_t */491492/* Define to `unsigned int' if <sys/types.h> does not define. */493/* #undef size_t */494495496