aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-10-26 11:38:05 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-10-26 11:38:05 +0100
commitc53da7f664feb24ce3f7a87145dc33189636e274 (patch)
tree730a45a1872d16cdee95b47c26fc4e42aa63f623 /configure.ac
parent21b8f5e95840ddfb65b9fcfdd1a9fe83c07a36b9 (diff)
parent00c7151199adb5271b558a39d2398804c0b58447 (diff)
downloadayatana-indicator-bluetooth-c53da7f664feb24ce3f7a87145dc33189636e274.tar.gz
ayatana-indicator-bluetooth-c53da7f664feb24ce3f7a87145dc33189636e274.tar.bz2
ayatana-indicator-bluetooth-c53da7f664feb24ce3f7a87145dc33189636e274.zip
Merge branch 'sunweaver-pr/make-url-dispatcher-optional'
Attributes GH PR #4: https://github.com/AyatanaIndicators/ayatana-indicator-bluetooth/pull/4
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac11
1 files changed, 9 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 7dfa45d..65a0155 100644
--- a/configure.ac
+++ b/configure.ac
@@ -19,8 +19,15 @@ GIO_REQUIRED_VERSION=2.36
URL_DISPATCHER_1_REQUIRED_VERSION=1
PKG_CHECK_MODULES(SERVICE_DEPS, [glib-2.0 >= $GLIB_REQUIRED_VERSION
- gio-unix-2.0 >= $GIO_REQUIRED_VERSION
- url-dispatcher-1 >= $URL_DISPATCHER_1_REQUIRED_VERSION])
+ gio-unix-2.0 >= $GIO_REQUIRED_VERSION])
+
+PKG_CHECK_EXISTS(url-dispatcher-1,
+ [have_urldispatcher="yes"],
+ [have_urldispatcher="no"])
+
+if test "x$have_urldispatcher" == "xyes"; then
+ PKG_CHECK_MODULES(URL_DISPATCHER, [url-dispatcher-1 >= $URL_DISPATCHER_1_REQUIRED_VERSION])
+fi
SYSTEMD_USERDIR=`$PKG_CONFIG --variable=systemduserunitdir systemd`
AC_SUBST(SYSTEMD_USERDIR)