collectd-perl(5): Added a note about the stability of the API.
[collectd.git] / configure.in
index e63ee21..314ad1d 100644 (file)
@@ -1235,11 +1235,13 @@ then
   AC_SUBST(BUILD_WITH_LIBSTATGRAB_LDFLAGS)
 fi
 
+with_libkvm="no"
 AC_CHECK_LIB(kvm, kvm_getprocs, [with_kvm_getprocs="yes"], [with_kvm_getprocs="no"])
 if test "x$with_kvm_getprocs" = "xyes"
 then
        AC_DEFINE(HAVE_LIBKVM_GETPROCS, 1,
                  [Define to 1 if you have the 'kvm' library with the 'kvm_getprocs' symbol (-lkvm)])
+       with_libkvm="yes"
 fi
 AM_CONDITIONAL(BUILD_WITH_LIBKVM_GETPROCS, test "x$with_kvm_getprocs" = "xyes")
 
@@ -1248,6 +1250,7 @@ if test "x$with_kvm_getswapinfo" = "xyes"
 then
        AC_DEFINE(HAVE_LIBKVM_GETSWAPINFO, 1,
                  [Define to 1 if you have the 'kvm' library with the 'kvm_getswapinfo' symbol (-lkvm)])
+       with_libkvm="yes"
 fi
 AM_CONDITIONAL(BUILD_WITH_LIBKVM_GETSWAPINFO, test "x$with_kvm_getswapinfo" = "xyes")
 
@@ -1256,6 +1259,7 @@ 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)])
+       with_libkvm="yes"
 fi
 AM_CONDITIONAL(BUILD_WITH_LIBKVM_NLIST, test "x$with_kvm_nlist" = "xyes")
 
@@ -2641,9 +2645,13 @@ then
        plugin_processes="yes"
 fi
 
-if test "x$with_libkvm" = "xyes"
+if test "x$with_kvm_getprocs" = "xyes"
 then
        plugin_processes="yes"
+fi
+
+if test "x$with_kvm_getswapinfo" = "xyes"
+then
        plugin_swap="yes"
 fi