doc: Update use of Autoconf with PKG_CHECK_MODULES.

--

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2024-05-14 11:42:24 +09:00
parent 882ccc8ea7
commit 06db03ea9b
No known key found for this signature in database
GPG Key ID: 640114AF89DE6054

View File

@ -589,10 +589,16 @@ mode (@code{_LARGEFILE64_SOURCE}).
@cindex automake @cindex automake
@cindex autoconf @cindex autoconf
It is much easier if you use GNU Automake instead of writing your own You can simply use @code{PKG_CHECK_MODULES} macro with @command{pkg-config}:
Makefiles. If you do that you do not have to worry about finding and @example
invoking the @command{pkg-config} script at all. @acronym{GPGME} PKG_CHECK_MODULES([GPGME], [gpgme >= 1.23.1])
provides an extension to Automake that does all the work for you. @end example
Alternatively, instead of using @command{pkg-config}, for building on
an environment with no pkg-config, @acronym{GPGME} provides an
extension to Automake that does all the work for you. Please note
that it is required to have gpgrt-config from libgpg-error installed
in this case.
@c A simple macro for optional variables. @c A simple macro for optional variables.
@macro ovar{varname} @macro ovar{varname}