diff options
Diffstat (limited to 'pkg-config.1')
-rw-r--r-- | pkg-config.1 | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/pkg-config.1 b/pkg-config.1 index b7e43b3..3cf1505 100644 --- a/pkg-config.1 +++ b/pkg-config.1 @@ -252,12 +252,12 @@ files. .SH AUTOCONF MACROS .TP -.I "PKG_CHECK_MODULES(VARIABLEBASE,MODULELIST[,ACTION-IF-FOUND,[ACTION-IF-NOT-FOUND]])" +.I "PKG_CHECK_MODULES(VARIABLE-PREFIX,MODULES[,ACTION-IF-FOUND,[ACTION-IF-NOT-FOUND]])" The macro PKG_CHECK_MODULES can be used in \fIconfigure.in\fP to check whether modules exist. A typical usage would be: .nf - PKG_CHECK_MODULES(MYSTUFF, gtk+-2.0 >= 1.3.5 libxml = 1.8.4) + PKG_CHECK_MODULES([MYSTUFF], [gtk+-2.0 >= 1.3.5 libxml = 1.8.4]) .fi This would result in MYSTUFF_LIBS and MYSTUFF_CFLAGS substitution @@ -269,11 +269,10 @@ error messages if you specify your own ACTION-IF-NOT-FOUND. However, it will set the variable MYSTUFF_PKG_ERRORS, which you can use to display what went wrong. -If you want to use MYSTUFF_LIBS and MYSTUFF_CFLAGS as Makefile.am -variables (i.e. $(MYSTUFF_LIBS)) then you have to add -AC_SUBST(MYSTUFF_LIBS) to your configure.in so automake can find the -variable. You don't need to do this if you use the @MYSTUFF_LIBS@ -syntax in your Makefile.am instead of $(MYSTUFF_LIBS). +.I "PKG_PROG_PKG_CONFIG([MIN-VERSION])" + +Defines the PKG_CONFIG variable to the best pkg-config available, +useful if you need pkg-config but don't want to use PKG_CHECK_MODULES. .SH METADATA FILE SYNTAX To add a library to the set of packages \fIpkg-config\fP knows about, |