config.h 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363
  1. /* src/config.h. Generated from config.h.in by configure. */
  2. /* src/config.h.in. Generated from configure.ac by autoheader. */
  3. /* PCRE2 is written in Standard C, but there are a few non-standard things it
  4. can cope with, allowing it to run on SunOS4 and other "close to standard"
  5. systems.
  6. In environments that support the GNU autotools, config.h.in is converted into
  7. config.h by the "configure" script. In environments that use CMake,
  8. config-cmake.in is converted into config.h. If you are going to build PCRE2 "by
  9. hand" without using "configure" or CMake, you should copy the distributed
  10. config.h.generic to config.h, and edit the macro definitions to be the way you
  11. need them. You must then add -DHAVE_CONFIG_H to all of your compile commands,
  12. so that config.h is included at the start of every source.
  13. Alternatively, you can avoid editing by using -D on the compiler command line
  14. to set the macro values. In this case, you do not have to set -DHAVE_CONFIG_H,
  15. but if you do, default values will be taken from config.h for non-boolean
  16. macros that are not defined on the command line.
  17. Boolean macros such as HAVE_STDLIB_H and SUPPORT_PCRE2_8 should either be defined
  18. (conventionally to 1) for TRUE, and not defined at all for FALSE. All such
  19. macros are listed as a commented #undef in config.h.generic. Macros such as
  20. MATCH_LIMIT, whose actual value is relevant, have defaults defined, but are
  21. surrounded by #ifndef/#endif lines so that the value can be overridden by -D.
  22. PCRE2 uses memmove() if HAVE_MEMMOVE is defined; otherwise it uses bcopy() if
  23. HAVE_BCOPY is defined. If your system has neither bcopy() nor memmove(), make
  24. sure both macros are undefined; an emulation function will then be used. */
  25. /* By default, the \R escape sequence matches any Unicode line ending
  26. character or sequence of characters. If BSR_ANYCRLF is defined (to any
  27. value), this is changed so that backslash-R matches only CR, LF, or CRLF.
  28. The build-time default can be overridden by the user of PCRE2 at runtime.
  29. */
  30. /* #undef BSR_ANYCRLF */
  31. /* If you are compiling for a system that uses EBCDIC instead of ASCII
  32. character codes, define this macro to any value. When EBCDIC is set, PCRE2
  33. assumes that all input strings are in EBCDIC. If you do not define this
  34. macro, PCRE2 will assume input strings are ASCII or UTF-8/16/32 Unicode. It
  35. is not possible to build a version of PCRE2 that supports both EBCDIC and
  36. UTF-8/16/32. */
  37. /* #undef EBCDIC */
  38. /* In an EBCDIC environment, define this macro to any value to arrange for the
  39. NL character to be 0x25 instead of the default 0x15. NL plays the role that
  40. LF does in an ASCII/Unicode environment. */
  41. /* #undef EBCDIC_NL25 */
  42. /* Define to 1 if you have the `bcopy' function. */
  43. /* #undef HAVE_BCOPY */
  44. /* Define to 1 if you have the <bzlib.h> header file. */
  45. /* #undef HAVE_BZLIB_H */
  46. /* Define to 1 if you have the <dirent.h> header file. */
  47. /* #undef HAVE_DIRENT_H */
  48. /* Define to 1 if you have the <dlfcn.h> header file. */
  49. /* #undef HAVE_DLFCN_H */
  50. /* Define to 1 if you have the <editline/readline.h> header file. */
  51. /* #undef HAVE_EDITLINE_READLINE_H */
  52. /* Define to 1 if you have the <edit/readline/readline.h> header file. */
  53. /* #undef HAVE_EDIT_READLINE_READLINE_H */
  54. /* Define to 1 if you have the <inttypes.h> header file. */
  55. /* #undef HAVE_INTTYPES_H */
  56. /* Define to 1 if you have the <limits.h> header file. */
  57. /* #undef HAVE_LIMITS_H */
  58. /* Define to 1 if you have the `memmove' function. */
  59. /* #undef HAVE_MEMMOVE */
  60. /* Define to 1 if you have the <memory.h> header file. */
  61. /* #undef HAVE_MEMORY_H */
  62. /* Define to 1 if you have the `mkostemp' function. */
  63. /* #undef HAVE_MKOSTEMP */
  64. /* Define if you have POSIX threads libraries and header files. */
  65. /* #undef HAVE_PTHREAD */
  66. /* Have PTHREAD_PRIO_INHERIT. */
  67. /* #undef HAVE_PTHREAD_PRIO_INHERIT */
  68. /* Define to 1 if you have the <readline/history.h> header file. */
  69. /* #undef HAVE_READLINE_HISTORY_H */
  70. /* Define to 1 if you have the <readline/readline.h> header file. */
  71. /* #undef HAVE_READLINE_READLINE_H */
  72. /* Define to 1 if you have the `secure_getenv' function. */
  73. /* #undef HAVE_SECURE_GETENV */
  74. /* Define to 1 if you have the <stdint.h> header file. */
  75. /* #undef HAVE_STDINT_H */
  76. /* Define to 1 if you have the <stdlib.h> header file. */
  77. /* #undef HAVE_STDLIB_H */
  78. /* Define to 1 if you have the `strerror' function. */
  79. /* #undef HAVE_STRERROR */
  80. /* Define to 1 if you have the <strings.h> header file. */
  81. /* #undef HAVE_STRINGS_H */
  82. /* Define to 1 if you have the <string.h> header file. */
  83. /* #undef HAVE_STRING_H */
  84. /* Define to 1 if you have the <sys/stat.h> header file. */
  85. /* #undef HAVE_SYS_STAT_H */
  86. /* Define to 1 if you have the <sys/types.h> header file. */
  87. /* #undef HAVE_SYS_TYPES_H */
  88. /* Define to 1 if you have the <sys/wait.h> header file. */
  89. /* #undef HAVE_SYS_WAIT_H */
  90. /* Define to 1 if you have the <unistd.h> header file. */
  91. /* #undef HAVE_UNISTD_H */
  92. /* Define to 1 if the compiler supports simple visibility declarations. */
  93. /* #undef HAVE_VISIBILITY */
  94. /* Define to 1 if you have the <windows.h> header file. */
  95. /* #undef HAVE_WINDOWS_H */
  96. /* Define to 1 if you have the <zlib.h> header file. */
  97. /* #undef HAVE_ZLIB_H */
  98. /* This limits the amount of memory that pcre2_match() may use while matching
  99. a pattern. The value is in kilobytes. */
  100. #ifndef HEAP_LIMIT
  101. #define HEAP_LIMIT 20000000
  102. #endif
  103. /* The value of LINK_SIZE determines the number of bytes used to store links
  104. as offsets within the compiled regex. The default is 2, which allows for
  105. compiled patterns up to 64K long. This covers the vast majority of cases.
  106. However, PCRE2 can also be compiled to use 3 or 4 bytes instead. This
  107. allows for longer patterns in extreme cases. */
  108. #ifndef LINK_SIZE
  109. #define LINK_SIZE 2
  110. #endif
  111. /* Define to the sub-directory where libtool stores uninstalled libraries. */
  112. /* This is ignored unless you are using libtool. */
  113. #ifndef LT_OBJDIR
  114. #define LT_OBJDIR ".libs/"
  115. #endif
  116. /* The value of MATCH_LIMIT determines the default number of times the
  117. pcre2_match() function can record a backtrack position during a single
  118. matching attempt. There is a runtime interface for setting a different
  119. limit. The limit exists in order to catch runaway regular expressions that
  120. take for ever to determine that they do not match. The default is set very
  121. large so that it does not accidentally catch legitimate cases. */
  122. #ifndef MATCH_LIMIT
  123. #define MATCH_LIMIT 10000000
  124. #endif
  125. /* The above limit applies to all backtracks, whether or not they are nested.
  126. In some environments it is desirable to limit the nesting of backtracking
  127. (that is, the depth of tree that is searched) more strictly, in order to
  128. restrict the maximum amount of heap memory that is used. The value of
  129. MATCH_LIMIT_DEPTH provides this facility. To have any useful effect, it
  130. must be less than the value of MATCH_LIMIT. The default is to use the same
  131. value as MATCH_LIMIT. There is a runtime method for setting a different
  132. limit. */
  133. #ifndef MATCH_LIMIT_DEPTH
  134. #define MATCH_LIMIT_DEPTH MATCH_LIMIT
  135. #endif
  136. /* This limit is parameterized just in case anybody ever wants to change it.
  137. Care must be taken if it is increased, because it guards against integer
  138. overflow caused by enormously large patterns. */
  139. #ifndef MAX_NAME_COUNT
  140. #define MAX_NAME_COUNT 10000
  141. #endif
  142. /* This limit is parameterized just in case anybody ever wants to change it.
  143. Care must be taken if it is increased, because it guards against integer
  144. overflow caused by enormously large patterns. */
  145. #ifndef MAX_NAME_SIZE
  146. #define MAX_NAME_SIZE 32
  147. #endif
  148. /* Defining NEVER_BACKSLASH_C locks out the use of \C in all patterns. */
  149. /* #undef NEVER_BACKSLASH_C */
  150. /* The value of NEWLINE_DEFAULT determines the default newline character
  151. sequence. PCRE2 client programs can override this by selecting other values
  152. at run time. The valid values are 1 (CR), 2 (LF), 3 (CRLF), 4 (ANY), 5
  153. (ANYCRLF), and 6 (NUL). */
  154. #ifndef NEWLINE_DEFAULT
  155. #define NEWLINE_DEFAULT 2
  156. #endif
  157. /* Name of package */
  158. #define PACKAGE "pcre2"
  159. /* Define to the address where bug reports for this package should be sent. */
  160. #define PACKAGE_BUGREPORT ""
  161. /* Define to the full name of this package. */
  162. #define PACKAGE_NAME "PCRE2"
  163. /* Define to the full name and version of this package. */
  164. #define PACKAGE_STRING "PCRE2 10.31"
  165. /* Define to the one symbol short name of this package. */
  166. #define PACKAGE_TARNAME "pcre2"
  167. /* Define to the home page for this package. */
  168. #define PACKAGE_URL ""
  169. /* Define to the version of this package. */
  170. #define PACKAGE_VERSION "10.31"
  171. /* The value of PARENS_NEST_LIMIT specifies the maximum depth of nested
  172. parentheses (of any kind) in a pattern. This limits the amount of system
  173. stack that is used while compiling a pattern. */
  174. #ifndef PARENS_NEST_LIMIT
  175. #define PARENS_NEST_LIMIT 250
  176. #endif
  177. /* The value of PCRE2GREP_BUFSIZE is the starting size of the buffer used by
  178. pcre2grep to hold parts of the file it is searching. The buffer will be
  179. expanded up to PCRE2GREP_MAX_BUFSIZE if necessary, for files containing
  180. very long lines. The actual amount of memory used by pcre2grep is three
  181. times this number, because it allows for the buffering of "before" and
  182. "after" lines. */
  183. #ifndef PCRE2GREP_BUFSIZE
  184. #define PCRE2GREP_BUFSIZE 20480
  185. #endif
  186. /* The value of PCRE2GREP_MAX_BUFSIZE specifies the maximum size of the buffer
  187. used by pcre2grep to hold parts of the file it is searching. The actual
  188. amount of memory used by pcre2grep is three times this number, because it
  189. allows for the buffering of "before" and "after" lines. */
  190. #ifndef PCRE2GREP_MAX_BUFSIZE
  191. #define PCRE2GREP_MAX_BUFSIZE 1048576
  192. #endif
  193. /* Define to any value to include debugging code. */
  194. /* #undef PCRE2_DEBUG */
  195. /* If you are compiling for a system other than a Unix-like system or
  196. Win32, and it needs some magic to be inserted before the definition
  197. of a function that is exported by the library, define this macro to
  198. contain the relevant magic. If you do not define this macro, a suitable
  199. __declspec value is used for Windows systems; in other environments
  200. "extern" is used for a C compiler and "extern C" for a C++ compiler.
  201. This macro apears at the start of every exported function that is part
  202. of the external API. It does not appear on functions that are "external"
  203. in the C sense, but which are internal to the library. */
  204. /* #undef PCRE2_EXP_DEFN */
  205. /* Define to any value if linking statically (TODO: make nice with Libtool) */
  206. /* #undef PCRE2_STATIC */
  207. /* Define to necessary symbol if this constant uses a non-standard name on
  208. your system. */
  209. /* #undef PTHREAD_CREATE_JOINABLE */
  210. /* Define to any non-zero number to enable support for SELinux compatible
  211. executable memory allocator in JIT. Note that this will have no effect
  212. unless SUPPORT_JIT is also defined. */
  213. /* #undef SLJIT_PROT_EXECUTABLE_ALLOCATOR */
  214. /* Define to 1 if you have the ANSI C header files. */
  215. /* #undef STDC_HEADERS */
  216. /* Define to any value to enable support for Just-In-Time compiling. */
  217. /* #undef SUPPORT_JIT */
  218. /* Define to any value to allow pcre2grep to be linked with libbz2, so that it
  219. is able to handle .bz2 files. */
  220. /* #undef SUPPORT_LIBBZ2 */
  221. /* Define to any value to allow pcre2test to be linked with libedit. */
  222. /* #undef SUPPORT_LIBEDIT */
  223. /* Define to any value to allow pcre2test to be linked with libreadline. */
  224. /* #undef SUPPORT_LIBREADLINE */
  225. /* Define to any value to allow pcre2grep to be linked with libz, so that it
  226. is able to handle .gz files. */
  227. /* #undef SUPPORT_LIBZ */
  228. /* Define to any value to enable callout script support in pcre2grep. */
  229. /* #undef SUPPORT_PCRE2GREP_CALLOUT */
  230. /* Define to any value to enable JIT support in pcre2grep. Note that this will
  231. have no effect unless SUPPORT_JIT is also defined. */
  232. /* #undef SUPPORT_PCRE2GREP_JIT */
  233. /* Define to any value to enable the 16 bit PCRE2 library. */
  234. /* #undef SUPPORT_PCRE2_16 */
  235. /* Define to any value to enable the 32 bit PCRE2 library. */
  236. /* #undef SUPPORT_PCRE2_32 */
  237. /* Define to any value to enable the 8 bit PCRE2 library. */
  238. /* #undef SUPPORT_PCRE2_8 */
  239. /* Define to any value to enable support for Unicode and UTF encoding. This
  240. will work even in an EBCDIC environment, but it is incompatible with the
  241. EBCDIC macro. That is, PCRE2 can support *either* EBCDIC code *or*
  242. ASCII/Unicode, but not both at once. */
  243. /* #undef SUPPORT_UNICODE */
  244. /* Define to any value for valgrind support to find invalid memory reads. */
  245. /* #undef SUPPORT_VALGRIND */
  246. /* Enable extensions on AIX 3, Interix. */
  247. #ifndef _ALL_SOURCE
  248. # define _ALL_SOURCE 1
  249. #endif
  250. /* Enable GNU extensions on systems that have them. */
  251. #ifndef _GNU_SOURCE
  252. # define _GNU_SOURCE 1
  253. #endif
  254. /* Enable threading extensions on Solaris. */
  255. #ifndef _POSIX_PTHREAD_SEMANTICS
  256. # define _POSIX_PTHREAD_SEMANTICS 1
  257. #endif
  258. /* Enable extensions on HP NonStop. */
  259. #ifndef _TANDEM_SOURCE
  260. # define _TANDEM_SOURCE 1
  261. #endif
  262. /* Enable general extensions on Solaris. */
  263. #ifndef __EXTENSIONS__
  264. # define __EXTENSIONS__ 1
  265. #endif
  266. /* Version number of package */
  267. #define VERSION "10.31"
  268. /* Define to 1 if on MINIX. */
  269. /* #undef _MINIX */
  270. /* Define to 2 if the system does not provide POSIX.1 features except with
  271. this defined. */
  272. /* #undef _POSIX_1_SOURCE */
  273. /* Define to 1 if you need to in order for `stat' and other things to work. */
  274. /* #undef _POSIX_SOURCE */
  275. /* Define to empty if `const' does not conform to ANSI C. */
  276. /* #undef const */
  277. /* Define to the type of a signed integer type of width exactly 64 bits if
  278. such a type exists and the standard includes do not define it. */
  279. /* #undef int64_t */
  280. /* Define to `unsigned int' if <sys/types.h> does not define. */
  281. /* #undef size_t */