[bijiben] make zeitgeist dependency optional
- From: Pierre-Yves Luyten <pyluyten src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [bijiben] make zeitgeist dependency optional
- Date: Sun, 29 Nov 2015 20:50:56 +0000 (UTC)
commit 35ea9386d2ad7f7cf043592462c0c3486892dee1
Author: Poncho <poncho spahan ch>
Date: Sun Nov 29 21:50:16 2015 +0100
make zeitgeist dependency optional
configure.ac | 21 ++++++++++++++++++---
1 files changed, 18 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index d24bf6c..97315c9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -83,9 +83,24 @@ PKG_CHECK_MODULES(BIJIBEN,
uuid
webkitgtk-3.0])
-PKG_CHECK_MODULES(ZEITGEIST, zeitgeist-2.0, [have_zeitgeist=yes], [have_zeitgeist=no])
-AM_CONDITIONAL(BUILD_ZEITGEIST, test x$have_zeitgeist = xyes)
+# check for zeitgeist
+AC_ARG_ENABLE([zeitgeist],
+ [AS_HELP_STRING([--disable-zeitgeist], [Disable zeitgeist support @<:@auto@:>@])],
+ [:],
+ [enable_zeitgeist=auto])
+
+AS_IF([test "$enable_zeitgeist" != "no"],
+ [PKG_CHECK_MODULES([ZEITGEIST],
+ [zeitgeist-2.0],
+ [enable_zeitgeist=yes],
+ [AS_IF([test "$enable_zeitgeist" = "yes"],
+ [AC_MSG_ERROR([zeitgeist-2.0 required, but not found.])],
+ [enable_zeitgeist=no])
+ ])
+])
+
+AM_CONDITIONAL([BUILD_ZEITGEIST], [test "$enable_zeitgeist" = "yes"])
GLIB_GSETTINGS
@@ -113,7 +128,7 @@ src/Makefile
AC_OUTPUT
echo " Version: $VERSION
- Enable Zeitgeist $have_zeitgeist
+ Enable Zeitgeist $enable_zeitgeist
Run make to compile."
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]