X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=configure.ac;h=55f78d8a73d3d9950d2dcce7b5f16f4f6cd77372;hb=0dd723313db820eafeb9edcf58815b53a29e55d8;hp=8f2a9ab3370e65f05d12703313dc4068a11d310b;hpb=c17c1d4aedd84b8308cc600c45bb938249732440;p=collectd.git diff --git a/configure.ac b/configure.ac index 8f2a9ab3..55f78d8a 100644 --- a/configure.ac +++ b/configure.ac @@ -521,32 +521,6 @@ if test "x$ac_system" = "xLinux"; then ]] ) # For the turbostat plugin - AC_CHECK_HEADERS([asm/msr-index.h], - [have_asm_msrindex_h="yes"], - [have_asm_msrindex_h="no"] - ) - - if test "x$have_asm_msrindex_h" = "xyes"; then - AC_CACHE_CHECK([whether asm/msr-index.h has MSR_PKG_C10_RESIDENCY], - [c_cv_have_usable_asm_msrindex_h], - [ - AC_COMPILE_IFELSE( - [ - AC_LANG_PROGRAM( - [[#include]], - [[ - int y = MSR_PKG_C10_RESIDENCY; - return(y); - ]] - ) - ], - [c_cv_have_usable_asm_msrindex_h="yes"], - [c_cv_have_usable_asm_msrindex_h="no"], - ) - ] - ) - fi - AC_CHECK_HEADERS([cpuid.h], [have_cpuid_h="yes"], [have_cpuid_h="no (cpuid.h not found)"] @@ -6227,7 +6201,7 @@ if test "x$ac_system" = "xLinux"; then plugin_ipvs="yes" fi - if test "x$c_cv_have_usable_asm_msrindex_h" = "xyes" && test "x$have_cpuid_h" = "xyes"; then + if test "x$have_cpuid_h" = "xyes"; then plugin_turbostat="yes" fi