-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
99 lines (80 loc) · 2.16 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
AC_INIT([MokoMessages], [1.0.99], [[email protected]], [mokomessages])
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="mokomessages"
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, ["$GETTEXT_PACKAGE"], [Name of the gettext message domain])
dnl Dependencies
ELEMENTARY_REQUIRED=0.0.0
EVAS_REQUIRED=0.0.0
EDJE_REQUIRED=0.0.0
GLIB_REQUIRED=2.18.0
DBUS_REQUIRED=1.1.1
DBUS_GLIB_REQUIRED=0.74
PHONEUTILS_REQUIRED=0.1
FSO_REQUIRED=0.2
MOKOSUITE_REQUIRED=$PACKAGE_VERSION
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(EVAS, evas >= $EVAS_REQUIRED)
PKG_CHECK_MODULES(EDJE, edje >= $EDJE_REQUIRED)
PKG_CHECK_MODULES(FSO, libfreesmartphone-glib >= $FSO_REQUIRED)
PKG_CHECK_MODULES(PHONEUTILS, libphone-utils >= $PHONEUTILS_REQUIRED)
PKG_CHECK_MODULES(MOKOSUITE,
mokosuite-utils >= $MOKOSUITE_REQUIRED
mokosuite-ui >= $MOKOSUITE_REQUIRED
mokosuite-pim >= $MOKOSUITE_REQUIRED
)
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)
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
src/Makefile
data/Makefile
data/themes/Makefile
data/themes/gry/Makefile
po/Makefile.in
])