]> git.0d.be Git - empathy.git/blob - configure.ac
Call: Fix floating toolbar
[empathy.git] / configure.ac
1 dnl If not 1, append datestamp to the version number
2 m4_define(empathy_released, 0)
3
4 m4_define([empathy_major_version], [3])
5 m4_define([empathy_minor_version], [4])
6 m4_define([empathy_micro_version], [2])
7 m4_define([empathy_nano_version], [0])
8
9 dnl Display the nano_version only if it's not '0'
10 m4_define([empathy_base_version],
11           [empathy_major_version.empathy_minor_version.empathy_micro_version])
12 m4_define([empathy_full_version],
13           [m4_if(empathy_nano_version, 0, [empathy_base_version],
14               [empathy_base_version].[empathy_nano_version])])
15
16 m4_define(empathy_maybe_datestamp,
17           m4_esyscmd([if test x]empathy_released[ != x1; then date +.%Y%m%d | tr -d '\n\r'; fi]))
18
19 m4_define(empathy_version, empathy_full_version[]empathy_maybe_datestamp)
20
21
22 AC_INIT([Empathy],
23         [empathy_version],
24         [http://bugzilla.gnome.org/browse.cgi?product=empathy],
25         [empathy],
26         [https://live.gnome.org/Empathy])
27
28 AC_PREREQ([2.64])
29 AC_COPYRIGHT([
30   Copyright (C) 2003-2007 Imendio AB
31   Copyright (C) 2007-2010 Collabora Ltd.
32 ])
33
34 # Minimal version required
35
36 # Hardp deps
37 FOLKS_REQUIRED=0.6.6
38 GNUTLS_REQUIRED=2.8.5
39
40 GLIB_REQUIRED=2.30.0
41 AC_DEFINE(GLIB_VERSION_MIN_REQUIRED, GLIB_VERSION_2_30, [Ignore post 2.30 deprecations])
42 AC_DEFINE(GLIB_VERSION_MAX_ALLOWED, GLIB_VERSION_2_30, [Prevent post 2.30 APIs])
43
44 GTK_REQUIRED=3.3.6
45 AC_DEFINE(GDK_VERSION_MIN_REQUIRED, GDK_VERSION_3_4, [Ignore post 3.4 deprecations])
46 AC_DEFINE(GDK_VERSION_MAX_ALLOWED, GDK_VERSION_3_4, [Prevent post 3.4 APIs])
47
48 CLUTTER_REQUIRED=1.10.0
49 AC_DEFINE(CLUTTER_VERSION_MIN_REQUIRED, CLUTTER_VERSION_1_8, [Ignore post 1.8 deprecations])
50 AC_DEFINE(CLUTTER_VERSION_MAX_ALLOWED, CLUTTER_VERSION_1_10, [Prevent post 1.10 APIs])
51
52 CLUTTER_GTK_REQUIRED=1.1.2
53 CLUTTER_GST_REQUIRED=1.5.2
54
55 TELEPATHY_GLIB_REQUIRED=0.18.0
56 AC_DEFINE(TP_VERSION_MIN_REQUIRED, TP_VERSION_0_18, [Ignore post 0.18 deprecations])
57 AC_DEFINE(TP_VERSION_MAX_ALLOWED, TP_VERSION_0_18, [Prevent post 0.18 APIs])
58
59 GSTREAMER_REQUIRED=0.10.32
60 KEYRING_REQUIRED=2.26.0
61 GCR_REQUIRED=2.91.4
62 LIBCANBERRA_GTK_REQUIRED=0.25
63 LIBNOTIFY_REQUIRED=0.7.0
64 TELEPATHY_FARSTREAM_REQUIRED=0.2.1
65 TELEPATHY_LOGGER=0.2.13
66 WEBKIT_REQUIRED=1.3.13
67 GOA_REQUIRED=3.3.0
68
69 # Optional deps
70 ENCHANT_REQUIRED=1.2.0
71 GEOCLUE_REQUIRED=0.12
72 ISO_CODES_REQUIRED=0.35
73 NAUTILUS_SENDTO_REQUIRED=2.90.0
74 NETWORK_MANAGER_REQUIRED=0.7.0
75 CHAMPLAIN_REQUIRED=0.12.1
76
77 # Use --enable-maintainer-mode to disable deprecated symbols,
78 # disable single include and enable GSEAL. If this is not a released empathy,
79 # maintainer mode is forced
80 # FIXME: don't disable deprecated symbols until bgo #636654 has been fixed
81 #ifelse(empathy_released, 1, [], [enable_maintainer_mode="yes"])
82 #GNOME_MAINTAINER_MODE_DEFINES
83
84 AC_CONFIG_MACRO_DIR([m4])
85 AC_CONFIG_HEADERS([config.h])
86 AC_CONFIG_SRCDIR([configure.ac])
87 AC_CONFIG_AUX_DIR(.)
88
89 AM_INIT_AUTOMAKE([1.11 no-define -Wno-portability tar-ustar no-dist-gzip dist-xz])
90
91 # Support silent build rules. Disable
92 # by either passing --disable-silent-rules to configure or passing V=1
93 # to make
94 AM_SILENT_RULES([yes])
95
96 # Check for programs
97 AC_PROG_CC
98 AC_HEADER_STDC
99 AM_PROG_MKDIR_P
100 AM_PATH_GLIB_2_0
101 AC_PATH_XTRA
102
103 # Initialize libtool
104 LT_PREREQ([2.2])
105 LT_INIT
106
107 AC_PATH_PROG(DBUS_BINDING_TOOL, dbus-binding-tool)
108 GLIB_GSETTINGS
109 GLIB_GENMARSHAL=`$PKG_CONFIG glib-2.0 --variable=glib_genmarshal`
110 AC_SUBST(GLIB_GENMARSHAL)
111
112 AC_CHECK_PROGS([XSLTPROC], [xsltproc])
113 if test -z "$XSLTPROC"; then
114   AC_MSG_ERROR([xsltproc (from libxslt) is required])
115 fi
116 AM_PATH_PYTHON([2.3])
117
118 EMPATHY_ARG_VALGRIND
119
120
121 # -----------------------------------------------------------
122 # Error flags
123 # -----------------------------------------------------------
124 AS_COMPILER_FLAG(-Wall, ERROR_CFLAGS="-Wall", ERROR_CFLAGS="")
125 AS_COMPILER_FLAG(-Werror, werror=yes, werror=no)
126
127 AC_ARG_ENABLE(Werror,
128   AS_HELP_STRING([--disable-Werror],
129                  [compile without -Werror (normally enabled in development builds)]),
130     werror=$enableval, :)
131
132 AS_COMPILER_FLAG(-Wextra, wextra=yes, wextra=no)
133 AS_COMPILER_FLAG(-Wno-missing-field-initializers,
134         wno_missing_field_initializers=yes,
135         wno_missing_field_initializers=no)
136 AS_COMPILER_FLAG(-Wno-unused-parameter,
137         wno_unused_parameter=yes,
138         wno_unused_parameter=no)
139
140 ifelse(empathy_released, 1, [],
141     [
142         if test x$werror = xyes; then
143             ERROR_CFLAGS="$ERROR_CFLAGS -Werror"
144         fi
145         if test x$wextra = xyes -a \
146             x$wno_missing_field_initializers = xyes -a \
147             x$wno_unused_parameter = xyes; then
148             ERROR_CFLAGS="$ERROR_CFLAGS -Wextra -Wno-missing-field-initializers -Wno-unused-parameter"
149         fi
150     ])
151
152 AS_COMPILER_FLAG(-Wdeclaration-after-statement, ERROR_CFLAGS="$ERROR_CFLAGS -Wdeclaration-after-statement")
153 AS_COMPILER_FLAG(-Wshadow, ERROR_CFLAGS="$ERROR_CFLAGS -Wshadow")
154 AS_COMPILER_FLAG(-Wmissing-prototypes, ERROR_CFLAGS="$ERROR_CFLAGS -Wmissing-prototypes")
155 AS_COMPILER_FLAG(-Wmissing-declarations, ERROR_CFLAGS="$ERROR_CFLAGS -Wmissing-declarations")
156 AS_COMPILER_FLAG(-Wstrict-prototypes, ERROR_CFLAGS="$ERROR_CFLAGS -Wstrict-prototypes")
157
158 AC_SUBST(ERROR_CFLAGS)
159
160 AC_ARG_ENABLE(gprof,
161             AS_HELP_STRING([--enable-gprof=@<:@no/yes@:>@],
162             [build with support for gprof]),,
163             [enable_gprof=no])
164 if test "x$enable_gprof" != "xno" ; then
165     CFLAGS="$CFLAGS -pg"
166     LDFLAGS="$LDFLAGS -pg"
167 fi
168
169 AC_SUBST(LDFLAGS)
170
171 # -----------------------------------------------------------
172 # Pkg-Config dependency checks
173 # -----------------------------------------------------------
174
175 AC_CHECK_LIBM
176 AC_SUBST(LIBM)
177
178 PKG_CHECK_MODULES(EMPATHY,
179 [
180    dbus-glib-1
181    folks >= $FOLKS_REQUIRED
182    folks-telepathy >= $FOLKS_REQUIRED
183    glib-2.0 >= $GLIB_REQUIRED
184    gio-2.0 >= $GLIB_REQUIRED
185    gio-unix-2.0 >= $GLIB_REQUIRED
186    gnome-keyring-1 >= $KEYRING_REQUIRED
187    gnutls >= $GNUTLS_REQUIRED
188    gmodule-export-2.0
189    gobject-2.0
190    gsettings-desktop-schemas
191    gstreamer-0.10 >= $GSTREAMER_REQUIRED
192    gstreamer-interfaces-0.10
193    libxml-2.0
194    telepathy-glib >= $TELEPATHY_GLIB_REQUIRED
195    telepathy-logger-0.2 >= $TELEPATHY_LOGGER
196    x11
197    gtk+-3.0 >= $GTK_REQUIRED
198    libcanberra-gtk3 >= $LIBCANBERRA_GTK_REQUIRED
199    libnotify >= $LIBNOTIFY_REQUIRED
200    gcr-3 >= $GCR_REQUIRED
201    libpulse
202    libpulse-mainloop-glib
203    webkitgtk-3.0 >= $WEBKIT_REQUIRED
204    libsoup-2.4
205 ])
206
207 PKG_CHECK_MODULES(EMPATHY_CALL,
208 [
209    farstream-0.1
210    telepathy-farstream >= $TELEPATHY_FARSTREAM_REQUIRED
211    clutter-1.0 >= $CLUTTER_REQUIRED
212    clutter-gtk-1.0 >= $CLUTTER_GTK_REQUIRED
213    clutter-gst-1.0 >= $CLUTTER_GST_REQUIRED
214 ])
215
216 AC_DEFINE(EMPATHY_GOA_PROVIDER, "org.gnome.OnlineAccounts",
217    [Name of provider for accounts imported from GOA])
218
219 # -----------------------------------------------------------
220 # Build empathy-av?
221 # -----------------------------------------------------------
222 AC_ARG_ENABLE(empathy-av,
223             AS_HELP_STRING([--enable-empathy-av=@<:@no/yes@:>@],
224             [build empathy-av (legacy call UI)]),,
225             [enable_empathy_av=no])
226 if test "x$enable_empathy_av" != "xno" ; then
227    PKG_CHECK_MODULES(EMPATHY_AV,
228    [
229       farstream-0.1
230       telepathy-farstream >= $TELEPATHY_FARSTREAM_REQUIRED
231    ])
232    AC_DEFINE(HAVE_EMPATHY_AV, 1, [Define if you have StreamedMedia channel support])
233    have_empathy_av=yes
234 fi
235 AM_CONDITIONAL(HAVE_EMPATHY_AV, test "x$have_empathy_av" = "xyes")
236
237 # -----------------------------------------------------------
238 # evolution-data-server (about-me)
239 # -----------------------------------------------------------
240 AC_ARG_WITH(eds,
241             AS_HELP_STRING([--with-eds],
242                            [build with evolution-data-server support]),,
243             [with_eds=yes])
244 if test x"$with_eds" = x"yes" ; then
245    PKG_CHECK_MODULES(EDS, [libebook-1.2])
246    AC_DEFINE(HAVE_EDS, 1, [Define if we have libebook])
247 fi
248
249 # -----------------------------------------------------------
250 # Enable debug
251 # -----------------------------------------------------------
252
253 AC_ARG_ENABLE(debug,
254   AS_HELP_STRING([--disable-debug],
255                  [compile without debug code]),
256     enable_debug=$enableval, enable_debug=yes )
257
258 if test x$enable_debug = xyes; then
259   AC_DEFINE(ENABLE_DEBUG, [], [Enable debug code])
260 fi
261
262 # -----------------------------------------------------------
263 # Language Support
264 # -----------------------------------------------------------
265 IT_PROG_INTLTOOL([0.40.0])
266
267 GETTEXT_PACKAGE=empathy
268 AC_SUBST(GETTEXT_PACKAGE)
269 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[Gettext package name])
270
271 # -----------------------------------------------------------
272 # Connectivity integration
273 # -----------------------------------------------------------
274 AC_ARG_WITH(connectivity,
275               AS_HELP_STRING([--with-connectivity=@<:@nm/connman/auto/no@:>@],
276                              [build with connectivity support]), ,
277                              with_connectivity=auto)
278
279 if test "x$with_connectivity" = "xno"; then
280    have_nm=no
281    have_connman=no
282
283 elif test "x$with_connectivity" = "xconnman"; then
284    have_nm=no
285
286    PKG_CHECK_MODULES(CONNMAN,
287    [
288       dbus-glib-1
289    ], have_connman="yes", have_connman="no")
290
291    if test "x$have_connman" = "xyes"; then
292       AC_DEFINE(HAVE_CONNMAN, 1, [Define if you have connman dependencies])
293    fi
294
295 else
296    have_connman=no
297
298    PKG_CHECK_MODULES(NETWORK_MANAGER,
299    [
300       libnm-glib >= $NETWORK_MANAGER_REQUIRED
301    ], have_nm="yes", have_nm="no")
302
303    if test "x$have_nm" = "xyes"; then
304       AC_DEFINE(HAVE_NM, 1, [Define if you have libnm-glib])
305    fi
306 fi
307
308 if test "x$with_connectivity" = "xconnman" -a "x$have_connman" != "xyes"; then
309    AC_MSG_ERROR([Couldn't find connman dependencies:
310
311 $CONNMAN_PKG_ERRORS])
312 fi
313
314 if test "x$with_connectivity" = "xnm" -a "x$have_nm" != "xyes"; then
315    AC_MSG_ERROR([Couldn't find Network Manager dependencies:
316
317 $NETWORK_MANAGER_PKG_ERRORS])
318 fi
319
320 AM_CONDITIONAL(HAVE_NM, test "x$have_nm" = "xyes")
321 AM_CONDITIONAL(HAVE_CONNMAN, test "x$have_connman" = "xyes")
322
323 # -----------------------------------------------------------
324 # gudev
325 # -----------------------------------------------------------
326 AC_ARG_ENABLE(gudev,
327               AS_HELP_STRING([--enable-gudev=@<:@no/yes/auto@:>@],
328                              [build with gudev support]), ,
329                              enable_gudev=auto)
330
331 if test "x$enable_gudev" != "xno"; then
332
333    PKG_CHECK_MODULES(UDEV, [gudev-1.0],
334         have_gudev="yes", have_gudev="no")
335
336    if test "x$have_gudev" = "xyes"; then
337       AC_DEFINE(HAVE_UDEV, 1, [Define if you have gudev])
338    fi
339 else
340    have_gudev=no
341 fi
342
343 if test "x$enable_gudev" = "xyes" -a "x$have_gudev" != "xyes"; then
344    AC_MSG_ERROR([Could not find gudev dependencies:
345
346 $UDEV_PKG_ERRORS])
347 fi
348 AM_CONDITIONAL(HAVE_UDEV, test "x$have_gudev" = "xyes")
349
350 # -----------------------------------------------------------
351 # spellchecking checks: enchant and iso-codes
352 # -----------------------------------------------------------
353 AC_ARG_ENABLE(spell,
354               AS_HELP_STRING([--enable-spell=@<:@no/yes/auto@:>@],
355                              [Enable spell checking]), ,
356                              enable_spell=auto)
357
358 if test "x$enable_spell" != "xno"; then
359    PKG_CHECK_MODULES(ENCHANT,
360    [
361       enchant >= $ENCHANT_REQUIRED,
362       iso-codes >= $ISO_CODES_REQUIRED
363    ], have_enchant="yes", have_enchant="no")
364
365    if test "x$have_enchant" = "xyes"; then
366       AC_MSG_CHECKING([whether iso-codes has iso-639 and iso-3166 domains])
367       if $PKG_CONFIG --variable=domains iso-codes | grep 639 > /dev/null && \
368          $PKG_CONFIG --variable=domains iso-codes | grep 3166 > /dev/null ; then
369             AC_DEFINE_UNQUOTED(ISO_CODES_PREFIX, ["`$PKG_CONFIG --variable=prefix iso-codes`"], [ISO codes prefix])
370             AC_DEFINE(HAVE_ENCHANT, [], [Define if you have libenchant])
371             result=yes
372       else
373             result=no
374             have_enchant="no"
375       fi
376       AC_MSG_RESULT([$result])
377    fi
378 else
379    have_enchant=no
380 fi
381
382 if test "x$enable_spell" = "xyes" -a "x$have_enchant" != "xyes"; then
383    AC_MSG_ERROR([Could not find spell-checking dependencies:
384
385 $ENCHANT_PKG_ERRORS])
386 fi
387
388 AM_CONDITIONAL(HAVE_ENCHANT, test "x$have_enchant" = "xyes")
389
390 # -----------------------------------------------------------
391 # Map view checks: libchamplain
392 # -----------------------------------------------------------
393 AC_ARG_ENABLE(map,
394               AS_HELP_STRING([--enable-map=@<:@no/yes/auto@:>@],
395                              [Enable map view]), ,
396                              enable_map=auto)
397
398 if test "x$enable_map" != "xno"; then
399
400    PKG_CHECK_MODULES(LIBCHAMPLAIN,
401     [
402        clutter-gtk-1.0
403        champlain-gtk-0.12
404        champlain-0.12 >= $CHAMPLAIN_REQUIRED
405     ], have_libchamplain="yes", have_libchamplain="no")
406
407    if test "x$have_libchamplain" = "xyes"; then
408       AC_DEFINE(HAVE_LIBCHAMPLAIN, 1, [Define if you have libchamplain])
409    fi
410 else
411    have_libchamplain=no
412 fi
413
414 if test "x$enable_map" = "xyes" -a "x$have_libchamplain" != "xyes"; then
415    AC_MSG_ERROR([Could not find map view dependencies:
416
417 $LIBCHAMPLAIN_PKG_ERRORS])
418 fi
419
420 AM_CONDITIONAL(HAVE_LIBCHAMPLAIN, test "x$have_libchamplain" = "xyes")
421
422 # -----------------------------------------------------------
423 # location checks: geoclue
424 # -----------------------------------------------------------
425 AC_ARG_ENABLE(location,
426               AS_HELP_STRING([--enable-location=@<:@no/yes/auto@:>@],
427                              [Enable location awareness]), ,
428                              enable_location=auto)
429
430 if test "x$enable_location" != "xno"; then
431    PKG_CHECK_MODULES(GEOCLUE,
432    [
433       geoclue >= $GEOCLUE_REQUIRED
434    ], have_geoclue="yes", have_geoclue="no")
435
436    if test "x$have_geoclue" = "xyes"; then
437       AC_DEFINE(HAVE_GEOCLUE, 1, [Define if you have geoclue])
438    fi
439 else
440    have_geoclue="no"
441 fi
442
443 if test "x$enable_location" = "xyes" -a "x$have_geoclue" != "xyes"; then
444    AC_MSG_ERROR([Could not find location dependencies:
445
446 $GEOCLUE_PKG_ERRORS])
447 fi
448
449 AM_CONDITIONAL(HAVE_GEOCLUE, test "x$have_geoclue" = "xyes")
450 AC_SUBST(GEOCLUE_CFLAGS)
451 AC_SUBST(GEOCLUE_LIBS)
452
453 # -----------------------------------------------------------
454 # location checks: geocode-glib
455 # -----------------------------------------------------------
456 AC_ARG_ENABLE(geocode,
457               AS_HELP_STRING([--enable-geocode=@<:@no/yes/auto@:>@],
458                              [Enable geocode support]), ,
459                              enable_geocode=auto)
460
461 if test "x$enable_geocode" != "xno"; then
462    PKG_CHECK_MODULES(GEOCODE,
463    [
464       geocode-glib
465    ], have_geocode="yes", have_geocode="no")
466
467    if test "x$have_geocode" = "xyes"; then
468       AC_DEFINE(HAVE_GEOCODE, 1, [Define if you have geocode])
469    fi
470 else
471    have_geocode="no"
472 fi
473
474 if test "x$enable_geocode" = "xyes" -a "x$have_geocode" != "xyes"; then
475    AC_MSG_ERROR([Could not find geocode dependencies:
476
477 $GEOCODE_PKG_ERRORS])
478 fi
479
480 AM_CONDITIONAL(HAVE_GEOCODE, test "x$have_geocode" = "xyes")
481 AC_SUBST(GEOCODE_CFLAGS)
482 AC_SUBST(GEOCODE_LIBS)
483
484 # -----------------------------------------------------------
485 # meego widgets support
486 # -----------------------------------------------------------
487 AC_ARG_ENABLE(meego,
488               AS_HELP_STRING([--enable-meego=@<:@no/yes@:>@],
489                              [Enable meego widgets]), ,
490                              enable_meego=no)
491
492 if test "x$enable_meego" != "xno"; then
493     PKG_CHECK_MODULES(MEEGO,
494     [
495        mx-gtk-1.0
496        gio-unix-2.0
497     ], have_meego="yes", have_meego="no")
498
499     if test "x$have_meego" = "xyes"; then
500        AC_DEFINE(HAVE_MEEGO, 1, [Define if you have meego])
501     fi
502 else
503    have_meego="no"
504 fi
505
506 if test "x$enable_meego" = "xyes" -a "x$have_meego" != "xyes"; then
507    AC_MSG_ERROR([Could not find meego dependencies:
508
509 $MEEGO_PKG_ERRORS])
510 fi
511
512 AM_CONDITIONAL(HAVE_MEEGO, test "x$have_meego" = "xyes")
513 AC_SUBST(MEEGO_CFLAGS)
514 AC_SUBST(MEEGO_LIBS)
515
516 # -----------------------------------------------------------
517 # nautilus-sendto
518 # -----------------------------------------------------------
519 AC_ARG_ENABLE(nautilus-sendto,
520               AS_HELP_STRING([--enable-nautilus-sendto=@<:@no/yes/auto@:>@],
521                              [build nautilus-sendto plugin]), ,
522                              enable_nautilus_sendto=auto)
523
524 if test "x$enable_nautilus_sendto" != "xno"; then
525    PKG_CHECK_MODULES(NST,
526     [
527        nautilus-sendto >= $NAUTILUS_SENDTO_REQUIRED
528     ], have_nst="yes", have_nst="no")
529 else
530    have_nst=no
531 fi
532
533 if test "x$enable_nautilus_sendto" = "xyes" -a "x$have_nst" != "xyes"; then
534    AC_MSG_ERROR([Could not find nautilus-sendto dependencies:
535
536 $NST_PKG_ERRORS])
537 fi
538
539 AM_CONDITIONAL(HAVE_NST, test "x$have_nst" = "xyes")
540
541 # -----------------------------------------------------------
542 # goa-mc-plugin
543 # -----------------------------------------------------------
544 AC_ARG_ENABLE(goa,
545               AS_HELP_STRING([--enable-goa=@<:@no/yes/auto@:>@],
546                              [build GOA MC plugin]), ,
547                              enable_goa=auto)
548
549 if test "x$enable_goa" != "xno"; then
550    PKG_CHECK_MODULES(GOA,
551     [
552        mission-control-plugins
553        goa-1.0 >= $GOA_REQUIRED
554     ], have_goa="yes", have_goa="no")
555
556    AC_MSG_CHECKING([Mission Control plugins dir])
557    MISSION_CONTROL_PLUGINS_DIR=`pkg-config --variable=plugindir mission-control-plugins`
558
559    AC_MSG_RESULT([$MISSION_CONTROL_PLUGINS_DIR])
560    AC_SUBST(MISSION_CONTROL_PLUGINS_DIR)
561 else
562    have_goa=no
563 fi
564
565 if test "x$enable_goa" = "xyes" -a "x$have_goa" != "xyes"; then
566    AC_MSG_ERROR([Could not find GOA dependencies.])
567 fi
568
569 if test "x$have_goa" = "xyes"; then
570    AC_DEFINE(HAVE_GOA, 1, [Define to 1 to enable GNOME Online Accounts])
571 fi
572
573 AM_CONDITIONAL(HAVE_GOA, test "x$have_goa" = "xyes")
574
575 # Optional dependency for avatar selection
576 AC_ARG_WITH([cheese],
577             AS_HELP_STRING([--with-cheese],
578                            [enable cheese webcam support]),,
579             with_cheese=auto)
580
581 if test x"$with_cheese" != x"no" ; then
582    PKG_CHECK_MODULES(CHEESE, gstreamer-0.10 cheese-gtk >= 2.91.91.1, [have_cheese=yes], [have_cheese=no])
583    if test x${have_cheese} = xyes; then
584      AC_DEFINE(HAVE_CHEESE, 1, [Define to 1 to enable cheese webcam support])
585    fi
586    if test x${with_cheese} = xyes && test x${have_cheese} = xno; then
587      AC_MSG_ERROR([Cheese configured but not found:
588
589 $CHEESE_PKG_ERRORS])
590    fi
591 else
592    have_cheese=no
593 fi
594 AM_CONDITIONAL(BUILD_CHEESE, test x${have_cheese} = xyes)
595
596 # Help documentation
597 YELP_HELP_INIT
598
599 # -----------------------------------------------------------
600 # Coding style checks
601 # -----------------------------------------------------------
602 AC_ARG_ENABLE(coding-style-checks,
603   AS_HELP_STRING([--disable-coding-style-checks],
604                  [do not check coding style using grep]),
605     [ENABLE_CODING_STYLE_CHECKS=$enableval],
606     [ENABLE_CODING_STYLE_CHECKS=yes])
607
608 AC_SUBST([ENABLE_CODING_STYLE_CHECKS])
609 # -----------------------------------------------------------
610
611 AC_CONFIG_FILES([
612    Makefile
613    data/Makefile
614    data/empathy.desktop.in
615    data/empathy-accounts.desktop.in
616    data/icons/Makefile
617    extensions/Makefile
618    po/Makefile.in
619    libempathy/Makefile
620    libempathy-gtk/Makefile
621    src/Makefile
622    nautilus-sendto-plugin/Makefile
623    goa-mc-plugin/Makefile
624    help/Makefile
625    tests/Makefile
626    tests/interactive/Makefile
627    tests/xml/Makefile
628    tools/Makefile
629 ])
630 AC_OUTPUT
631
632 echo "
633 Configure summary:
634
635         Compiler....................:  ${CC}
636         Compiler Flags..............:  ${CFLAGS} ${ERROR_CFLAGS}
637         Linker Flags................:  ${LDFLAGS}
638         Prefix......................:  ${prefix}
639         Coding style checks.........:  ${ENABLE_CODING_STYLE_CHECKS}
640
641     Features:
642         Spell checking (enchant)....:  ${have_enchant}
643         Display maps (libchamplain).:  ${have_libchamplain}
644         Location awareness (Geoclue):  ${have_geoclue}
645         Geocode support (Geocode)...:  ${have_geocode}
646         Meego widgets...............:  ${have_meego}
647         Cheese webcam support ......:  ${have_cheese}
648         Camera monitoring...........:  ${have_gudev}
649
650     Connectivity:
651         NetworkManager integration..:  ${have_nm}
652         ConnMan integration.........:  ${have_connman}
653
654     Extras:
655         Nautilus-sendto plugin......:  ${have_nst}
656         GOA MC plugin...............:  ${have_goa}
657         Salut E-D-S support.........:  ${with_eds}
658         empathy-av (legacy).........:  ${enable_empathy_av}
659 "