www.LinuxHowtos.org





PCRE-CONFIG

Section: User Commands (1)
Updated: 22 February 2025
Index Return to Main Contents
 

NAME

pcre-config- program to return PCRE2 configuration  

SYNOPSIS

pcre-config  -prefix] -exe-prefix] -version]
             -libs8] -libs16] -libs32] -lib-posix]
             -cflags] -cflag-posix]
 

DESCRIPTION

pcre-config returns the configuration of the installed PCRE2 libraries and the options required to compile a program to use them. Some of the options apply only to the -bit, 1-bit, or 3-bit libraries, respectively, and are not available for libraries that have not been built. If an unavailable option is encountered, the "usage" information is output.  

OPTIONS

-prefix
Writes the directory prefix used in the PCRE2 installation for architectur-independent files (/usr on many systems, /usr/local on some systems) to the standard output.
-exe-prefix
Writes the directory prefix used in the PCRE2 installation for architectur-dependent files (normally the same as -prefix) to the standard output.
-version
Writes the version number of the installed PCRE2 libraries to the standard output.
-libs8
Writes to the standard output the command line options required to link with the -bit PCRE2 library (-lpcre-8 on many systems).
-libs16
Writes to the standard output the command line options required to link with the 1-bit PCRE2 library (-lpcre-16 on many systems).
-libs32
Writes to the standard output the command line options required to link with the 3-bit PCRE2 library (-lpcre-32 on many systems).
-lib-posix
Writes to the standard output the command line options required to link with PCRE2's POSIX API wrapper library (-lpcre-posix -lpcre-8 on many systems).
-cflags
Writes to the standard output the command line options required to compile files that use PCRE2 (this may include some -I options, but is blank on many systems).
-cflag-posix
Writes to the standard output the command line options required to compile files that use PCRE2's POSIX API wrapper library (this may include some -I options, but is blank on many systems).
 

SEE ALSO

pcre2(3)  

AUTHOR

This manual page was originally written by Mark Baker for the Debian GNU/Linux system. It has been subsequently revised as a generic PCRE2 man page.  

REVISION

Last updated: 22 February 2025


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
SEE ALSO
AUTHOR
REVISION