From 917d7fa8608ce5e30c92525aacd11943b7b7dce3 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Fri, 25 Sep 2009 13:02:26 -0700 Subject: [PATCH] define HAVE_SYSCTL_KERN_CP_TIMES if sysctl supports kern.cp_times --- configure.in | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/configure.in b/configure.in index c08a61a7..c3fc8d78 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 > /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) -- 2.11.0