projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
beefe43
)
define HAVE_SYSCTL_KERN_CP_TIMES if sysctl supports kern.cp_times
author
Doug MacEachern
<dougm@hyperic.com>
Fri, 25 Sep 2009 20:02:26 +0000
(13:02 -0700)
committer
Doug MacEachern
<dougm@hyperic.com>
Fri, 25 Sep 2009 20:02:26 +0000
(13:02 -0700)
configure.in
patch
|
blob
|
history
diff --git
a/configure.in
b/configure.in
index
c08a61a
..
c3fc8d7
100644
(file)
--- 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)