From: Kaj-Michael Lang Date: Tue, 24 Jul 2007 20:38:49 +0000 (+0300) Subject: Add check for geoclue X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=04df9710a954cf8461de8b76c904ed577f041e55;p=mapper Add check for geoclue --- 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)