AC_ARG_ENABLE([geoclue],AS_HELP_STRING([--enable-geoclue],[Use geoclue]),
[enable_geoclue=$enableval], [enable_geoclue=no])
+AC_ARG_ENABLE([hal],AS_HELP_STRING([--enable-hal],[Use HAL for special hardware keys]),
+ [enable_hal=$enableval], [enable_hal=no])
+
AC_ARG_ENABLE([cairo],AS_HELP_STRING([--enable-cairo],[Use cairo]),
[enable_cairo=$enableval], [enable_cairo=no])
AC_DEFINE([WITH_DEVICE_770], 1, [With 770/N800 specific code])
fi
+if test "x$enable_hal" = "xyes" ; then
+ PKG_CHECK_MODULES(HAL, hal)
+ AC_SUBST(HAL_LIBS)
+ AC_SUBST(HAL_CFLAGS)
+ AC_DEFINE([WITH_HAL], 1, [Listen to special events using hal])
+fi
+
AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
if test "x$enable_itbtdbus" = "xno" ; then
bin_PROGRAMS = mapper osm2db
-mapper_CFLAGS = $(GLIBGTK_CFLAGS) $(GTKHTML_CFLAGS) \
+mapper_CFLAGS = $(GLIBGTK_CFLAGS) $(GTKHTML_CFLAGS) $(CAIRO_CFLAGS) $(GTKGLEXT_CFLAGS) \
$(OSSO_CFLAGS) $(CONIC_CFLAGS) \
$(HILDON_CFLAGS) $(HILDONFM_CFLAGS) $(HILDON_HELP_CFLAGS) $(OSSO_HELP_CFLAGS) \
$(GNOME_VFS_CFLAGS) $(GCONF_CFLAGS) \
$(SQLITE_CFLAGS) $(LIBCURL_CFLAGS) \
$(DBUS_GLIB_CFLAGS) \
$(BLUEZ_CFLAGS) $(LIBGPSBT_CFLAGS) \
- $(GYPSY_CFLAGS)
+ $(GYPSY_CFLAGS) $(HAL_CFLAGS)
-mapper_LDADD = $(GLIBGTK_LIBS) $(GTKHTML_LIBS) \
+mapper_LDADD = $(GLIBGTK_LIBS) $(GTKHTML_LIBS) $(CAIRO_LIBS) $(GTKGLEXT_LIBS) \
$(OSSO_LIBS) $(CONIC_LIBS) \
$(HILDON_LIBS) $(HILDONFM_LIBS) $(HILDON_HELP_LIBS) $(OSSO_HELP_LIBS) \
$(GNOME_VFS_LIBS) $(GCONF_LIBS) \
$(LIBXML2_LIBS) $(GSTREAMER_LIBS) $(ESPEAK_LIBS) \
$(SQLITE_LIBS) $(LIBCURL_LIBS) \
$(DBUS_GLIB_LIBS) $(BLUEZ_LIBS) \
- $(GYPSY_LIBS) $(LIBGPSBT_LIBS) \
+ $(GYPSY_LIBS) $(LIBGPSBT_LIBS) $(HAL_LIBS)\
-lm libgtkgps.la libosmdb.la libmappergps.la
mapper_SOURCES = \