[collectd] [PATCH] Fix automatic link flags with libgcrypt 1.5.0

Dan Fandrich dan at coneharvesters.com
Sat Mar 2 18:13:27 CET 2013


AM_PATH_LIBGCRYPT from libgcrypt 1.5.0 sets the variables
LIBGCRYPT_CPPFLAGS and LIBGCRYPT_LIBS with their proper
values, not GCRYPT_CPPFLAGS and GCRYPT_LIBS.
---
 configure.in |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/configure.in b/configure.in
index 7c55827..dce572f 100644
--- a/configure.in
+++ b/configure.in
@@ -1831,6 +1831,8 @@ then
 
 	if test "$with_libgcrypt" != "no"; then
 		AM_PATH_LIBGCRYPT(1:1.2.0,,with_libgcrypt="no (version 1.2.0+ required)")
+		GCRYPT_CPPFLAGS="$LIBGCRYPT_CPPFLAGS"
+		GCRYPT_LIBS="$LIBGCRYPT_LIBS"
 	fi
 fi
 
-- 
1.7.10




More information about the collectd mailing list