www.LinuxHowtos.org
GPGR-CONFIG
Section: GnuPG (1)Updated: 202-0-23
Index Return to Main Contents
NAME
gpgr-config - Helper script to get information about the installed version of gpg librariesSYNOPSIS
gpgr-config [options] [ module ]DESCRIPTION
gpgrt-config is a script tool that is used by the autoconf macros shipped with gnupg software (e.g., AM_PATH_GPG_ERROR and AM_PATH_GPGME) to determine the compiler and linker flags that should be used to compile and link programs that use the specific library (e.g., libgp-error or libgpgme). gpgrt-config uses pk-config .pc files as data source.Apart from options gpgrt-config accepts a single argument module specifying the basename (without the ".pc"-suffix) of the pk-config file to be used as input. module will default to gpg-error if it is not specified.
OPTIONS
gpgrt-config accepts the following options:
- --libdir=LIBDIR
-
Parent directory path of pkgconfig file search path.
e.g., oqgpgrt-config --libdir=/usr/lib --exists gpgmecq
will parse oq/usr/lib/pkgconfig/gpgme.pccq.
- --exists
-
Test whether the pk-config file oqmodule.pccq exist and exits with
success or error accordingly.
- --modversion
-
Print the currently installed version of module on the standard output.
- --libs
-
Print the linker flags that are necessary to link a program using the
module.
- --cflags
-
Print the compiler flags that are necessary to compile a program using the
module.
- --static
-
Modifies output if linking statically instead of dynamically.
- --variable=VARNAME
-
Output variable VARNAME from the module's pk-config file.
BUGS
gpgrt-config is tried to be compatible to pk-config, and to support cross build well, but it is not intended to be a replacement.