From: Florian Forster Date: Tue, 17 Aug 2010 08:37:07 +0000 (+0200) Subject: libcollectdclient: Link with libgcrypt if available. X-Git-Tag: collectd-5.2.0~18^2~11 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b5ec7861b78891dc8dc98213e8071a86e89ab63f;p=collectd.git libcollectdclient: Link with libgcrypt if available. --- 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