Code

Updated the build scripts for the named plugin.
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Tue, 3 Oct 2006 16:36:07 +0000 (18:36 +0200)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Tue, 3 Oct 2006 16:36:07 +0000 (18:36 +0200)
configure.in
src/Makefile.am

index ac476eb1114f58a4e5cf36123036e0f3e1679b3b..259481819ff7718c334c6d95dad256e1057d4eac 100644 (file)
@@ -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
index 5538f64174b1507edbb99bbb09ba53ca3e356513..dc45733e74e59891bbb0bf0e20cab6c16937ca63 100644 (file)
@@ -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