summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4568786)
raw | patch | inline | side by side (parent: 4568786)
author | Vincent Brillault <git@lerya.net> | |
Fri, 17 Apr 2015 15:18:06 +0000 (17:18 +0200) | ||
committer | Vincent Brillault <git@lerya.net> | |
Fri, 17 Apr 2015 15:18:06 +0000 (17:18 +0200) |
configure.ac | patch | blob | history |
diff --git a/configure.ac b/configure.ac
index 82019819d0ecf54cee773c37b100024ad5d6c94e..35ce32ba12bc954ee423ce3eba7612210c4e1a51 100644 (file)
--- a/configure.ac
+++ b/configure.ac
AC_CHECK_HEADERS(termios.h, [have_termios_h="yes"])
# For the turbostat plugin
+have_asm_msrindex_h="no"
+AC_CHECK_HEADERS(asm/msr-index.h, [have_asm_msrindex_h="yes"])
+
+have_cpuid_h="no"
+AC_CHECK_HEADERS(cpuid.h, [have_cpuid_h="yes"])
+
AC_CHECK_HEADERS(sys/capability.h)
#
# Checks for typedefs, structures, and compiler characteristics.
plugin_swap="yes"
plugin_tcpconns="yes"
plugin_thermal="yes"
- plugin_turbostat="yes"
plugin_uptime="yes"
plugin_vmem="yes"
plugin_vserver="yes"
then
plugin_ipvs="yes"
fi
+ if test "x$have_asm_msrindex_h" = "xyes" && test "x$have_cpuid_h" = "xyes"
+ then
+ plugin_turbostat="yes"
+ fi
fi
if test "x$ac_system" = "xOpenBSD"