blob: 33785f4b386ebe7b3679a60016db93f424d413f5 [file] [log] [blame]
Janis Danisevskis112c9cc2016-03-31 13:35:25 +01001PCRE2-CONFIG(1) General Commands Manual PCRE2-CONFIG(1)
2
3
4
5NAME
6 pcre2-config - program to return PCRE2 configuration
7
8SYNOPSIS
9
10 pcre2-config [--prefix] [--exec-prefix] [--version]
11 [--libs8] [--libs16] [--libs32] [--libs-posix]
12 [--cflags] [--cflags-posix]
13
14
15DESCRIPTION
16
17 pcre2-config returns the configuration of the installed PCRE2 libraries
18 and the options required to compile a program to use them. Some of the
Elliott Hughes2dbd7d22020-06-03 14:32:37 -070019 options apply only to the 8-bit, or 16-bit, or 32-bit libraries, re-
20 spectively, and are not available for libraries that have not been
Janis Danisevskis112c9cc2016-03-31 13:35:25 +010021 built. If an unavailable option is encountered, the "usage" information
22 is output.
23
24
25OPTIONS
26
27 --prefix Writes the directory prefix used in the PCRE2 installation
28 for architecture independent files (/usr on many systems,
29 /usr/local on some systems) to the standard output.
30
31 --exec-prefix
32 Writes the directory prefix used in the PCRE2 installation
33 for architecture dependent files (normally the same as --pre-
34 fix) to the standard output.
35
36 --version Writes the version number of the installed PCRE2 libraries to
37 the standard output.
38
Elliott Hughes2dbd7d22020-06-03 14:32:37 -070039 --libs8 Writes to the standard output the command line options re-
40 quired to link with the 8-bit PCRE2 library (-lpcre2-8 on
Janis Danisevskis112c9cc2016-03-31 13:35:25 +010041 many systems).
42
Elliott Hughes2dbd7d22020-06-03 14:32:37 -070043 --libs16 Writes to the standard output the command line options re-
44 quired to link with the 16-bit PCRE2 library (-lpcre2-16 on
Janis Danisevskis112c9cc2016-03-31 13:35:25 +010045 many systems).
46
Elliott Hughes2dbd7d22020-06-03 14:32:37 -070047 --libs32 Writes to the standard output the command line options re-
48 quired to link with the 32-bit PCRE2 library (-lpcre2-32 on
Janis Danisevskis112c9cc2016-03-31 13:35:25 +010049 many systems).
50
51 --libs-posix
Elliott Hughes2dbd7d22020-06-03 14:32:37 -070052 Writes to the standard output the command line options re-
53 quired to link with PCRE2's POSIX API wrapper library
Janis Danisevskis112c9cc2016-03-31 13:35:25 +010054 (-lpcre2-posix -lpcre2-8 on many systems).
55
Elliott Hughes2dbd7d22020-06-03 14:32:37 -070056 --cflags Writes to the standard output the command line options re-
57 quired to compile files that use PCRE2 (this may include some
58 -I options, but is blank on many systems).
Janis Danisevskis112c9cc2016-03-31 13:35:25 +010059
60 --cflags-posix
Elliott Hughes2dbd7d22020-06-03 14:32:37 -070061 Writes to the standard output the command line options re-
62 quired to compile files that use PCRE2's POSIX API wrapper
Janis Danisevskis112c9cc2016-03-31 13:35:25 +010063 library (this may include some -I options, but is blank on
64 many systems).
65
66
67SEE ALSO
68
69 pcre2(3)
70
71
72AUTHOR
73
74 This manual page was originally written by Mark Baker for the Debian
75 GNU/Linux system. It has been subsequently revised as a generic PCRE2
76 man page.
77
78
79REVISION
80
81 Last updated: 28 September 2014