Mokowin packing fix
[mokosuite2:libmokosuite.git] / configure.ac
1 AC_INIT([libmokosuite], [1.0.99], [daniele.athome@gmail.com], [libmokosuite])
2 AC_CONFIG_SRCDIR(Makefile.am)
3 AC_CONFIG_HEADERS(config.h)
4 AC_CONFIG_MACRO_DIR([m4])
5
6 AM_INIT_AUTOMAKE
7
8 AC_ISC_POSIX
9 AC_GNU_SOURCE
10 AC_PROG_CC
11 AC_PROG_LIBTOOL
12 AC_SUBST(ACLOCAL_AMFLAGS, "$ACLOCAL_FLAGS -I m4")
13
14 dnl Vala for D-Bus servers
15 AC_PATH_PROG(VALAC, valac, valac)
16
17 dnl Intl for gettext
18 IT_PROG_INTLTOOL([0.35.0])
19
20 if test "x$localedir" == x
21 then
22     localedir='${datadir}/locale'
23     AC_SUBST(localedir)
24     AM_GLIB_DEFINE_LOCALEDIR([localedir])
25 fi
26
27 AM_GLIB_GNU_GETTEXT
28 GETTEXT_PACKAGE="mokosuite"
29 AC_SUBST(GETTEXT_PACKAGE)
30 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, ["$GETTEXT_PACKAGE"], [Name of the gettext message domain])
31
32 dnl Dependencies
33 ELEMENTARY_REQUIRED=0.0.0
34 EDJE_REQUIRED=0.0.0
35 ECORE_REQUIRED=0.0.0
36 EDBUS_REQUIRED=0.5.0
37 EFREET_REQUIRED=0.5.0
38 EINA_REQUIRED=0.5.0
39 GLIB_REQUIRED=2.18.0
40 DBUS_REQUIRED=1.1.1
41 DBUS_GLIB_REQUIRED=0.74
42 SQLITE3_REQUIRED=3.0
43 EGGDBUS_REQUIRED=0.5
44 PHONEUTILS_REQUIRED=0.1
45 FSO_REQUIRED=0.2
46 NOTIFY_REQUIRED=0.4.5
47
48
49 PKG_CHECK_MODULES(GLIB,
50   glib-2.0 >= $GLIB_REQUIRED
51   gobject-2.0 >= $GLIB_REQUIRED
52 )
53
54 PKG_CHECK_MODULES(DBUS,
55   dbus-1 >= $DBUS_REQUIRED
56   dbus-glib-1 >= $DBUS_GLIB_REQUIRED
57 )
58
59 PKG_CHECK_MODULES(ELEMENTARY,
60   elementary >= $ELEMENTARY_REQUIRED
61 )
62
63 PKG_CHECK_MODULES(EDJE,
64   edje >= $EDJE_REQUIRED
65 )
66
67 PKG_CHECK_MODULES(ECORE,
68   ecore >= $ECORE_REQUIRED
69   ecore-x >= $ECORE_REQUIRED
70   ecore-evas >= $ECORE_REQUIRED
71   ecore-input >= $ECORE_REQUIRED
72   eet >= $ECORE_REQUIRED
73 )
74
75 PKG_CHECK_MODULES(EINA, eina >= $EINA_REQUIRED)
76
77 PKG_CHECK_MODULES(EFREET, efreet >= $EFREET_REQUIRED)
78
79 PKG_CHECK_MODULES(FSO, libfreesmartphone-glib >= $FSO_REQUIRED)
80
81 PKG_CHECK_MODULES(ALSA, alsa)
82
83 PKG_CHECK_MODULES(SQLITE, sqlite3 >= $SQLITE3_REQUIRED)
84
85 PKG_CHECK_MODULES(EGGDBUS, eggdbus-1 >= $EGGDBUS_REQUIRED)
86
87 PKG_CHECK_MODULES(X11, x11)
88
89 PKG_CHECK_MODULES(PHONEUTILS, libphone-utils)
90
91 PKG_CHECK_MODULES(NOTIFY, libnotify >= $NOTIFY_REQUIRED)
92
93 dnl glib-genmarshal
94 AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
95
96 dnl edje_cc for edj files
97 AC_ARG_WITH(edje-cc,
98 [  --with-edje-cc=PATH  specify a specific path to edje_cc],
99 [
100   v=$withval;
101   edje_cc=$v
102   echo "  Enlightenment edje_cc explicitly set to "$edje_cc;
103 ],[
104   edje_cc=$(pkg-config --variable=prefix edje)/bin/edje_cc
105 ])
106 AC_SUBST(edje_cc)
107
108 dnl Contacts storage
109 AC_ARG_ENABLE(contactsdb_sqlite,
110     AC_HELP_STRING([--enable-contactsdb-sqlite], [Enable SQLite usage for contacts database (default: BerkeleyDB storage)]),
111     enable_contactsdb_sqlite=$enableval,
112     enable_contactsdb_sqlite=no)
113
114 if test "x$enable_contactsdb_sqlite" != "xno"; then
115     AC_DEFINE(CONTACTSDB_SQLITE, 1, [Define to enable SQLite usage for contacts database])
116 fi
117
118 AM_CONDITIONAL(ENABLE_CONTACTSDB_SQLITE, test "x$enable_contactsdb_sqlite" = "xyes")
119
120 AC_ARG_ENABLE(debug,
121     AC_HELP_STRING([--enable-debug], [Enable debug build (default: disabled)]),
122     enable_debug=$enableval,
123     enable_debug=no)
124
125 if test "x$enable_debug" != "xno"; then
126     AC_DEFINE(DEBUG, 1, [Define to enable debug build])
127 fi
128
129 AC_OUTPUT([
130 Makefile
131 po/Makefile.in
132 tests/Makefile
133 mokosuite/Makefile
134 data/Makefile
135 data/themes/Makefile
136 data/themes/gry/Makefile
137
138 mokosuite/ui/Makefile
139 mokosuite/ui/mokosuite-ui.pc
140
141 mokosuite/pim/Makefile
142 mokosuite/pim/mokosuite-pim.pc
143
144 mokosuite/utils/Makefile
145 mokosuite/utils/mokosuite-utils.pc
146 ])