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