champlain-marker.h \
champlain-version.h
-libchamplain_0_3_la_LIBADD = $(DEPS_LIBS) ../tidy/libtidy-1.0.la
+libchamplain_0_3_la_LIBADD = $(DEPS_LIBS) $(SOUP_LIBS) ../tidy/libtidy-1.0.la
libchamplain_includedir = $(includedir)/libchamplain-0.3/champlain
AM_CPPFLAGS = \
$(DEPS_CFLAGS) \
+ $(SOUP_CFLAGS) \
-DDATADIR=\""$(datadir)"\" \
-I$(top_srcdir)/tidy \
-I$(top_srcdir) \
#include <glib.h>
#include <glib/gprintf.h>
#include <glib-object.h>
+#ifdef HAVE_LIBSOUP_GNOME
+#include <libsoup/soup-gnome.h>
+#else
#include <libsoup/soup.h>
+#endif
#include <math.h>
#include <string.h>
#include <clutter-cairo.h>
if (!soup_session)
soup_session = soup_session_async_new_with_options ("proxy-uri",
- soup_uri_new (priv->proxy_uri), NULL);
+ soup_uri_new (priv->proxy_uri),
+#ifdef HAVE_LIBSOUP_GNOME
+ SOUP_SESSION_ADD_FEATURE_BY_TYPE, SOUP_TYPE_PROXY_RESOLVER_GNOME,
+#endif
+ NULL);
uri = champlain_network_map_source_get_tile_uri (network_map_source,
champlain_tile_get_x (tile), champlain_tile_get_y (tile),
clutter-0.8 >= 0.8.4,
clutter-cairo-0.8 >= 0.8,
cairo >= 1.4,
- libsoup-2.4 >= 2.4.1,
gio-2.0 >= 2.16
]
)
GTK_DOC_CHECK(1.9)
IDT_COMPILE_WARNINGS
+# -----------------------------------------------------------
+# Check for libsoup, use libsoup-gnome if available
+# -----------------------------------------------------------
+PKG_CHECK_MODULES(SOUP, libsoup-gnome-2.4 >= 2.27, [
+ have_soup_gnome="yes",
+ AC_DEFINE(HAVE_LIBSOUP_GNOME,1,[libsoup gnome integration])
+ ], have_soup_gnome="no")
+
+if test "x$have_soup_gnome" = "xno"; then
+ PKG_CHECK_MODULES(SOUP, libsoup-2.4 >= 2.4.1,
+ have_soup="yes", have_soup="no")
+fi
+
+AC_SUBST(SOUP_CFLAGS)
+AC_SUBST(SOUP_LIBS)
+
# -----------------------------------------------------------
# Enable debug
# -----------------------------------------------------------
echo " Compiler flags: ${CPPFLAGS}"
echo " Documentation: ${enable_gtk_doc}"
echo " Debug: ${enable_debug}"
+echo " libsoup-gnome: ${have_soup_gnome}"
echo " Gtk+ View: ${enable_gtk}"
echo ""
echo "Bindings:"