configure.in: Using sysctl(3) for swap statistics is only possible under Mac OS X.
authorFlorian Forster <octo@noris.net>
Wed, 2 Feb 2011 13:25:32 +0000 (14:25 +0100)
committerFlorian Forster <octo@noris.net>
Wed, 2 Feb 2011 13:25:32 +0000 (14:25 +0100)
configure.in

index 70e3edd..8db24ca 100644 (file)
@@ -4474,8 +4474,11 @@ if test "x$have_sysctl" = "xyes"
 then
        plugin_cpu="yes"
        plugin_memory="yes"
-       plugin_swap="yes"
        plugin_uptime="yes"
+       if test "x$ac_system" = "xDarwin"
+       then
+               plugin_swap="yes"
+       fi
 fi
 if test "x$have_sysctlbyname" = "xyes"
 then