[evolution-rss] fix evolution-data-server detection correctly pick other flavours in naming this package



commit 1fd78b2302aae96933433e8a19e587f0605987fb
Author: Lucian Langa <lucilanga gnome org>
Date:   Thu Jun 3 12:29:04 2010 +0300

    fix evolution-data-server detection
    correctly pick other flavours in naming this package

 configure.ac |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 7beea48..2473756 100644
--- a/configure.ac
+++ b/configure.ac
@@ -103,7 +103,12 @@ if test "x$GTKHTMLEDITOR" == "xYES"; then
         AC_SUBST(GTKHTML_EDITOR_LIBS)
 fi
 
-DATASERVER_VERSION=`$PKG_CONFIG --modversion evolution-data-server-1.2`
+PKG_CHECK_MODULES([EVOLUTION_DATASERVER], evolution-data-server-1.2, [have_ds=yes], [have_ds=no])
+if test "x$have_ds" == "xYES"; then
+       DATASERVER_VERSION=`$PKG_CONFIG --modversion evolution-data-server-1.2`
+else
+       DATASERVER_VERSION=`$PKG_CONFIG --modversion libedataserver-1.2`
+fi
 DATASERVER_VERSION=`echo $DATASERVER_VERSION|$AWK -F . '{print $1 * 1000000 + $2 * 1000 + $3}'`
 AC_SUBST(DATASERVER_VERSION)
 



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