CFLAGS="$CFLAGS $DEBUG_FLAGS -Wall -Wmissing-prototypes -Wmissing-declarations"
-PKG_CHECK_MODULES(GLIBGTK, glib-2.0 gconf-2.0 dbus-glib-1 gtk+-2.0 libgtkhtml-3.8)
+PKG_CHECK_MODULES(GLIBGTK, glib-2.0 gconf-2.0 dbus-glib-1 gtk+-2.0)
AC_SUBST(GLIBGTK_LIBS)
AC_SUBST(GLIBGTK_CFLAGS)
+dnl Maemo has 3.8, but prefer new version in case it's available
+PKG_CHECK_MODULES(GTKHTML, libgtkhtml-3.14, HAVE_GTKHTML=yes, HAVE_GTKHTML=no)
+if test "x$HAVE_GTKHTML" = "xno"; then
+ PKG_CHECK_MODULES(GTKHTML, libgtkhtml-3.8)
+fi
+AC_SUBST(GTKHTML_LIBS)
+AC_SUBST(GTKHTML_CFLAGS)
+
AC_ARG_ENABLE([770],AS_HELP_STRING([--enable-770],[Build for Nokia 770/N800]),
[enable_770=$enableval], [enable_770=no])
bin_PROGRAMS = mapper osm2db
-mapper_CFLAGS = $(GLIBGTK_CFLAGS) \
+mapper_CFLAGS = $(GLIBGTK_CFLAGS) $(GTKHTML_CFLAGS) \
$(OSSO_CFLAGS) $(CONIC_CFLAGS) \
$(HILDON_CFLAGS) $(HILDONFM_CFLAGS) $(HILDON_HELP_CFLAGS) $(OSSO_HELP_CFLAGS) \
$(GNOME_VFS_CFLAGS) $(GCONF_CFLAGS) \
$(BLUEZ_CFLAGS) \
$(GYPSY_CFLAGS)
-mapper_LDADD = $(GLIBGTK_LIBS) \
+mapper_LDADD = $(GLIBGTK_LIBS) $(GTKHTML_LIBS) \
$(OSSO_LIBS) $(CONIC_LIBS) \
$(HILDON_LIBS) $(HILDONFM_LIBS) $(HILDON_HELP_LIBS) $(OSSO_HELP_LIBS) \
$(GNOME_VFS_LIBS) $(GCONF_LIBS) \