forked from cosimoc/gnome-documents
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
110 lines (87 loc) · 2.75 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
dnl -*- mode: m4 -*-
AC_PREREQ(2.63)
AC_INIT([gnome-documents],[0.5.2.1],[],[gnome-documents])
AM_CONFIG_HEADER(config/config.h)
AC_CONFIG_SRCDIR([src/main.js])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([config])
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
AC_CANONICAL_TARGET
# require automake 1.11
AM_INIT_AUTOMAKE([1.11 dist-xz no-dist-gzip tar-ustar foreign])
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])
AM_GNU_GETTEXT([external])
AM_GNU_GETTEXT_VERSION([0.17])
GOBJECT_INTROSPECTION_REQUIRE([0.9.6])
## don't rerun to this point if we abort
AC_CACHE_SAVE
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_CXX
AC_ISC_POSIX
AC_HEADER_STDC
# no stupid static libraries
AM_DISABLE_STATIC
# enable libtool
AC_PROG_LIBTOOL
# avoid libtool for LTCOMPILE, use it only to link
## don't rerun to this point if we abort
AC_CACHE_SAVE
GLIB_GSETTINGS
AC_CHECK_LIBM
AC_SUBST(LIBM)
EVINCE_MIN_VERSION=3.3.0
GLIB_MIN_VERSION=2.31.6
GTK_MIN_VERSION=3.5.5
GOBJECT_INTROSPECTION_MIN_VERSION=1.31.6
GDATA_MIN_VERSION=0.11.0
GOA_MIN_VERSION=3.2.0
CLUTTER_GTK_MIN_VERSION=1.0.2
TRACKER_MIN_VERSION=0.13.1
ZAPOJIT_MIN_VERSION=0.0.2
PKG_CHECK_MODULES(DOCUMENTS,
clutter-gtk-1.0 >= $CLUTTER_GTK_MIN_VERSION
evince-document-3.0 >= $EVINCE_MIN_VERSION
evince-view-3.0 >= $EVINCE_MIN_VERSION
gjs-1.0
glib-2.0 >= $GLIB_MIN_VERSION
gobject-introspection-1.0 >= $GOBJECT_INTROSPECTION_MIN_VERSION
gtk+-3.0 >= $GTK_MIN_VERSION
gnome-desktop-3.0
tracker-sparql-0.14 >= $TRACKER_MIN_VERSION
goa-1.0 >= $GOA_MIN_VERSION
libgdata >= $GDATA_MIN_VERSION
zapojit-0.0 >= $ZAPOJIT_MIN_VERSION
oauth)
PKG_CHECK_MODULES(MINER,
tracker-sparql-0.14 >= $TRACKER_MIN_VERSION
glib-2.0 >= $GLIB_MIN_VERSION
gio-2.0 >= $GLIB_MIN_VERSION
goa-1.0 >= $GOA_MIN_VERSION
libgdata >= $GDATA_MIN_VERSION
zapojit-0.0 >= $ZAPOJIT_MIN_VERSION
oauth)
GJS_CONSOLE=`$PKG_CONFIG --variable=gjs_console gjs-1.0`
AC_SUBST(GJS_CONSOLE)
AC_CONFIG_FILES([
Makefile
src/Makefile
data/Makefile
data/icons/Makefile
data/gnome-documents.desktop.in
po/Makefile.in
])
AC_OUTPUT
dnl ==========================================================================
echo "
gnome-documents $VERSION
==================
prefix: ${prefix}
compiler: ${CC}
Now type 'make' to build $PACKAGE
"