summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-11-26 18:10:52 +0100
committerinfirit <[email protected]>2014-11-26 18:13:44 +0100
commit2894b06cdc581cf3f7fe6688f0b02f86f9a8e587 (patch)
tree8040a9a238e609b6129bb6bb6ec966093eaca4f7
parent7e02dd79e45a7e669ff9eb89454bc4e6955abfb0 (diff)
downloadmate-applets-2894b06cdc581cf3f7fe6688f0b02f86f9a8e587.tar.bz2
mate-applets-2894b06cdc581cf3f7fe6688f0b02f86f9a8e587.tar.xz
add --with-cpufreq-lib configure option
Use --with-cpufreq-lib=[cpufreq/cpupower] to set library that is available on your system. Default still is cpufreq. Based on gnome-applets commit: ec4da5d83d810eb19087956da26ba93329a4d267 Gnome bug: https://bugzilla.gnome.org/show_bug.cgi?id=698222
-rw-r--r--configure.ac6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 2fbc1e55..bf0016a8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -492,11 +492,15 @@ if test "x$HAVE_POLKIT" = "xyes"; then
suid=no
fi
+AC_ARG_WITH([cpufreq-lib],
+ AS_HELP_STRING([--with-cpufreq-lib=lib], [library to use for cpufreq applet @<:@default=cpufreq@:>@]),
+ [with_cpufreq_lib=$withval], [with_cpufreq_lib="cpufreq"])
+
AC_CHECK_HEADER(cpufreq.h, have_libcpufreq=yes, have_libcpufreq=no)
LIBCPUFREQ_LIBS=
if test "x$have_libcpufreq" = "xyes"; then
AC_DEFINE([HAVE_LIBCPUFREQ], [1], [Have libcpufreq.])
- LIBCPUFREQ_LIBS=-lcpufreq
+ LIBCPUFREQ_LIBS="l$with_cpufreq_lib"
fi
AM_CONDITIONAL(HAVE_LIBCPUFREQ, test x$have_libcpufreq = xyes)
AC_SUBST(LIBCPUFREQ_LIBS)