diff options
author | Robert Tari <robert@tari.in> | 2020-10-25 16:10:26 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2020-10-26 11:37:13 +0100 |
commit | babfaba6f6f22b9cfb821c713cac4dbaaefd8605 (patch) | |
tree | 022cde30d95c68e5922ae10f6ad3916bd11abb15 /configure.ac | |
parent | 21b8f5e95840ddfb65b9fcfdd1a9fe83c07a36b9 (diff) | |
download | ayatana-indicator-bluetooth-babfaba6f6f22b9cfb821c713cac4dbaaefd8605.tar.gz ayatana-indicator-bluetooth-babfaba6f6f22b9cfb821c713cac4dbaaefd8605.tar.bz2 ayatana-indicator-bluetooth-babfaba6f6f22b9cfb821c713cac4dbaaefd8605.zip |
Make dependency on liburl-dispatcher optional.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 11 |
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) |