Skip to content

Instantly share code, notes, and snippets.

@kekh
Created October 23, 2016 15:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kekh/7d46588a6f4f8097cef80676bbde2f78 to your computer and use it in GitHub Desktop.
Save kekh/7d46588a6f4f8097cef80676bbde2f78 to your computer and use it in GitHub Desktop.
CPUfreqd w/ CPUpower compatibility
--- configure.in 2010-04-18 17:57:30.000000000 +0400
+++ configure.in 2013-01-04 14:37:44.687427237 +0400
@@ -4,7 +4,7 @@
AM_INIT_AUTOMAKE(1.8 dist-bzip2 foreign)
AC_CONFIG_SRCDIR([config.h.in])
-AM_CONFIG_HEADER(config.h)
+AC_CONFIG_HEADERS(config.h)
# libtool
AC_LIBTOOL_DLOPEN
@@ -38,9 +38,9 @@
AC_CHECK_LIB([dl], [dlopen],
[ CPUFREQD_LDFLAGS="${CPUFREQD_LDFLAGS} -ldl" ],
[ AC_MSG_ERROR([You need a working dlopen to build cpufreqd]) ])
-AC_CHECK_LIB([cpufreq], [cpufreq_cpu_exists],
- [ CPUFREQD_LDFLAGS="${CPUFREQD_LDFLAGS} -lcpufreq" ],
- [ AC_MSG_ERROR([You need libcpufreq from cpufrequtils to build cpufreqd]) ])
+AC_CHECK_LIB([cpupower], [cpupower_is_cpu_online],
+ [ CPUFREQD_LDFLAGS="${CPUFREQD_LDFLAGS} -lcpupower" ],
+ [ AC_MSG_ERROR([You need libcpupower from cpupower to build cpufreqd]) ])
AC_SUBST(CPUFREQD_LDFLAGS)
DISABLED_PLUGINS=""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment