X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=sidebyside;f=configure.in;h=e63ee213b81a2079f80467bb62a7d98dc2c84de6;hb=043a6f45dbab10267d0bb81ec5ad9a313669ec35;hp=dc3e4edec108b82740358d3b08e7c365199c1635;hpb=5db1547c947a42577709f74fe3324bf2d00ea87c;p=collectd.git diff --git a/configure.in b/configure.in index dc3e4ede..e63ee213 100644 --- a/configure.in +++ b/configure.in @@ -1251,6 +1251,14 @@ then fi AM_CONDITIONAL(BUILD_WITH_LIBKVM_GETSWAPINFO, test "x$with_kvm_getswapinfo" = "xyes") +AC_CHECK_LIB(kvm, kvm_nlist, [with_kvm_nlist="yes"], [with_kvm_nlist="no"]) +if test "x$with_kvm_nlist" = "xyes" +then + AC_DEFINE(HAVE_LIBKVM_NLIST, 1, + [Define to 1 if you have the 'kvm' library with the 'kvm_nlist' symbol (-lkvm)]) +fi +AM_CONDITIONAL(BUILD_WITH_LIBKVM_NLIST, test "x$with_kvm_nlist" = "xyes") + with_sensors_cflags="" with_sensors_ldflags="" AC_ARG_WITH(lm-sensors, [AS_HELP_STRING([--with-lm-sensors@<:@=PREFIX@:>@], [Path to lm_sensors.])], @@ -2639,6 +2647,11 @@ then plugin_swap="yes" fi +if test "x$with_kvm_nlist" = "xyes" +then + plugin_tcpconns="yes" +fi + if test "x$have_getutent" = "xyes" then plugin_users="yes"