2 # Process this file with autoconf to produce a configure script.
5 AC_INIT(viking, 0.1.1pre1)
7 dnl AC_CONFIG_SRCDIR([src/main.c])
8 dnl AC_CONFIG_HEADERS([config.h])
10 # Checks for programs.
14 # Checks for libraries.
15 AM_PATH_GTK_2_0(2.2.0,,AC_MSG_ERROR(needs GTK+ 2.2.0),gthread)
17 # Checks for header files.
19 AC_CHECK_HEADERS([malloc.h netdb.h netinet/in.h stdlib.h string.h sys/param.h sys/socket.h unistd.h])
21 # Checks for typedefs, structures, and compiler characteristics.
25 # Checks for library functions.
28 AC_CHECK_FUNCS([bzero floor gethostbyname memset mkdir pow realpath socket sqrt strcasecmp strchr strdup strncasecmp strtol strtoul])
31 AC_ARG_ENABLE(alphabetized-trw, AC_HELP_STRING([--enable-alphabetized-trw],
32 [enable alphabetized track & waypoints (default is enable)]),
33 [ac_cv_enable_alpha_trw=$enableval],
34 [ac_cv_enable_alpha_trw=yes])
35 AC_CACHE_CHECK([whether to enable alphabetized track & waypoint],
36 [ac_cv_enable_alpha_trw], [ac_cv_enable_alpha_trw=yes])
37 case $ac_cv_enable_alpha_trw in
39 AC_DEFINE(VIK_CONFIG_ALPHABETIZED_TRW, [], [NO ALPHABETIZED TRW])
44 AC_CONFIG_FILES([Makefile