-AC_ARG_ENABLE([gps],
- AC_HELP_STRING([--enable-gps], [enable GPS map support - experimental]),
- [libgps=$enableval], [libgps=yes])
-
-if test "x${libgps}" = "xyes" -a "x${HAVE_CLUTTER}" = "xyes" ; then
- PKG_CHECK_MODULES(LIBCHAMPLAIN, [champlain-0.12 >= 0.12],
- [
- HAVE_LIBCHAMPLAIN=yes
- AC_DEFINE(HAVE_LIBCHAMPLAIN, 1, [define to enable use of GPS maps])
- ],
- [
- HAVE_LIBCHAMPLAIN=no
- AC_MSG_WARN([$LIBCHAMPLAIN_PKG_ERRORS])
- ])
+if test "x${libgps}" = "xyes" -a "x${HAVE_CLUTTER}" = "xyes"; then
+ if test "x${gtk3}" != "xno"; then
+ PKG_CHECK_MODULES(LIBCHAMPLAIN, [champlain-0.12 >= 0.12],
+ [
+ HAVE_LIBCHAMPLAIN=yes
+ AC_DEFINE(HAVE_LIBCHAMPLAIN, 1, [define to enable use of maps])
+ ],
+ [
+ HAVE_LIBCHAMPLAIN=no
+ AC_MSG_WARN([$LIBCHAMPLAIN_PKG_ERRORS])
+ ])
+ else
+ HAVE_LIBCHAMPLAIN=disabled
+ fi