config.h 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369
  1. /* config.h. Generated from config.h.in by configure. */
  2. /* config.h.in. Generated from configure.ac by autoheader. */
  3. /* PCRE 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 PCRE "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_PCRE8 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. PCRE 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 PCRE at runtime. */
  29. /* #undef BSR_ANYCRLF */
  30. /* If you are compiling for a system that uses EBCDIC instead of ASCII
  31. character codes, define this macro to any value. You must also edit the
  32. NEWLINE macro below to set a suitable EBCDIC newline, commonly 21 (0x15).
  33. On systems that can use "configure" or CMake to set EBCDIC, NEWLINE is
  34. automatically adjusted. When EBCDIC is set, PCRE assumes that all input
  35. strings are in EBCDIC. If you do not define this macro, PCRE will assume
  36. input strings are ASCII or UTF-8/16/32 Unicode. It is not possible to build
  37. a version of PCRE that supports both EBCDIC and UTF-8/16/32. */
  38. /* #undef EBCDIC */
  39. /* In an EBCDIC environment, define this macro to any value to arrange for the
  40. NL character to be 0x25 instead of the default 0x15. NL plays the role that
  41. LF does in an ASCII/Unicode environment. The value must also be set in the
  42. NEWLINE macro below. On systems that can use "configure" or CMake to set
  43. EBCDIC_NL25, the adjustment of NEWLINE is automatic. */
  44. /* #undef EBCDIC_NL25 */
  45. /* Define to 1 if you have the `bcopy' function. */
  46. #ifndef HAVE_BCOPY
  47. #define HAVE_BCOPY 1
  48. #endif
  49. /* Define to 1 if you have the <bits/type_traits.h> header file. */
  50. /* #undef HAVE_BITS_TYPE_TRAITS_H */
  51. /* Define to 1 if you have the <bzlib.h> header file. */
  52. #ifndef HAVE_BZLIB_H
  53. #define HAVE_BZLIB_H 1
  54. #endif
  55. /* Define to 1 if you have the <dirent.h> header file. */
  56. #ifndef HAVE_DIRENT_H
  57. #define HAVE_DIRENT_H 1
  58. #endif
  59. /* Define to 1 if you have the <dlfcn.h> header file. */
  60. #ifndef HAVE_DLFCN_H
  61. #define HAVE_DLFCN_H 1
  62. #endif
  63. /* Define to 1 if you have the <inttypes.h> header file. */
  64. #ifndef HAVE_INTTYPES_H
  65. #define HAVE_INTTYPES_H 1
  66. #endif
  67. /* Define to 1 if you have the <limits.h> header file. */
  68. #ifndef HAVE_LIMITS_H
  69. #define HAVE_LIMITS_H 1
  70. #endif
  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. /* Define to 1 if you have the `memmove' function. */
  76. #ifndef HAVE_MEMMOVE
  77. #define HAVE_MEMMOVE 1
  78. #endif
  79. /* Define to 1 if you have the <memory.h> header file. */
  80. #ifndef HAVE_MEMORY_H
  81. #define HAVE_MEMORY_H 1
  82. #endif
  83. /* Define to 1 if you have the <readline/history.h> header file. */
  84. #ifndef HAVE_READLINE_HISTORY_H
  85. #define HAVE_READLINE_HISTORY_H 1
  86. #endif
  87. /* Define to 1 if you have the <readline/readline.h> header file. */
  88. #ifndef HAVE_READLINE_READLINE_H
  89. #define HAVE_READLINE_READLINE_H 1
  90. #endif
  91. /* Define to 1 if you have the <stdint.h> header file. */
  92. #ifndef HAVE_STDINT_H
  93. #define HAVE_STDINT_H 1
  94. #endif
  95. /* Define to 1 if you have the <stdlib.h> header file. */
  96. #ifndef HAVE_STDLIB_H
  97. #define HAVE_STDLIB_H 1
  98. #endif
  99. /* Define to 1 if you have the `strerror' function. */
  100. #ifndef HAVE_STRERROR
  101. #define HAVE_STRERROR 1
  102. #endif
  103. /* Define to 1 if you have the <string> header file. */
  104. #ifndef HAVE_STRING
  105. #define HAVE_STRING 1
  106. #endif
  107. /* Define to 1 if you have the <strings.h> header file. */
  108. #ifndef HAVE_STRINGS_H
  109. #define HAVE_STRINGS_H 1
  110. #endif
  111. /* Define to 1 if you have the <string.h> header file. */
  112. #ifndef HAVE_STRING_H
  113. #define HAVE_STRING_H 1
  114. #endif
  115. /* Define to 1 if you have the `strtoll' function. */
  116. /* #undef HAVE_STRTOLL */
  117. /* Define to 1 if you have the `strtoq' function. */
  118. #ifndef HAVE_STRTOQ
  119. #define HAVE_STRTOQ 1
  120. #endif
  121. /* Define to 1 if you have the <sys/stat.h> header file. */
  122. #ifndef HAVE_SYS_STAT_H
  123. #define HAVE_SYS_STAT_H 1
  124. #endif
  125. /* Define to 1 if you have the <sys/types.h> header file. */
  126. #ifndef HAVE_SYS_TYPES_H
  127. #define HAVE_SYS_TYPES_H 1
  128. #endif
  129. /* Define to 1 if you have the <type_traits.h> header file. */
  130. /* #undef HAVE_TYPE_TRAITS_H */
  131. /* Define to 1 if you have the <unistd.h> header file. */
  132. #ifndef HAVE_UNISTD_H
  133. #define HAVE_UNISTD_H 1
  134. #endif
  135. /* Define to 1 if the system has the type `unsigned long long'. */
  136. #ifndef HAVE_UNSIGNED_LONG_LONG
  137. #define HAVE_UNSIGNED_LONG_LONG 1
  138. #endif
  139. /* Define to 1 if you have the <windows.h> header file. */
  140. #define HAVE_WINDOWS_H 1
  141. /* Define to 1 if you have the <zlib.h> header file. */
  142. #ifndef HAVE_ZLIB_H
  143. #define HAVE_ZLIB_H 1
  144. #endif
  145. /* Define to 1 if you have the `_strtoi64' function. */
  146. /* #undef HAVE__STRTOI64 */
  147. /* The value of LINK_SIZE determines the number of bytes used to store links
  148. as offsets within the compiled regex. The default is 2, which allows for
  149. compiled patterns up to 64K long. This covers the vast majority of cases.
  150. However, PCRE can also be compiled to use 3 or 4 bytes instead. This allows
  151. for longer patterns in extreme cases. */
  152. #ifndef LINK_SIZE
  153. #define LINK_SIZE 2
  154. #endif
  155. /* The value of MATCH_LIMIT determines the default number of times the
  156. internal match() function can be called during a single execution of
  157. pcre_exec(). There is a runtime interface for setting a different limit.
  158. The limit exists in order to catch runaway regular expressions that take
  159. for ever to determine that they do not match. The default is set very large
  160. so that it does not accidentally catch legitimate cases. */
  161. #ifndef MATCH_LIMIT
  162. #define MATCH_LIMIT 10000000
  163. #endif
  164. /* The above limit applies to all calls of match(), whether or not they
  165. increase the recursion depth. In some environments it is desirable to limit
  166. the depth of recursive calls of match() more strictly, in order to restrict
  167. the maximum amount of stack (or heap, if NO_RECURSE is defined) that is
  168. used. The value of MATCH_LIMIT_RECURSION applies only to recursive calls of
  169. match(). To have any useful effect, it must be less than the value of
  170. MATCH_LIMIT. The default is to use the same value as MATCH_LIMIT. There is
  171. a runtime method for setting a different limit. */
  172. #ifndef MATCH_LIMIT_RECURSION
  173. #define MATCH_LIMIT_RECURSION MATCH_LIMIT
  174. #endif
  175. /* This limit is parameterized just in case anybody ever wants to change it.
  176. Care must be taken if it is increased, because it guards against integer
  177. overflow caused by enormously large patterns. */
  178. #ifndef MAX_NAME_COUNT
  179. #define MAX_NAME_COUNT 10000
  180. #endif
  181. /* This limit is parameterized just in case anybody ever wants to change it.
  182. Care must be taken if it is increased, because it guards against integer
  183. overflow caused by enormously large patterns. */
  184. #ifndef MAX_NAME_SIZE
  185. #define MAX_NAME_SIZE 32
  186. #endif
  187. /* The value of NEWLINE determines the default newline character sequence.
  188. PCRE client programs can override this by selecting other values at run
  189. time. In ASCII environments, the value can be 10 (LF), 13 (CR), or 3338
  190. (CRLF); in EBCDIC environments the value can be 21 or 37 (LF), 13 (CR), or
  191. 3349 or 3365 (CRLF) because there are two alternative codepoints (0x15 and
  192. 0x25) that are used as the NL line terminator that is equivalent to ASCII
  193. LF. In both ASCII and EBCDIC environments the value can also be -1 (ANY),
  194. or -2 (ANYCRLF). */
  195. #ifndef NEWLINE
  196. #define NEWLINE 10
  197. #endif
  198. /* PCRE uses recursive function calls to handle backtracking while matching.
  199. This can sometimes be a problem on systems that have stacks of limited
  200. size. Define NO_RECURSE to any value to get a version that doesn't use
  201. recursion in the match() function; instead it creates its own stack by
  202. steam using pcre_recurse_malloc() to obtain memory from the heap. For more
  203. detail, see the comments and other stuff just above the match() function.
  204. */
  205. /* #undef NO_RECURSE */
  206. /* Name of package */
  207. #define PACKAGE "pcre"
  208. /* Define to the address where bug reports for this package should be sent. */
  209. #define PACKAGE_BUGREPORT ""
  210. /* Define to the full name of this package. */
  211. #define PACKAGE_NAME "PCRE"
  212. /* Define to the full name and version of this package. */
  213. #define PACKAGE_STRING "PCRE 8.34"
  214. /* Define to the one symbol short name of this package. */
  215. #define PACKAGE_TARNAME "pcre"
  216. /* Define to the home page for this package. */
  217. #define PACKAGE_URL ""
  218. /* Define to the version of this package. */
  219. #define PACKAGE_VERSION "8.34"
  220. /* The value of PARENS_NEST_LIMIT specifies the maximum depth of nested
  221. parentheses (of any kind) in a pattern. This limits the amount of system
  222. stack that is used while compiling a pattern. */
  223. #ifndef PARENS_NEST_LIMIT
  224. #define PARENS_NEST_LIMIT 250
  225. #endif
  226. /* The value of PCREGREP_BUFSIZE determines the size of buffer used by
  227. pcregrep to hold parts of the file it is searching. This is also the
  228. minimum value. The actual amount of memory used by pcregrep is three times
  229. this number, because it allows for the buffering of "before" and "after"
  230. lines. */
  231. #ifndef PCREGREP_BUFSIZE
  232. #define PCREGREP_BUFSIZE 20480
  233. #endif
  234. /* If you are compiling for a system other than a Unix-like system or
  235. Win32, and it needs some magic to be inserted before the definition
  236. of a function that is exported by the library, define this macro to
  237. contain the relevant magic. If you do not define this macro, a suitable
  238. __declspec value is used for Windows systems; in other environments
  239. "extern" is used for a C compiler and "extern C" for a C++ compiler.
  240. This macro apears at the start of every exported function that is part
  241. of the external API. It does not appear on functions that are "external"
  242. in the C sense, but which are internal to the library. */
  243. /* #undef PCRE_EXP_DEFN */
  244. /* Define to any value if linking statically (TODO: make nice with Libtool) */
  245. /* #undef PCRE_STATIC */
  246. /* When calling PCRE via the POSIX interface, additional working storage is
  247. required for holding the pointers to capturing substrings because PCRE
  248. requires three integers per substring, whereas the POSIX interface provides
  249. only two. If the number of expected substrings is small, the wrapper
  250. function uses space on the stack, because this is faster than using
  251. malloc() for each call. The threshold above which the stack is no longer
  252. used is defined by POSIX_MALLOC_THRESHOLD. */
  253. #ifndef POSIX_MALLOC_THRESHOLD
  254. #define POSIX_MALLOC_THRESHOLD 10
  255. #endif
  256. /* Define to necessary symbol if this constant uses a non-standard name on
  257. your system. */
  258. /* #undef PTHREAD_CREATE_JOINABLE */
  259. /* Define to 1 if you have the ANSI C header files. */
  260. #ifndef STDC_HEADERS
  261. #define STDC_HEADERS 1
  262. #endif
  263. /* Define to any value to enable support for Just-In-Time compiling. */
  264. /* #undef SUPPORT_JIT */
  265. /* Define to any value to allow pcregrep to be linked with libbz2, so that it
  266. is able to handle .bz2 files. */
  267. /* #undef SUPPORT_LIBBZ2 */
  268. /* Define to any value to allow pcretest to be linked with libedit. */
  269. /* #undef SUPPORT_LIBEDIT */
  270. /* Define to any value to allow pcretest to be linked with libreadline. */
  271. /* #undef SUPPORT_LIBREADLINE */
  272. /* Define to any value to allow pcregrep to be linked with libz, so that it is
  273. able to handle .gz files. */
  274. /* #undef SUPPORT_LIBZ */
  275. /* Define to any value to enable the 16 bit PCRE library. */
  276. /* #undef SUPPORT_PCRE16 */
  277. /* Define to any value to enable the 32 bit PCRE library. */
  278. /* #undef SUPPORT_PCRE32 */
  279. /* Define to any value to enable the 8 bit PCRE library. */
  280. /* #undef SUPPORT_PCRE8 */
  281. /* Define to any value to enable JIT support in pcregrep. */
  282. /* #undef SUPPORT_PCREGREP_JIT */
  283. /* Define to any value to enable support for Unicode properties. */
  284. /* #undef SUPPORT_UCP */
  285. /* Define to any value to enable support for the UTF-8/16/32 Unicode encoding.
  286. This will work even in an EBCDIC environment, but it is incompatible with
  287. the EBCDIC macro. That is, PCRE can support *either* EBCDIC code *or*
  288. ASCII/UTF-8/16/32, but not both at once. */
  289. /* #undef SUPPORT_UTF */
  290. /* Define to any value for valgrind support to find invalid memory reads. */
  291. /* #undef SUPPORT_VALGRIND */
  292. /* Version number of package */
  293. #define VERSION "8.34"
  294. /* Define to empty if `const' does not conform to ANSI C. */
  295. /* #undef const */
  296. /* Define to `unsigned int' if <sys/types.h> does not define. */
  297. /* #undef size_t */