summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: de2f2b8)
raw | patch | inline | side by side (parent: de2f2b8)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sun, 29 Nov 2015 11:27:36 +0000 (12:27 +0100) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sun, 29 Nov 2015 11:27:36 +0000 (12:27 +0100) |
After all the effort to detect GCRYPT_CPPFLAGS and GCRYPT_LIBS
in previous checks, this check blindly overwrites them, even
if the AM_PATH_LIBGCRYPT macro isn't found.
Also, I think it's better to check for specific functionality in a library
than an explicit minimum version, which we already did.
in previous checks, this check blindly overwrites them, even
if the AM_PATH_LIBGCRYPT macro isn't found.
Also, I think it's better to check for specific functionality in a library
than an explicit minimum version, which we already did.
configure.ac | patch | blob | history |
diff --git a/configure.ac b/configure.ac
index 68943472889752f42c6ca9837d95c1586151815a..de4d87be3b94d46724a705ec743f536fe7e16631 100644 (file)
--- a/configure.ac
+++ b/configure.ac
AC_CHECK_LIB(gcrypt, gcry_md_hash_buffer,
[with_libgcrypt="yes"],
[with_libgcrypt="no (symbol gcry_md_hash_buffer not found)"])
-
- if test "$with_libgcrypt" != "no"; then
- m4_ifdef([AM_PATH_LIBGCRYPT],[AM_PATH_LIBGCRYPT(1:1.2.0,,with_libgcrypt="no (version 1.2.0+ required)")])
- GCRYPT_CPPFLAGS="$LIBGCRYPT_CPPFLAGS $LIBGCRYPT_CFLAGS"
- GCRYPT_LIBS="$LIBGCRYPT_LIBS"
- fi
fi
CPPFLAGS="$SAVE_CPPFLAGS"