From 40fa78632cf5b18a0d6e173f368ee0b562824507 Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Fri, 2 Nov 2007 19:14:48 +0200 Subject: [PATCH] Check for geoclue or gpsd only if requested --- configure.ac | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 524fcf1..7c73501 100644 --- a/configure.ac +++ b/configure.ac @@ -57,6 +57,12 @@ AC_ARG_ENABLE([itbtdbus],AS_HELP_STRING([--enable-itbtdbus],[Use IT D-Bus Blueto AC_ARG_ENABLE([btdbus],AS_HELP_STRING([--enable-btdbus],[Use D-Bus bluez interface]), [enable_btdbus=$enableval], [enable_btdbus=no]) +AC_ARG_ENABLE([gpsd],AS_HELP_STRING([--enable-gpsd],[Use gpsd]), + [enable_gpsd=$enableval], [enable_gpsd=no]) + +AC_ARG_ENABLE([geoclue],AS_HELP_STRING([--enable-geoclue],[Use geoclue]), + [enable_geoclue=$enableval], [enable_geoclue=no]) + if test "x$enable_770" = "xno" ; then WITH_DEVICE_770=no else @@ -185,19 +191,22 @@ fi AM_CONDITIONAL(WITH_HILDON, test "x$HAVE_HILDON" = "xyes") AM_CONDITIONAL(WITH_OSSO, test "x$HAVE_OSSO" = "xyes") +if test "x$enable_gpsd" = "xyes" ; then AC_CHECK_HEADERS([gps.h], [ac_cv_gps_h=yes]) AC_CHECK_LIB(gps, gps_open,[ac_cv_libgps=yes] ) if test "x$ac_cv_libgps" = xyes; then AC_DEFINE(WITH_LIBGPS, 1, [build with gpsd]) fi +fi +if test "x$enable_geoclue" = "xyes" ; then PKG_CHECK_MODULES(GEOCLUE, geoclue, HAVE_GEOCLUE=yes, HAVE_GEOCLUE=no) - if test "x$HAVE_GEOCLUE" = "xyes"; then AC_DEFINE(WITH_GEOCLUE, 1, [build with Geoclue]) AC_SUBST(GEOCLUE_CFLAGS) AC_SUBST(GEOCLUE_LIBS) fi +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) -- 2.39.5