[systemd-devel] [PATCH] configure.ac: check if AM_PATH_LIBGCRYPT is a defined macro

Lennart Poettering lennart at poettering.net
Mon May 6 12:29:41 PDT 2013


On Mon, 06.05.13 09:46, Elia Pinto (gitter.spiros at gmail.com) wrote:

> To search the libgcrypt support the developer are advised
> to use the automake macro AM_PATH_LIBGCRYPT. But if libgcrypt-devel
> is not installed the macro does not exist yet and so
> configure goes wrong. This patch test first whether the macro is defined,
> and if not it set  have_lgcrypt to false.

This is only relevant for git builds. For git builds there are a number
of tools we don't explicitly check for such as autoconf itself for
example. The autoconf checks otoh are only relevant for builds from
tarballs. 

It is expected that you need more tools installed when building from
git, and that you know which ones.

That said, libgcrypt really shouldn't use their own macros for this, and
rather just use pkg-config....

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list