mirror of
https://gitlab.gnome.org/GNOME/libsecret.git
synced 2024-12-22 12:48:51 +00:00
build: Fix build without libgcrypt
* Needed to use m4_ifdef on the libgcrypt autoconf macro https://bugzilla.gnome.org/show_bug.cgi?id=681330
This commit is contained in:
parent
95f05f0e05
commit
053ecbd8f7
12
configure.ac
12
configure.ac
@ -95,13 +95,19 @@ AC_ARG_ENABLE(gcrypt,
|
|||||||
])
|
])
|
||||||
|
|
||||||
if test "$enable_gcrypt" != "no"; then
|
if test "$enable_gcrypt" != "no"; then
|
||||||
AM_PATH_LIBGCRYPT($GCRYPT_LIBVER:$GCRYPT_VERSION,,
|
|
||||||
AC_MSG_ERROR([[
|
have_gcrypt="no"
|
||||||
|
m4_ifdef([AM_PATH_LIBGCRYPT],
|
||||||
|
[AM_PATH_LIBGCRYPT($GCRYPT_LIBVER:$GCRYPT_VERSION, have_gcrypt=yes)])
|
||||||
|
|
||||||
|
if test $have_gcrypt != "yes"; then
|
||||||
|
AC_MSG_ERROR([[
|
||||||
***
|
***
|
||||||
*** libgcrypt was not found. You may want to get it from
|
*** libgcrypt was not found. You may want to get it from
|
||||||
*** ftp://ftp.gnupg.org/gcrypt/libgcrypt/
|
*** ftp://ftp.gnupg.org/gcrypt/libgcrypt/
|
||||||
***
|
***
|
||||||
]]))
|
]])
|
||||||
|
fi
|
||||||
|
|
||||||
AC_DEFINE(WITH_GCRYPT, 1, [Build with libgcypt and transport encryption])
|
AC_DEFINE(WITH_GCRYPT, 1, [Build with libgcypt and transport encryption])
|
||||||
AC_DEFINE_UNQUOTED(LIBGCRYPT_VERSION, "$GCRYPT_VERSION",
|
AC_DEFINE_UNQUOTED(LIBGCRYPT_VERSION, "$GCRYPT_VERSION",
|
||||||
|
Loading…
Reference in New Issue
Block a user