]> err.no Git - mapper/commitdiff
Add check for geoclue
authorKaj-Michael Lang <milang@angel.tal.org>
Tue, 24 Jul 2007 20:38:49 +0000 (23:38 +0300)
committerKaj-Michael Lang <milang@angel.tal.org>
Tue, 24 Jul 2007 20:38:49 +0000 (23:38 +0300)
configure.ac

index 9e7c83825b8af5267ece7a9143e0502cd03c9e41..d5c066fa808461936db70f0d6b94b6a558eec83c 100644 (file)
@@ -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)