Annotation of embedaddon/pcre/config.h.generic, revision 1.1.1.5

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>