projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Turbostat: test asm/msr-index.h compatibility
[collectd.git]
/
configure.ac
diff --git
a/configure.ac
b/configure.ac
index
35ce32b
..
2ef82ee
100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-593,6
+593,12
@@
AC_CHECK_HEADERS(termios.h, [have_termios_h="yes"])
have_asm_msrindex_h="no"
AC_CHECK_HEADERS(asm/msr-index.h, [have_asm_msrindex_h="yes"])
have_asm_msrindex_h="no"
AC_CHECK_HEADERS(asm/msr-index.h, [have_asm_msrindex_h="yes"])
+have_usable_asm_msrindex_h="no"
+if test "x$have_asm_msrindex_h" = "xyes"
+then
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include<asm/msr-index.h>]],[[int y = MSR_CORE_C3_RESIDENCY;]])], [have_usable_asm_msrindex_h="yes"])
+fi
+
have_cpuid_h="no"
AC_CHECK_HEADERS(cpuid.h, [have_cpuid_h="yes"])
have_cpuid_h="no"
AC_CHECK_HEADERS(cpuid.h, [have_cpuid_h="yes"])
@@
-5193,7
+5199,7
@@
then
then
plugin_ipvs="yes"
fi
then
plugin_ipvs="yes"
fi
- if test "x$have_asm_msrindex_h" = "xyes" && test "x$have_cpuid_h" = "xyes"
+ if test "x$have_
usable_
asm_msrindex_h" = "xyes" && test "x$have_cpuid_h" = "xyes"
then
plugin_turbostat="yes"
fi
then
plugin_turbostat="yes"
fi