]> git.street.me.uk Git - andy/viking.git/blobdiff - configure.ac
Enable compile time option for Mapbox access token.
[andy/viking.git] / configure.ac
index a4961ad1a6e90dbaa1da7652379e5d23645e50ad..c3f3a46b1d07ab2d6b76b6bbc3eccd59a4d79c00 100644 (file)
@@ -431,6 +431,16 @@ AC_PROG_CXX
 m4_popdef([AC_MSG_ERROR])
 ##
 
+dnl Compile time defined access token
+AC_ARG_WITH(mapbox_access_token,
+            [AC_HELP_STRING([--with-mapbox_access_token],
+            [Access token for MapBox tiles.
+              Please register your own if you're going to distribute the
+              package, as requests are limited per token.])],
+           [VIK_CONFIG_MAPBOX_TOKEN="\"${withval}\""],
+           [VIK_CONFIG_MAPBOX_TOKEN="\"pk.eyJ1Ijoicndub3JyaXMiLCJhIjoiY2lxc294anN2MDA5bWhzbWFseWsxMW1ydiJ9.HcybKtZsiG6RVuOHg481Kg\""])
+AC_DEFINE_UNQUOTED(VIK_CONFIG_MAPBOX_TOKEN, ${VIK_CONFIG_MAPBOX_TOKEN}, [geonames username])
+
 
 AC_ARG_WITH(geonames_username,
             [AC_HELP_STRING([--with-geonames_username],