1 AC_INIT(Empathy, 2.29.1, http://bugzilla.gnome.org/browse.cgi?product=empathy)
4 Copyright (C) 2003-2007 Imendio AB
5 Copyright (C) 2007-2008 Collabora Ltd.
8 # LT Version numbers, remember to change them just *before* a release.
9 # (Interfaces removed: CURRENT++, AGE=0, REVISION=0)
10 # (Interfaces added: CURRENT++, AGE++, REVISION=0)
11 # (No interfaces changed: REVISION++)
16 LIBEMPATHY_GTK_CURRENT=28
18 LIBEMPATHY_GTK_REVISION=0
20 AC_SUBST(LIBEMPATHY_CURRENT)
21 AC_SUBST(LIBEMPATHY_AGE)
22 AC_SUBST(LIBEMPATHY_REVISION)
23 AC_SUBST(LIBEMPATHY_GTK_CURRENT)
24 AC_SUBST(LIBEMPATHY_GTK_AGE)
25 AC_SUBST(LIBEMPATHY_GTK_REVISION)
27 # Minimal version required
31 LIBPANELAPPLET_REQUIRED=2.10.0
32 TELEPATHY_GLIB_REQUIRED=0.7.35
33 ENCHANT_REQUIRED=1.2.0
34 ISO_CODES_REQUIRED=0.35
35 LIBNOTIFY_REQUIRED=0.4.4
36 LIBCANBERRA_GTK_REQUIRED=0.4
37 LIBCHAMPLAIN_REQUIRED=0.4
38 LIBCHAMPLAIN_GTK_REQUIRED=0.4
39 CLUTTER_GTK_REQUIRED=0.10
43 NETWORK_MANAGER_REQUIRED=0.7.0
44 NAUTILUS_SENDTO_REQUIRED=2.28.0.1
46 # Use --enable-maintainer-mode to disabled deprecated symbols
47 GNOME_MAINTAINER_MODE_DEFINES
49 # Uncomment that to build with single include disabled
50 #AC_DEFINE(G_DISABLE_SINGLE_INCLUDES, [], [Disable single includes for GLib])
51 #AC_DEFINE(GDK_PIXBUF_DISABLE_SINGLE_INCLUDES, [], [Disable single includes for GDK pixbuf])
52 #AC_DEFINE(GTK_DISABLE_SINGLE_INCLUDES, [], [Disable single includes for GTK])
54 AC_CONFIG_MACRO_DIR([m4])
55 AC_CONFIG_HEADERS([config.h])
56 AC_CONFIG_SRCDIR([configure.ac])
61 AM_INIT_AUTOMAKE(1.9 dist-bzip2 no-define -Wno-portability)
69 IT_PROG_INTLTOOL([0.35.0])
71 GNOME_DOC_INIT([0.17.3])
73 AC_PATH_PROG(DBUS_BINDING_TOOL, dbus-binding-tool)
74 AC_PATH_PROG(GCONFTOOL, gconftool-2)
76 GLIB_GENMARSHAL=`$PKG_CONFIG glib-2.0 --variable=glib_genmarshal`
77 AC_SUBST(GLIB_GENMARSHAL)
79 AC_CHECK_PROGS([XSLTPROC], [xsltproc])
80 if test -z "$XSLTPROC"; then
81 AC_MSG_ERROR([xsltproc (from libxslt) is required])
87 # -----------------------------------------------------------
88 # Pkg-Config dependency checks
89 # -----------------------------------------------------------
91 PKG_CHECK_MODULES(LIBEMPATHY,
93 glib-2.0 >= $GLIB_REQUIRED
95 gio-2.0 >= $GLIB_REQUIRED
96 gio-unix-2.0 >= $GLIB_REQUIRED
98 telepathy-glib >= $TELEPATHY_GLIB_REQUIRED
104 PKG_CHECK_MODULES(LIBEMPATHYGTK,
106 glib-2.0 >= $GLIB_REQUIRED
108 gio-2.0 >= $GLIB_REQUIRED
109 gconf-2.0 >= $GCONF_REQUIRED
111 gtk+-2.0 >= $GTK_REQUIRED
112 libcanberra-gtk >= $LIBCANBERRA_GTK_REQUIRED
113 telepathy-glib >= $TELEPATHY_GLIB_REQUIRED
116 gstreamer-interfaces-0.10
119 PKG_CHECK_MODULES(EMPATHY,
121 glib-2.0 >= $GLIB_REQUIRED
123 gio-2.0 >= $GLIB_REQUIRED
125 gtk+-2.0 >= $GTK_REQUIRED
128 telepathy-glib >= $TELEPATHY_GLIB_REQUIRED
132 gnome-keyring-1 >= $KEYRING_REQUIRED
135 PKG_CHECK_MODULES(LIBNOTIFY, libnotify >= $LIBNOTIFY_REQUIRED)
137 # -----------------------------------------------------------
139 # -----------------------------------------------------------
142 AC_HELP_STRING([--disable-debug],[compile without debug code]),
143 enable_debug=$enableval, enable_debug=yes )
145 if test x$enable_debug = xyes; then
146 AC_DEFINE(ENABLE_DEBUG, [], [Enable debug code])
149 # -----------------------------------------------------------
151 # -----------------------------------------------------------
153 GETTEXT_PACKAGE=empathy
154 AC_SUBST(GETTEXT_PACKAGE)
155 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[Gettext package name])
159 # -----------------------------------------------------------
160 # Connectivity integration
161 # -----------------------------------------------------------
162 AC_ARG_WITH(connectivity,
163 AS_HELP_STRING([--with-connectivity=@<:@nm/connman/auto/no@:>@],
164 [build with connectivity support]), ,
165 with_connectivity=auto)
167 if test "x$with_connectivity" = "xno"; then
171 elif test "x$with_connectivity" = "xconnman"; then
173 PKG_CHECK_MODULES(CONNMAN,
176 ], have_connman="yes", have_connman="no")
178 if test "x$have_connman" = "xyes"; then
179 AC_DEFINE(HAVE_CONNMAN, 1, [Define if you have connman dependencies])
185 PKG_CHECK_MODULES(NETWORK_MANAGER,
187 libnm_glib >= $NETWORK_MANAGER_REQUIRED
188 ], have_nm="yes", have_nm="no")
190 if test "x$have_nm" = "xyes"; then
191 AC_DEFINE(HAVE_NM, 1, [Define if you have libnm-glib])
196 if test "x$with_connectivity" = "xconnman" -a "x$have_connman" != "xyes"; then
197 AC_MSG_ERROR([Couldn't find connman dependencies.])
200 if test "x$with_connectivity" = "xnm" -a "x$have_nm" != "xyes"; then
201 AC_MSG_ERROR([Couldn't find libnm-glib dependencies.])
204 AM_CONDITIONAL(HAVE_NM, test "x$have_nm" = "xyes")
205 AM_CONDITIONAL(HAVE_CONNMAN, test "x$have_connman" = "xyes")
207 # -----------------------------------------------------------
209 # -----------------------------------------------------------
210 AC_ARG_ENABLE(webkit,
211 AS_HELP_STRING([--enable-webkit=@<:@no/yes/auto@:>@],
212 [build with webkit support]), ,
215 if test "x$enable_webkit" != "xno"; then
216 PKG_CHECK_MODULES(WEBKIT,
218 webkit-1.0 >= $WEBKIT_REQUIRED
219 ], have_webkit="yes", have_webkit="no")
221 if test "x$have_webkit" = "xyes"; then
222 AC_DEFINE(HAVE_WEBKIT, 1, [Define if you have libwebkitgtk])
228 if test "x$enable_webkit" = "xyes" -a "x$have_webkit" != "xyes"; then
229 AC_MSG_ERROR([Couldn't find webkit dependencies.])
231 AM_CONDITIONAL(HAVE_WEBKIT, test "x$have_webkit" = "xyes")
233 # -----------------------------------------------------------
234 # spellchecking checks: enchant and iso-codes
235 # -----------------------------------------------------------
237 AS_HELP_STRING([--enable-spell=@<:@no/yes/auto@:>@],
238 [Enable spell checking]), ,
241 if test "x$enable_spell" != "xno"; then
242 PKG_CHECK_MODULES(ENCHANT,
244 enchant >= $ENCHANT_REQUIRED,
245 iso-codes >= $ISO_CODES_REQUIRED
246 ], have_enchant="yes", have_enchant="no")
248 if test "x$have_enchant" = "xyes"; then
249 AC_MSG_CHECKING([whether iso-codes has iso-639 and iso-3166 domains])
250 if $PKG_CONFIG --variable=domains iso-codes | grep 639 > /dev/null && \
251 $PKG_CONFIG --variable=domains iso-codes | grep 3166 > /dev/null ; then
252 AC_DEFINE_UNQUOTED(ISO_CODES_PREFIX, ["`$PKG_CONFIG --variable=prefix iso-codes`"], [ISO codes prefix])
253 AC_DEFINE(HAVE_ENCHANT, [], [Define if you have libenchant])
259 AC_MSG_RESULT([$result])
265 if test "x$enable_spell" = "xyes" -a "x$have_enchant" != "xyes"; then
266 AC_MSG_ERROR([Couldn't find spell dependencies.])
269 AM_CONDITIONAL(HAVE_ENCHANT, test "x$have_enchant" = "xyes")
271 # -----------------------------------------------------------
272 # Map view checks: libchamplain
273 # -----------------------------------------------------------
275 AS_HELP_STRING([--enable-map=@<:@no/yes/auto@:>@],
276 [Enable map view]), ,
279 if test "x$enable_map" != "xno"; then
280 PKG_CHECK_MODULES(LIBCHAMPLAIN,
282 champlain-0.4 >= $LIBCHAMPLAIN_REQUIRED,
283 champlain-gtk-0.4 >= $LIBCHAMPLAIN_GTK_REQUIRED
284 clutter-gtk-0.10 >= $CLUTTER_GTK_REQUIRED
285 ], have_libchamplain="yes", have_libchamplain="no")
287 if test "x$have_libchamplain" = "xyes"; then
288 AC_DEFINE(HAVE_LIBCHAMPLAIN, 1, [Define if you have libchamplain])
294 if test "x$enable_map" = "xyes" -a "x$have_libchamplain" != "xyes"; then
295 AC_MSG_ERROR([Couldn't find map view dependencies.])
298 AM_CONDITIONAL(HAVE_LIBCHAMPLAIN, test "x$have_libchamplain" = "xyes")
300 # -----------------------------------------------------------
301 # location checks: geoclue
302 # -----------------------------------------------------------
303 AC_ARG_ENABLE(location,
304 AS_HELP_STRING([--enable-location=@<:@no/yes/auto@:>@],
305 [Enable location awareness]), ,
306 enable_location=auto)
308 if test "x$enable_location" != "xno"; then
309 PKG_CHECK_MODULES(GEOCLUE,
311 geoclue >= $GEOCLUE_REQUIRED
312 ], have_geoclue="yes", have_geoclue="no")
314 if test "x$have_geoclue" = "xyes"; then
315 AC_DEFINE(HAVE_GEOCLUE, 1, [Define if you have geoclue])
321 if test "x$enable_location" = "xyes" -a "x$have_geoclue" != "xyes"; then
322 AC_MSG_ERROR([Couldn't find location dependencies.])
325 AM_CONDITIONAL(HAVE_GEOCLUE, test "x$have_geoclue" = "xyes")
326 AC_SUBST(GEOCLUE_CFLAGS)
327 AC_SUBST(GEOCLUE_LIBS)
329 # -----------------------------------------------------------
330 # moblin widgets support
331 # -----------------------------------------------------------
332 AC_ARG_ENABLE(moblin,
333 AS_HELP_STRING([--enable-moblin=@<:no/yes@:>@],
334 [Enable moblin widgets]), ,
337 if test "x$enable_moblin" != "xno"; then
338 PKG_CHECK_MODULES(MOBLIN,
339 [nbtk-gtk-1.2], have_nbtk="yes", have_nbtk="no")
341 if test "x$have_nbtk" = "xyes"; then
342 AC_DEFINE(HAVE_NBTK, 1, [Define if you have nbtk])
348 if test "x$enable_moblin" = "xyes" -a "x$have_nbtk" != "xyes"; then
349 AC_MSG_ERROR([Couldn't find moblin dependencies.])
352 AM_CONDITIONAL(HAVE_NBTK, test "x$have_nbtk" = "xyes")
353 AC_SUBST(MOBLIN_CFLAGS)
354 AC_SUBST(MOBLIN_LIBS)
356 # -----------------------------------------------------------
358 # -----------------------------------------------------------
359 AC_ARG_ENABLE(megaphone,
360 AS_HELP_STRING([--enable-megaphone=@<:@no/yes/auto@:>@],
361 [build megaphone applet]), ,
362 enable_megaphone=auto)
364 if test "x$enable_megaphone" != "xno"; then
365 PKG_CHECK_MODULES(MEGAPHONE,
367 libpanelapplet-2.0 >= $LIBPANELAPPLET_REQUIRED
368 glib-2.0 >= $GLIB_REQUIRED
369 gtk+-2.0 >= $GTK_REQUIRED
370 gconf-2.0 >= $GCONF_REQUIRED
371 telepathy-glib >= $TELEPATHY_GLIB_REQUIRED
372 ], have_megaphone="yes", have_megaphone="no")
377 if test "x$enable_megaphone" = "xyes" -a "x$have_megaphone" != "xyes"; then
378 AC_MSG_ERROR([Couldn't find megaphone dependencies.])
381 AM_CONDITIONAL(HAVE_MEGAPHONE, test "x$have_megaphone" = "xyes")
383 # -----------------------------------------------------------
385 # -----------------------------------------------------------
386 AC_ARG_ENABLE(nautilus-sendto,
387 AS_HELP_STRING([--enable-nautilus-sendto=@<:@no/yes/auto@:>@],
388 [build nautilus-sendto plugin]), ,
391 if test "x$enable_nst" != "xno"; then
392 PKG_CHECK_MODULES(NST,
394 nautilus-sendto >= $NAUTILUS_SENDTO_REQUIRED
395 ], have_nst="yes", have_nst="no")
400 if test "x$enable_nst" = "xyes" -a "x$have_nst" != "xyes"; then
401 AC_MSG_ERROR([Couldn't find nautilus-sendto dependencies.])
404 AM_CONDITIONAL(HAVE_NST, test "x$have_nst" = "xyes")
406 # -----------------------------------------------------------
408 # -----------------------------------------------------------
409 AC_ARG_ENABLE(nothere,
410 AS_HELP_STRING([--enable-nothere=@<:@no/yes/auto@:>@],
411 [build nothere applet]), ,
414 if test "x$enable_nothere" != "xno"; then
415 PKG_CHECK_MODULES(NOTHERE,
417 libpanelapplet-2.0 >= $LIBPANELAPPLET_REQUIRED
418 glib-2.0 >= $GLIB_REQUIRED
419 gtk+-2.0 >= $GTK_REQUIRED
420 gconf-2.0 >= $GCONF_REQUIRED
421 telepathy-glib >= $TELEPATHY_GLIB_REQUIRED
422 ], have_nothere="yes", have_nothere="no")
427 if test "x$enable_nothere" = "xyes" -a "x$have_nothere" != "xyes"; then
428 AC_MSG_ERROR([Couldn't find nothere dependencies.])
431 AM_CONDITIONAL(HAVE_NOTHERE, test "x$have_nothere" = "xyes")
433 # -----------------------------------------------------------
435 # -----------------------------------------------------------
437 AS_HELP_STRING([--enable-tests=@<:@no/yes/auto@:>@],
441 if test "x$enable_tests" != "xno"; then
442 PKG_CHECK_MODULES(CHECK,
445 ], have_check="yes", have_check="no")
450 if test "x$enable_tests" = "xyes" -a "x$have_check" != "xyes"; then
451 AC_MSG_ERROR([Couldn't find check dependencies.])
454 AM_CONDITIONAL(HAVE_TESTS, test "x$have_check" = "xyes")
456 # -----------------------------------------------------------
458 # -----------------------------------------------------------
459 AC_ARG_ENABLE(python,
460 AS_HELP_STRING([--enable-python=@<:@no/yes/auto@:>@],
461 [build python bindings to libempathy and libempathy-gtk]), ,
464 if test "x$enable_python" != "xno"; then
465 PKG_CHECK_MODULES(PYTHON_BINDING,
468 glib-2.0 >= $GLIB_REQUIRED
470 gconf-2.0 >= $GCONF_REQUIRED
472 gtk+-2.0 >= $GTK_REQUIRED
474 gstreamer-interfaces-0.10
476 ], have_python="yes", have_python="no")
477 if test "x$have_python" = "xyes" ; then
478 AM_CHECK_PYTHON_HEADERS(,have_python="no")
479 AC_CHECK_PROGS([PYGOBJECTCODEGEN], [pygobject-codegen-2.0 pygtk-codegen-2.0])
485 if test "x$enable_python" = "xyes" -a "x$have_python" != "xyes"; then
486 AC_MSG_ERROR([Couldn't find python.])
489 AM_CONDITIONAL(HAVE_PYTHON, test "x$have_python" = "xyes")
491 # -----------------------------------------------------------
492 # Coding style checks
493 # -----------------------------------------------------------
494 AC_ARG_ENABLE(coding-style-checks,
495 AC_HELP_STRING([--disable-coding-style-checks],
496 [don't check coding style using grep]),
497 [ENABLE_CODING_STYLE_CHECKS=$enableval], [ENABLE_CODING_STYLE_CHECKS=yes])
499 AC_SUBST([ENABLE_CODING_STYLE_CHECKS])
500 # -----------------------------------------------------------
507 data/empathy.desktop.in
512 libempathy/libempathy.pc
513 libempathy-gtk/Makefile
514 libempathy-gtk/libempathy-gtk.pc
517 megaphone/src/Makefile
518 megaphone/data/Makefile
519 nautilus-sendto-plugin/Makefile
522 nothere/data/Makefile
524 docs/libempathy/Makefile
525 docs/libempathy/version.xml
526 docs/libempathy-gtk/Makefile
527 docs/libempathy-gtk/version.xml
530 python/pyempathy/Makefile
531 python/pyempathygtk/Makefile
542 Compiler....................: ${CC}
543 Compiler Flags..............: ${CFLAGS}
544 Prefix......................: ${prefix}
545 Shaved build................: ${enable_shave}
546 Tests.......................: ${have_check}
547 Coding style checks.........: ${ENABLE_CODING_STYLE_CHECKS}
550 Spell checking (enchant)....: ${have_enchant}
551 Display maps (libchamplain).: ${have_libchamplain}
552 Location awareness (Geoclue): ${have_geoclue}
553 Adium themes (Webkit).......: ${have_webkit}
554 Moblin widgets (Nbtk).......: ${have_nbtk}
557 NetworkManager integration..: ${have_nm}
558 ConnMan integration.........: ${have_connman}
561 Documentation...............: ${enable_gtk_doc}
562 Python bindings.............: ${have_python}
563 Megaphone applet............: ${have_megaphone}
564 Nothere applet..............: ${have_nothere}
565 Nautilus-sendto plugin......: ${have_nst}