summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Hesse <[email protected]>2019-12-13 15:11:44 +0100
committerraveit65 <[email protected]>2020-01-10 16:53:23 +0100
commit9714c20d062af14e9b6cbf4cf3c9374acc6b9101 (patch)
tree5935e11e3078fae0bbbb8be2f92c59178ba365d8
parentc614601d1ec06a0de963039d247c8d0f6d1db298 (diff)
downloadmate-applets-9714c20d062af14e9b6cbf4cf3c9374acc6b9101.tar.bz2
mate-applets-9714c20d062af14e9b6cbf4cf3c9374acc6b9101.tar.xz
make the dbus directory configurable
-rw-r--r--configure.ac11
-rw-r--r--cpufreq/src/cpufreq-selector/Makefile.am2
2 files changed, 12 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 1709f512..3c5e19a3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -133,6 +133,17 @@ fi
AC_SUBST(LIBNOTIFY_CFLAGS)
AC_SUBST(LIBNOTIFY_LIBS)
+dnl -- Check for D-Bus -----------------------------------------
+AC_ARG_WITH(dbus-sys,
+ [AC_HELP_STRING([--with-dbus-sys=<dir>],
+ [where D-BUS system.d directory is])])
+if ! test -z "$with_dbus_sys" ; then
+ DBUS_SYS_DIR="$with_dbus_sys"
+else
+ DBUS_SYS_DIR='${sysconfdir}/dbus-1/system.d'
+fi
+AC_SUBST(DBUS_SYS_DIR)
+
dnl -- check for glib/gobject (required) --------------------------------------
PKG_CHECK_MODULES(CPUFREQ_SELECTOR, glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED)
AC_SUBST(CPUFREQ_SELECTOR_CFLAGS)
diff --git a/cpufreq/src/cpufreq-selector/Makefile.am b/cpufreq/src/cpufreq-selector/Makefile.am
index dc913c70..b75a26c4 100644
--- a/cpufreq/src/cpufreq-selector/Makefile.am
+++ b/cpufreq/src/cpufreq-selector/Makefile.am
@@ -50,7 +50,7 @@ dbus_services_in_files = org.mate.CPUFreqSelector.service.in
polkit_in_files = org.mate.cpufreqselector.policy.in
dbus_servicesdir = $(datadir)/dbus-1/system-services
-dbus_confdir = $(sysconfdir)/dbus-1/system.d
+dbus_confdir = $(DBUS_SYS_DIR)
polkitdir = $(datadir)/polkit-1/actions
if HAVE_POLKIT