From b5ec7861b78891dc8dc98213e8071a86e89ab63f Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Tue, 17 Aug 2010 10:37:07 +0200 Subject: [PATCH] libcollectdclient: Link with libgcrypt if available. --- src/libcollectdclient/Makefile.am | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/libcollectdclient/Makefile.am b/src/libcollectdclient/Makefile.am index ae9590d4..baf7a21b 100644 --- a/src/libcollectdclient/Makefile.am +++ b/src/libcollectdclient/Makefile.am @@ -11,4 +11,11 @@ nodist_pkgconfig_DATA = libcollectdclient.pc BUILT_SOURCES = collectd/lcc_features.h libcollectdclient_la_SOURCES = client.c network.c network_buffer.c +libcollectdclient_la_CPPFLAGS = $(AM_CPPFLAGS) libcollectdclient_la_LDFLAGS = -version-info 0:0:0 +libcollectdclient_la_LIBADD = +if BUILD_WITH_LIBGCRYPT +libcollectdclient_la_CPPFLAGS += $(GCRYPT_CPPFLAGS) +libcollectdclient_la_LDFLAGS += $(GCRYPT_LDFLAGS) +libcollectdclient_la_LIBADD += $(GCRYPT_LIBS) +endif -- 2.11.0