Commit d5bd694b authored by Rafaël Carré's avatar Rafaël Carré

Use libgcrypt-config script instead of hardcoding -lgcrypt

parent da800ee4
...@@ -4590,9 +4590,11 @@ AC_ARG_ENABLE(libgcrypt, ...@@ -4590,9 +4590,11 @@ AC_ARG_ENABLE(libgcrypt,
[ --disable-libgcrypt gcrypt support (default enabled)]) [ --disable-libgcrypt gcrypt support (default enabled)])
AS_IF([test "${enable_libgcrypt}" != "no"], [ AS_IF([test "${enable_libgcrypt}" != "no"], [
AC_CHECK_DECL([GCRYCTL_SET_THREAD_CBS], [ AC_CHECK_DECL([GCRYCTL_SET_THREAD_CBS], [
libgcrypt-config --version >/dev/null || AC_MSG_ERROR(
[gcrypt.h present but libgcrypt-config could not be found])
have_libgcrypt="yes" have_libgcrypt="yes"
GCRYPT_CFLAGS="" GCRYPT_CFLAGS="`libgcrypt-config --cflags`"
GCRYPT_LIBS="-lgcrypt" GCRYPT_LIBS="`libgcrypt-config --libs`"
], [ ], [
AS_IF([test "${enable_libgcrypt}"], [ AS_IF([test "${enable_libgcrypt}"], [
AC_MSG_ERROR([libgcrypt version 1.1.94 or higher not found.]) AC_MSG_ERROR([libgcrypt version 1.1.94 or higher not found.])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment