summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: dd7a9bc)
raw | patch | inline | side by side (parent: dd7a9bc)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Tue, 3 Oct 2006 16:36:07 +0000 (18:36 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Tue, 3 Oct 2006 16:36:07 +0000 (18:36 +0200) |
configure.in | patch | blob | history | |
src/Makefile.am | patch | blob | history |
diff --git a/configure.in b/configure.in
index ac476eb1114f58a4e5cf36123036e0f3e1679b3b..259481819ff7718c334c6d95dad256e1057d4eac 100644 (file)
--- a/configure.in
+++ b/configure.in
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 5538f64174b1507edbb99bbb09ba53ca3e356513..dc45733e74e59891bbb0bf0e20cab6c16937ca63 100644 (file)
--- a/src/Makefile.am
+++ b/src/Makefile.am
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