X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=configure.in;h=08de43b17aeaa08c84e1ec2da411fdc5f0fe0dd1;hb=07b05ddf5c0ec9242ac8abea3dd7bb55fa25ffd4;hp=5c2b9998e2588ecc83d646e4d860cef23f9ea861;hpb=74f755e8cd20eb5ad15fe7df1be94e4f215adcc2;p=collectd.git diff --git a/configure.in b/configure.in index 5c2b9998..08de43b1 100644 --- a/configure.in +++ b/configure.in @@ -262,6 +262,22 @@ AC_CHECK_HEADERS(sys/sysctl.h, [], [], #endif ]) +AC_MSG_CHECKING([for sysctl kern.cp_times]) +if test -x /sbin/sysctl +then + /sbin/sysctl kern.cp_times 2>/dev/null + if test $? -eq 0 + then + AC_MSG_RESULT([yes]) + AC_DEFINE(HAVE_SYSCTL_KERN_CP_TIMES, 1, + [Define if sysctl supports kern.cp_times]) + else + AC_MSG_RESULT([no]) + fi +else + AC_MSG_RESULT([no]) +fi + # For hddtemp module AC_CHECK_HEADERS(linux/major.h libgen.h) @@ -1983,6 +1999,7 @@ then [with_libnetapp="yes"], [with_libnetapp="no (symbol na_server_invoke_elem not found)"], [$LIBNETAPP_LIBS]) + LIBNETAPP_LIBS="-lnetapp $LIBNETAPP_LIBS" fi CPPFLAGS="$SAVE_CPPFLAGS"