+2005-10-28 Guilhem BONNEFILLE <guilhem.bonnefille@gmail.com>
+ * configure.ac: Adding --with-mapcache configure option
+ * src/config.h: Removed because no more used (generated)
+
2005-10-18
Alex Foobarian <foobarian@gmail.com>:
* Fix ruler declination in UTM mode
AC_INIT(viking, 0.1.1pre2)
AM_INIT_AUTOMAKE()
dnl AC_CONFIG_SRCDIR([src/main.c])
-dnl AC_CONFIG_HEADERS([config.h])
+AC_CONFIG_HEADERS([config.h])
# Checks for programs.
AC_PROG_CC
;;
esac
+AC_ARG_WITH(mapcache,
+ [AC_HELP_STRING([--with-mapcache],
+ [specify the size of the map cache (default is 50331648)])],
+ [if test "x$withval" = "xno"; then
+ VIK_CONFIG_MAPCACHE_SIZE=0;
+ elif test "x$withval" = "xyes"; then
+ AC_MSG_ERROR([Please, set a value for size of the map cache])
+ else
+ VIK_CONFIG_MAPCACHE_SIZE=${withval}
+ fi],
+ [VIK_CONFIG_MAPCACHE_SIZE=50331648])
+AC_DEFINE_UNQUOTED(VIK_CONFIG_MAPCACHE_SIZE, ${VIK_CONFIG_MAPCACHE_SIZE},
+ [Size of the map cache])
+
# Configuration
AC_CONFIG_FILES([Makefile
src/Makefile
+++ /dev/null
-#ifndef VIK_CONFIG_H
-#define VIK_CONFIG_H
-
-#define VIK_CONFIG_MAPCACHE_SIZE 50331648 /* 48 meggerbytes */
-
-
-/* suggestions for what else you want here? */
-/* how about waypoint drawing -- fast or slow? */
-
-#endif