-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
149 lines (115 loc) · 3.33 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
AC_INIT([libmokosuite], [1.0.99], [[email protected]], [libmokosuite])
AC_CONFIG_SRCDIR(Makefile.am)
AC_CONFIG_HEADERS(config.h)
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE
AC_ISC_POSIX
AC_GNU_SOURCE
AC_PROG_CC
AC_PROG_LIBTOOL
AC_SUBST(ACLOCAL_AMFLAGS, "$ACLOCAL_FLAGS -I m4")
dnl Vala for D-Bus servers
AC_PATH_PROG(VALAC, valac, valac)
dnl Intl for gettext
IT_PROG_INTLTOOL([0.35.0])
if test "x$localedir" == x
then
localedir='${datadir}/locale'
AC_SUBST(localedir)
AM_GLIB_DEFINE_LOCALEDIR([localedir])
fi
AM_GLIB_GNU_GETTEXT
GETTEXT_PACKAGE="mokosuite"
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, ["$GETTEXT_PACKAGE"], [Name of the gettext message domain])
dnl Dependencies
ELEMENTARY_REQUIRED=0.0.0
EDJE_REQUIRED=0.0.0
ECORE_REQUIRED=0.0.0
EDBUS_REQUIRED=0.5.0
EFREET_REQUIRED=0.5.0
EVAS_REQUIRED=0.0.0
EINA_REQUIRED=0.5.0
GLIB_REQUIRED=2.18.0
DBUS_REQUIRED=1.1.1
DBUS_GLIB_REQUIRED=0.74
SQLITE3_REQUIRED=3.0
EGGDBUS_REQUIRED=0.5
PHONEUTILS_REQUIRED=0.1
FSO_REQUIRED=0.2
NOTIFY_REQUIRED=0.4.5
PKG_CHECK_MODULES(GLIB,
glib-2.0 >= $GLIB_REQUIRED
gobject-2.0 >= $GLIB_REQUIRED
)
PKG_CHECK_MODULES(DBUS,
dbus-1 >= $DBUS_REQUIRED
dbus-glib-1 >= $DBUS_GLIB_REQUIRED
)
PKG_CHECK_MODULES(ELEMENTARY,
elementary >= $ELEMENTARY_REQUIRED
)
PKG_CHECK_MODULES(EDJE,
edje >= $EDJE_REQUIRED
)
PKG_CHECK_MODULES(ECORE,
ecore >= $ECORE_REQUIRED
ecore-x >= $ECORE_REQUIRED
ecore-evas >= $ECORE_REQUIRED
ecore-input >= $ECORE_REQUIRED
eet >= $ECORE_REQUIRED
)
PKG_CHECK_MODULES(EVAS, evas >= $EVAS_REQUIRED)
PKG_CHECK_MODULES(EINA, eina >= $EINA_REQUIRED)
PKG_CHECK_MODULES(EFREET, efreet >= $EFREET_REQUIRED)
PKG_CHECK_MODULES(FSO, libfreesmartphone-glib >= $FSO_REQUIRED)
PKG_CHECK_MODULES(ALSA, alsa)
PKG_CHECK_MODULES(SQLITE, sqlite3 >= $SQLITE3_REQUIRED)
PKG_CHECK_MODULES(EGGDBUS, eggdbus-1 >= $EGGDBUS_REQUIRED)
PKG_CHECK_MODULES(X11, x11)
PKG_CHECK_MODULES(PHONEUTILS, libphone-utils)
PKG_CHECK_MODULES(NOTIFY, libnotify >= $NOTIFY_REQUIRED)
dnl glib-genmarshal
AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
dnl edje_cc for edj files
AC_ARG_WITH(edje-cc,
[ --with-edje-cc=PATH specify a specific path to edje_cc],
[
v=$withval;
edje_cc=$v
echo " Enlightenment edje_cc explicitly set to "$edje_cc;
],[
edje_cc=$(pkg-config --variable=prefix edje)/bin/edje_cc
])
AC_SUBST(edje_cc)
dnl Contacts storage
AC_ARG_ENABLE(contactsdb_sqlite,
AC_HELP_STRING([--enable-contactsdb-sqlite], [Enable SQLite usage for contacts database (default: BerkeleyDB storage)]),
enable_contactsdb_sqlite=$enableval,
enable_contactsdb_sqlite=no)
if test "x$enable_contactsdb_sqlite" != "xno"; then
AC_DEFINE(CONTACTSDB_SQLITE, 1, [Define to enable SQLite usage for contacts database])
fi
AM_CONDITIONAL(ENABLE_CONTACTSDB_SQLITE, test "x$enable_contactsdb_sqlite" = "xyes")
AC_ARG_ENABLE(debug,
AC_HELP_STRING([--enable-debug], [Enable debug build (default: disabled)]),
enable_debug=$enableval,
enable_debug=no)
if test "x$enable_debug" != "xno"; then
AC_DEFINE(DEBUG, 1, [Define to enable debug build])
fi
AC_OUTPUT([
Makefile
po/Makefile.in
tests/Makefile
mokosuite/Makefile
data/Makefile
data/themes/Makefile
data/themes/gry/Makefile
mokosuite/ui/Makefile
mokosuite/ui/mokosuite-ui.pc
mokosuite/pim/Makefile
mokosuite/pim/mokosuite-pim.pc
mokosuite/utils/Makefile
mokosuite/utils/mokosuite-utils.pc
])