]> git.street.me.uk Git - andy/viking.git/blame - configure.ac
sanity check pasted lat/lon coordinate
[andy/viking.git] / configure.ac
CommitLineData
9903c388
EB
1# -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ(2.59)
dad55b79 5AC_INIT(viking, 0.1.1pre2)
9903c388
EB
6AM_INIT_AUTOMAKE()
7dnl AC_CONFIG_SRCDIR([src/main.c])
734652bf 8dnl AC_CONFIG_HEADERS([config.h])
9903c388
EB
9
10# Checks for programs.
11AC_PROG_CC
12AC_PROG_MAKE_SET
13
dad55b79
GB
14AC_CHECK_PROG([GDK_PIXBUF_CSOURCE],gdk-pixbuf-csource,[yes])
15if test $GDK_PIXBUF_CSOURCE != "yes"
16then
17 AC_MSG_ERROR([gdk-pixbuf-csource is needed but not found])
18fi
19
9903c388
EB
20# Checks for libraries.
21AM_PATH_GTK_2_0(2.2.0,,AC_MSG_ERROR(needs GTK+ 2.2.0),gthread)
22
23# Checks for header files.
24AC_HEADER_STDC
25AC_CHECK_HEADERS([malloc.h netdb.h netinet/in.h stdlib.h string.h sys/param.h sys/socket.h unistd.h])
26
27# Checks for typedefs, structures, and compiler characteristics.
28AC_C_CONST
29AC_TYPE_MODE_T
30
31# Checks for library functions.
32AC_FUNC_STAT
33AC_FUNC_STRTOD
34AC_CHECK_FUNCS([bzero floor gethostbyname memset mkdir pow realpath socket sqrt strcasecmp strchr strdup strncasecmp strtol strtoul])
35
dad55b79
GB
36# Expat
37
734652bf
EB
38# Options
39AC_ARG_ENABLE(alphabetized-trw, AC_HELP_STRING([--enable-alphabetized-trw],
40 [enable alphabetized track & waypoints (default is enable)]),
41 [ac_cv_enable_alpha_trw=$enableval],
42 [ac_cv_enable_alpha_trw=yes])
43AC_CACHE_CHECK([whether to enable alphabetized track & waypoint],
44 [ac_cv_enable_alpha_trw], [ac_cv_enable_alpha_trw=yes])
45case $ac_cv_enable_alpha_trw in
46 yes)
47 AC_DEFINE(VIK_CONFIG_ALPHABETIZED_TRW, [], [NO ALPHABETIZED TRW])
48 ;;
49esac
50
51# Configuration
9903c388 52AC_CONFIG_FILES([Makefile
0912fc7e 53 src/Makefile
dad55b79 54 src/icons/Makefile
0912fc7e
EB
55 doc/Makefile
56 doc/dev/Makefile])
9903c388 57AC_OUTPUT