Janis Danisevskis | 112c9cc | 2016-03-31 13:35:25 +0100 | [diff] [blame] | 1 | PCRE2-CONFIG(1) General Commands Manual PCRE2-CONFIG(1) |
| 2 | |
| 3 | |
| 4 | |
| 5 | NAME |
| 6 | pcre2-config - program to return PCRE2 configuration |
| 7 | |
| 8 | SYNOPSIS |
| 9 | |
| 10 | pcre2-config [--prefix] [--exec-prefix] [--version] |
| 11 | [--libs8] [--libs16] [--libs32] [--libs-posix] |
| 12 | [--cflags] [--cflags-posix] |
| 13 | |
| 14 | |
| 15 | DESCRIPTION |
| 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 Hughes | 2dbd7d2 | 2020-06-03 14:32:37 -0700 | [diff] [blame] | 19 | 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 Danisevskis | 112c9cc | 2016-03-31 13:35:25 +0100 | [diff] [blame] | 21 | built. If an unavailable option is encountered, the "usage" information |
| 22 | is output. |
| 23 | |
| 24 | |
| 25 | OPTIONS |
| 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 Hughes | 2dbd7d2 | 2020-06-03 14:32:37 -0700 | [diff] [blame] | 39 | --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 Danisevskis | 112c9cc | 2016-03-31 13:35:25 +0100 | [diff] [blame] | 41 | many systems). |
| 42 | |
Elliott Hughes | 2dbd7d2 | 2020-06-03 14:32:37 -0700 | [diff] [blame] | 43 | --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 Danisevskis | 112c9cc | 2016-03-31 13:35:25 +0100 | [diff] [blame] | 45 | many systems). |
| 46 | |
Elliott Hughes | 2dbd7d2 | 2020-06-03 14:32:37 -0700 | [diff] [blame] | 47 | --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 Danisevskis | 112c9cc | 2016-03-31 13:35:25 +0100 | [diff] [blame] | 49 | many systems). |
| 50 | |
| 51 | --libs-posix |
Elliott Hughes | 2dbd7d2 | 2020-06-03 14:32:37 -0700 | [diff] [blame] | 52 | Writes to the standard output the command line options re- |
| 53 | quired to link with PCRE2's POSIX API wrapper library |
Janis Danisevskis | 112c9cc | 2016-03-31 13:35:25 +0100 | [diff] [blame] | 54 | (-lpcre2-posix -lpcre2-8 on many systems). |
| 55 | |
Elliott Hughes | 2dbd7d2 | 2020-06-03 14:32:37 -0700 | [diff] [blame] | 56 | --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 Danisevskis | 112c9cc | 2016-03-31 13:35:25 +0100 | [diff] [blame] | 59 | |
| 60 | --cflags-posix |
Elliott Hughes | 2dbd7d2 | 2020-06-03 14:32:37 -0700 | [diff] [blame] | 61 | Writes to the standard output the command line options re- |
| 62 | quired to compile files that use PCRE2's POSIX API wrapper |
Janis Danisevskis | 112c9cc | 2016-03-31 13:35:25 +0100 | [diff] [blame] | 63 | library (this may include some -I options, but is blank on |
| 64 | many systems). |
| 65 | |
| 66 | |
| 67 | SEE ALSO |
| 68 | |
| 69 | pcre2(3) |
| 70 | |
| 71 | |
| 72 | AUTHOR |
| 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 | |
| 79 | REVISION |
| 80 | |
| 81 | Last updated: 28 September 2014 |