configure.ac 1.99 KB
Newer Older
1
# This file is processed by autoconf to create a configure script
2
AC_INIT([gnome-maps],
Jonas Danielsson's avatar
Jonas Danielsson committed
3
        [3.16.1],
4 5
        [https://bugzilla.gnome.org/enter_bug.cgi?product=gnome-maps],
        [gnome-maps])
Zeeshan Ali's avatar
Zeeshan Ali committed
6 7

AC_CONFIG_HEADERS([config/config.h])
8
AC_CONFIG_SRCDIR([src/main.js])
Zeeshan Ali's avatar
Zeeshan Ali committed
9 10
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([config])
11
AC_PROG_LN_S
Zeeshan Ali's avatar
Zeeshan Ali committed
12 13 14 15 16

m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])

AC_CANONICAL_TARGET

17
AM_INIT_AUTOMAKE([1.10 no-define foreign dist-xz no-dist-gzip])
Zeeshan Ali's avatar
Zeeshan Ali committed
18 19 20 21 22 23 24 25
AM_MAINTAINER_MODE([enable])

GETTEXT_PACKAGE=AC_PACKAGE_NAME
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[The name of the gettext domain])
IT_PROG_INTLTOOL(0.40.0)
PKG_PROG_PKG_CONFIG([0.22])

Jonas Danielsson's avatar
Jonas Danielsson committed
26 27 28
GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
AC_SUBST(GLIB_MKENUMS)

Mattias Bengtsson's avatar
Mattias Bengtsson committed
29
GIO_MIN_VERSION=2.39.3
30
GJS_MIN_VERSION=1.43.3
Mattias Bengtsson's avatar
Mattias Bengtsson committed
31
GOBJECT_INTROSPECTION_MIN_VERSION=0.10.1
32 33
GTK_MIN_VERSION=3.15.9
GEOCLUE_MIN_VERSION=0.12.99
Mattias Bengtsson's avatar
Mattias Bengtsson committed
34 35 36 37 38

PKG_CHECK_MODULES(GNOME_MAPS, [
    gio-2.0                      >= $GIO_MIN_VERSION
    gjs-1.0                      >= $GJS_MIN_VERSION
    gobject-introspection-1.0    >= $GOBJECT_INTROSPECTION_MIN_VERSION
39
    gtk+-3.0                     >= $GTK_MIN_VERSION
Jonas Danielsson's avatar
Jonas Danielsson committed
40
    geoclue-2.0                  >= $GEOCLUE_MIN_VERSION
Mattias Bengtsson's avatar
Mattias Bengtsson committed
41 42
])

Jonas Danielsson's avatar
Jonas Danielsson committed
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
FOLKS_MIN_VERSION=0.10.0
GEE_MIN_VERSION=0.16.0
GEOCODE_MIN_VERSION=3.15.2
CHAMPLAIN_MIN_VERSION=0.12.9

PKG_CHECK_MODULES(GNOME_MAPS_LIB, [
    gee-0.8                      >= $GEE_MIN_VERSION
    folks                        >= $FOLKS_MIN_VERSION
    geocode-glib-1.0             >= $GEOCODE_MIN_VERSION
    champlain-0.12               >= $CHAMPLAIN_MIN_VERSION
])
AC_SUBST(GNOME_MAPS_LIB_CFLAGS)
AC_SUBST(GNOME_MAPS_LIB_LIBS)

AC_PROG_LIBTOOL

Zeeshan Ali's avatar
Zeeshan Ali committed
59 60
GLIB_GSETTINGS

61
AC_PATH_PROG([GJS],[gjs])
Zeeshan Ali's avatar
Zeeshan Ali committed
62

Cosimo Cecchi's avatar
Cosimo Cecchi committed
63 64 65
GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable glib_compile_resources gio-2.0`
AC_SUBST(GLIB_COMPILE_RESOURCES)

Jonas Danielsson's avatar
Jonas Danielsson committed
66 67
GOBJECT_INTROSPECTION_CHECK([0.6.3])

Zeeshan Ali's avatar
Zeeshan Ali committed
68 69
AC_CONFIG_FILES([
    Makefile
Jonas Danielsson's avatar
Jonas Danielsson committed
70
    lib/Makefile
Zeeshan Ali's avatar
Zeeshan Ali committed
71 72
    src/Makefile
    data/Makefile
Zeeshan Ali's avatar
Zeeshan Ali committed
73
    data/icons/Makefile
Zeeshan Ali's avatar
Zeeshan Ali committed
74 75
    po/Makefile.in
])
76
AC_OUTPUT