xref: /aosp_15_r20/external/pcre/doc/pcre2-config.txt (revision 22dc650d8ae982c6770746019a6f94af92b0f024)
1
2PCRE2-CONFIG(1)             General Commands Manual            PCRE2-CONFIG(1)
3
4
5NAME
6       pcre2-config - program to return PCRE2 configuration
7
8
9SYNOPSIS
10
11       pcre2-config [--prefix] [--exec-prefix] [--version]
12                    [--libs8] [--libs16] [--libs32] [--libs-posix]
13                    [--cflags] [--cflags-posix]
14
15
16DESCRIPTION
17
18       pcre2-config returns the configuration of the installed PCRE2 libraries
19       and  the options required to compile a program to use them. Some of the
20       options apply only to the 8-bit, or 16-bit, or  32-bit  libraries,  re-
21       spectively,  and  are  not  available  for libraries that have not been
22       built. If an unavailable option is encountered, the "usage" information
23       is output.
24
25
26OPTIONS
27
28       --prefix  Writes the directory prefix used in  the  PCRE2  installation
29                 for  architecture  independent  files  (/usr on many systems,
30                 /usr/local on some systems) to the standard output.
31
32       --exec-prefix
33                 Writes the directory prefix used in  the  PCRE2  installation
34                 for architecture dependent files (normally the same as --pre-
35                 fix) to the standard output.
36
37       --version Writes the version number of the installed PCRE2 libraries to
38                 the standard output.
39
40       --libs8   Writes  to  the  standard output the command line options re-
41                 quired to link with the 8-bit  PCRE2  library  (-lpcre2-8  on
42                 many systems).
43
44       --libs16  Writes  to  the  standard output the command line options re-
45                 quired to link with the 16-bit PCRE2 library  (-lpcre2-16  on
46                 many systems).
47
48       --libs32  Writes  to  the  standard output the command line options re-
49                 quired to link with the 32-bit PCRE2 library  (-lpcre2-32  on
50                 many systems).
51
52       --libs-posix
53                 Writes  to  the  standard output the command line options re-
54                 quired  to  link  with  PCRE2's  POSIX  API  wrapper  library
55                 (-lpcre2-posix -lpcre2-8 on many systems).
56
57       --cflags  Writes  to  the  standard output the command line options re-
58                 quired to compile files that use PCRE2 (this may include some
59                 -I options, but is blank on many systems).
60
61       --cflags-posix
62                 Writes to the standard output the command  line  options  re-
63                 quired  to  compile  files that use PCRE2's POSIX API wrapper
64                 library (this may include some -I options, but  is  blank  on
65                 many systems).
66
67
68SEE ALSO
69
70       pcre2(3)
71
72
73AUTHOR
74
75       This  manual  page  was originally written by Mark Baker for the Debian
76       GNU/Linux system. It has been subsequently revised as a  generic  PCRE2
77       man page.
78
79
80REVISION
81
82       Last updated: 28 September 2014
83
84
85PCRE2 10.00                    28 September 2014               PCRE2-CONFIG(1)
86