2
m4_esyscmd([./git-version-gen .tarball-version]),
3
[gpredict-discussion@lists.sourceforge.net])
4
AC_CONFIG_SRCDIR(src/main.c)
3
5
AM_CONFIG_HEADER(build-config.h)
5
AM_INIT_AUTOMAKE(gpredict, 1.4git)
6
AM_INIT_AUTOMAKE([dist-bzip2 no-dist-gzip 1.6])
8
9
AC_PROG_INTLTOOL([0.21])
11
# kernel style compile messages
12
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
11
dnl check for programs
20
23
CFLAGS="${CFLAGS} -Wall"
24
27
AC_CHECK_LIB([m], [sin],, AC_MSG_ERROR([Can't find libm. Check your libc installation]))
26
dnl check for glib, gtk, and goocanvas libraries
27
pkg_modules="gtk+-2.0 >= 2.18.0 glib-2.0 >= 2.22.0 gthread-2.0 >= 2.22.0 goocanvas >= 0.15 libcurl >= 7.19.0"
28
PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
29
# check for goocanvas (depends on gtk and glib)
30
if pkg-config --atleast-version=7.19 libcurl; then
31
CFLAGS="$CFLAGS `pkg-config --cflags libcurl`"
32
LIBS="$LIBS `pkg-config --libs libcurl`"
34
AC_MSG_ERROR(Gpredict requires libcurl-dev 7.19 or later)
37
# check for goocanvas (depends on gtk and glib)
38
if pkg-config --atleast-version=0.15 goocanvas; then
39
CFLAGS="$CFLAGS `pkg-config --cflags goocanvas`"
40
LIBS="$LIBS `pkg-config --libs goocanvas`"
42
AC_MSG_ERROR(Gpredict requires libgoocanvas-dev 0.15 or later)
45
# check for libgps (optional)
46
if pkg-config --atleast-version=2.90 libgps; then
47
CFLAGS="$CFLAGS `pkg-config --cflags libgps`"
48
LIBS="$LIBS `pkg-config --libs libgps`"
50
AC_DEFINE(HAS_LIBGPS, 1, [Define if libgps is available])
29
55
AC_SUBST(PACKAGE_CFLAGS)
30
56
AC_SUBST(PACKAGE_LIBS)
32
dnl optional check for libgps
33
PKG_CHECK_MODULES(LIBGPS, [ libgps >= 2.90 ], [
34
CFLAGS="$CFLAGS $LIBGPS_CFLAGS";
35
LIBS="$LIBS $LIBGPS_LIBS";
37
AC_DEFINE(HAS_LIBGPS, 1, [Define if libgps is available])
42
dnl Hamlib not needed if we go for the TCP based I/F
44
dnl PKG_CHECK_MODULES(HAMLIB, hamlib, [
45
dnl CFLAGS="$CFLAGS $HAMLIB_CFLAGS";
46
dnl LIBS="$LIBS $HAMLIB_LIBS";
48
dnl AC_DEFINE(HAVE_HAMLIB, 1, [Define if hamlib is available])
51
dnl AC_DEFINE(HAVE_HAMLIB, 0, [Define if hamlib is unvailable])
55
dnl Add the languages which your application supports here.
56
dnl Note that other progs only have ALL_LINGUAS and AM_GLIB_GNU_GETTEXT
58
# Add the languages which your application supports here.
59
# Note that other progs only have ALL_LINGUAS and AM_GLIB_GNU_GETTEXT
57
60
ALL_LINGUAS="cs da de en_GB en_US es fi fr it lt ru th uk"
58
61
GETTEXT_PACKAGE=gpredict
59
62
AC_SUBST(GETTEXT_PACKAGE)
63
66
"definition of GETTEXT_PACKAGE")
66
dnl compiler flags to enable generating coverage report
69
# compiler flags to enable generating coverage report
68
71
AC_ARG_ENABLE(coverage, [ --enable-coverage enable coverge reports],enable_coerage=yes,enable_coverage=no)
69
72
if test "$enable_coverage" = yes ; then
70
73
CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage";
129
126
if test "$havelibgps" = true ; then
130
127
echo Libgps version..... : $GPS_V
132
dnl echo SQLite version..... : $SQL_V
133
dnl if test "$havehamlib" = true ; then
134
dnl echo Hamlib version..... : $HAML_V
136
dnl echo Hamlib version..... : none
138
dnl echo Enable coverage.... : $enable_coverage
129
# echo Enable coverage.... : $enable_coverage