From: Florian Forster Date: Tue, 3 Oct 2006 16:36:07 +0000 (+0200) Subject: Updated the build scripts for the named plugin. X-Git-Tag: collectd-3.11.0~42^2~13 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=92f435534ba895863babb3aefee28f1a0a63bf08;p=collectd.git Updated the build scripts for the named plugin. --- diff --git a/configure.in b/configure.in index ac476eb1..25948181 100644 --- a/configure.in +++ b/configure.in @@ -825,9 +825,9 @@ then else collect_libpcap=0 fi -AC_DEFINE_UNQUOTED(COLLECT_LIBMYSQL, [$collect_libpcap], +AC_DEFINE_UNQUOTED(COLLECT_LIBPCAP, [$collect_libpcap], [Wether or not to use the pcap library]) -AM_CONDITIONAL(BUILD_WITH_LIBMYSQL, test "x$with_libpcap" = "xyes") +AM_CONDITIONAL(BUILD_WITH_LIBPCAP, test "x$with_libpcap" = "xyes") # Define `step' and `hearbeat' values.. declare -i collectd_step=10 diff --git a/src/Makefile.am b/src/Makefile.am index 5538f641..dc45733e 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -236,6 +236,17 @@ collectd_LDADD += "-dlopen" mysql.la collectd_DEPENDENCIES += mysql.la endif +if BUILD_MODULE_NAMED +pkglib_LTLIBRARIES += named.la +named_la_SOURCES = named.c dnstop.c +named_la_LDFLAGS = -module -avoid-version +if BUILD_WITH_LIBPCAP +named_la_LDFLAGS += -lpcap +endif +collectd_LDADD += "-dlopen" named.la +collectd_DEPENDENCIES += named.la +endif + if BUILD_MODULE_NFS pkglib_LTLIBRARIES += nfs.la nfs_la_SOURCES = nfs.c