From 04df9710a954cf8461de8b76c904ed577f041e55 Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Tue, 24 Jul 2007 23:38:49 +0300 Subject: [PATCH] Add check for geoclue --- configure.ac | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 9e7c838..d5c066f 100644 --- a/configure.ac +++ b/configure.ac @@ -75,6 +75,16 @@ else AC_SUBST(BLUEZ_CFLAGS) fi +PKG_CHECK_MODULES(GEOCLUE, geoclue, HAVE_GEOCLUE=yes, HAVE_GEOCLUE=no) + +AM_CONDITIONAL(WITH_HILDON, test "x$HAVE_HILDON" = "xyes") + +if test "x$HAVE_GEOCLUE" = "xyes"; then + AC_DEFINE(WITH_GEOCLUE, 1, [build with Geoclue]) + AC_SUBST(GEOCLUE_CFLAGS) + AC_SUBST(GEOCLUE_LIBS) +fi + PKG_CHECK_MODULES(GNOME_VFS, gnome-vfs-2.0 >= 2.8.4.11 gnome-vfs-module-2.0 >= 2.8.4.11) AC_SUBST(GNOME_VFS_LIBS) AC_SUBST(GNOME_VFS_CFLAGS) @@ -99,9 +109,12 @@ PKG_CHECK_MODULES(SQLITE, sqlite3) AC_SUBST(SQLITE_LIBS) AC_SUBST(SQLITE_CFLAGS) -PKG_CHECK_MODULES(GSTREAMER, gstreamer-0.10) -AC_SUBST(GSTREAMER_LIBS) -AC_SUBST(GSTREAMER_CFLAGS) +PKG_CHECK_MODULES(GSTREAMER, gstreamer-0.10, HAVE_GST=yes, HAVE_GST=no) +if test "x$HAVE_GST" = "xyes"; then + AC_DEFINE(WITH_GST, 1, [build with Gstreamer]) + AC_SUBST(GSTREAMER_LIBS) + AC_SUBST(GSTREAMER_CFLAGS) +fi # XXX: Check for expat AC_CHECK_HEADER(expat.h) -- 2.39.5