[gnome-boxes] Use the right tracker vala pkg based on what we found in configure



commit 74071c698a578d9d61f8df10620eae3c07376197
Author: Alexander Larsson <alexl redhat com>
Date:   Wed Mar 6 14:14:19 2013 +0100

    Use the right tracker vala pkg based on what we found in configure

 configure.ac    |    5 +++--
 src/Makefile.am |    2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 4751fad..4e234a6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -80,9 +80,10 @@ PKG_CHECK_MODULES(BOXES, [
   libsoup-2.4 >= $LIBSOUP_REQUIRED
 ])
 
-PKG_CHECK_MODULES(TRACKER, [tracker-sparql-0.16 >= $TRACKER_SPARQL], [] ,
-   [PKG_CHECK_MODULES(TRACKER, [tracker-sparql-0.14 >= $TRACKER_SPARQL])]
+PKG_CHECK_MODULES(TRACKER, [tracker-sparql-0.16 >= $TRACKER_SPARQL], [TRACKER_VERSION=0.16] ,
+   [PKG_CHECK_MODULES(TRACKER, [tracker-sparql-0.14 >= $TRACKER_SPARQL], [TRACKER_VERSION=0.14])]
 )
+AC_SUBST(TRACKER_VERSION)
 
 
 VALA_ADD_CHECKFILE([src/gnome_boxes_vala.stamp])
diff --git a/src/Makefile.am b/src/Makefile.am
index 3c6d140..3c1b7c1 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -36,7 +36,7 @@ AM_VALAFLAGS =                                                \
        --pkg libxml-2.0                                \
        --pkg posix                                     \
        --pkg spice-client-gtk-3.0                      \
-       --pkg tracker-sparql-0.14                       \
+       --pkg tracker-sparql-$(TRACKER_VERSION)         \
        $(VALA_DEBUG_FLAGS)                             \
        $(NULL)
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]