]> git.0d.be Git - empathy.git/blob - configure.ac
Port EmpathyContact to geocode-glib >= 0.99.1
[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], [7])
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.7.3
38 GNUTLS_REQUIRED=2.8.5
39
40 GLIB_REQUIRED=2.33.3
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_34, [Prevent post 2.34 APIs])
43
44 GTK_REQUIRED=3.5.1
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
54 TELEPATHY_GLIB_REQUIRED=0.19.9
55 AC_DEFINE(TP_VERSION_MIN_REQUIRED, TP_VERSION_0_20, [Ignore post 0.20 deprecations])
56 AC_DEFINE(TP_VERSION_MAX_ALLOWED, TP_VERSION_0_20, [Prevent post 0.20 APIs])
57 AC_DEFINE(TP_SEAL_ENABLE, 1, [Prevent to use sealed variables])
58
59 GSTREAMER_REQUIRED=0.10.32
60 LIBSECRET_REQUIRED=0.5
61 GCR_REQUIRED=2.91.4
62 LIBCANBERRA_GTK_REQUIRED=0.25
63 LIBNOTIFY_REQUIRED=0.7.0
64 TELEPATHY_LOGGER=0.2.13
65 WEBKIT_REQUIRED=1.3.13
66 GOA_REQUIRED=3.5.1
67
68 # Optional deps
69 ENCHANT_REQUIRED=1.2.0
70 GEOCLUE_REQUIRED=0.12
71 GEOCODE_GLIB_REQUIRED=0.99.1
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 CHEESE_GTK_REQUIRED=3.4.0
77 LIBACCOUNTS_REQUIRED=1.1
78 LIBSIGNON_REQUIRED=1.1
79 MC_PLUGINS_REQUIRED=5.13.1
80
81 # Use --enable-maintainer-mode to disable deprecated symbols,
82 # disable single include and enable GSEAL. If this is not a released empathy,
83 # maintainer mode is forced
84 # FIXME: don't disable deprecated symbols until bgo #636654 has been fixed
85 #ifelse(empathy_released, 1, [], [enable_maintainer_mode="yes"])
86 #GNOME_MAINTAINER_MODE_DEFINES
87
88 # egg-list-box
89 prev_top_build_prefix=$ac_top_build_prefix
90 prev_ac_configure_args=$ac_configure_args
91 AX_CONFIG_DIR([libempathy-gtk/egg-list-box])
92 ac_top_build_prefix=$prev_top_build_prefix
93 ac_configure_args=$prev_ac_configure_args
94
95 export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:"$ac_top_build_prefix"libempathy-gtk/egg-list-box
96 PKG_CHECK_MODULES(EGGLISTBOX, egg-list-box)
97
98 AC_CONFIG_MACRO_DIR([m4])
99 AC_CONFIG_HEADERS([config.h])
100 AC_CONFIG_SRCDIR([configure.ac])
101 AC_CONFIG_AUX_DIR(.)
102
103 AM_INIT_AUTOMAKE([1.11 no-define -Wno-portability tar-ustar no-dist-gzip dist-xz])
104
105 # Support silent build rules. Disable
106 # by either passing --disable-silent-rules to configure or passing V=1
107 # to make
108 AM_SILENT_RULES([yes])
109
110 # Check for programs
111 AC_PROG_CC
112 AC_HEADER_STDC
113 AM_PROG_MKDIR_P
114 AM_PATH_GLIB_2_0
115 AC_PATH_XTRA
116
117 # Initialize libtool
118 LT_PREREQ([2.2])
119 LT_INIT
120
121 AC_PATH_PROG(DBUS_BINDING_TOOL, dbus-binding-tool)
122 GLIB_GSETTINGS
123 GLIB_GENMARSHAL=`$PKG_CONFIG glib-2.0 --variable=glib_genmarshal`
124 AC_SUBST(GLIB_GENMARSHAL)
125
126 AC_CHECK_PROGS([XSLTPROC], [xsltproc])
127 if test -z "$XSLTPROC"; then
128   AC_MSG_ERROR([xsltproc (from libxslt) is required])
129 fi
130 AM_PATH_PYTHON([2.3])
131
132 EMPATHY_ARG_VALGRIND
133
134
135 # -----------------------------------------------------------
136 # Error flags
137 # -----------------------------------------------------------
138 AS_COMPILER_FLAG(-Wall, ERROR_CFLAGS="-Wall", ERROR_CFLAGS="")
139 AS_COMPILER_FLAG(-Werror, werror=yes, werror=no)
140
141 AC_ARG_ENABLE(Werror,
142   AS_HELP_STRING([--disable-Werror],
143                  [compile without -Werror (normally enabled in development builds)]),
144     werror=$enableval, :)
145
146 AS_COMPILER_FLAG(-Wextra, wextra=yes, wextra=no)
147 AS_COMPILER_FLAG(-Wno-missing-field-initializers,
148         wno_missing_field_initializers=yes,
149         wno_missing_field_initializers=no)
150 AS_COMPILER_FLAG(-Wno-unused-parameter,
151         wno_unused_parameter=yes,
152         wno_unused_parameter=no)
153
154 ifelse(empathy_released, 1, [],
155     [
156         if test x$werror = xyes; then
157             ERROR_CFLAGS="$ERROR_CFLAGS -Werror"
158         fi
159         if test x$wextra = xyes -a \
160             x$wno_missing_field_initializers = xyes -a \
161             x$wno_unused_parameter = xyes; then
162             ERROR_CFLAGS="$ERROR_CFLAGS -Wextra -Wno-missing-field-initializers -Wno-unused-parameter"
163         fi
164     ])
165
166 AS_COMPILER_FLAG(-Wdeclaration-after-statement, ERROR_CFLAGS="$ERROR_CFLAGS -Wdeclaration-after-statement")
167 AS_COMPILER_FLAG(-Wshadow, ERROR_CFLAGS="$ERROR_CFLAGS -Wshadow")
168 AS_COMPILER_FLAG(-Wmissing-prototypes, ERROR_CFLAGS="$ERROR_CFLAGS -Wmissing-prototypes")
169 AS_COMPILER_FLAG(-Wmissing-declarations, ERROR_CFLAGS="$ERROR_CFLAGS -Wmissing-declarations")
170 AS_COMPILER_FLAG(-Wstrict-prototypes, ERROR_CFLAGS="$ERROR_CFLAGS -Wstrict-prototypes")
171
172 AC_SUBST(ERROR_CFLAGS)
173
174 AC_ARG_ENABLE(gprof,
175             AS_HELP_STRING([--enable-gprof=@<:@no/yes@:>@],
176             [build with support for gprof]),,
177             [enable_gprof=no])
178 if test "x$enable_gprof" != "xno" ; then
179     CFLAGS="$CFLAGS -pg"
180     LDFLAGS="$LDFLAGS -pg"
181 fi
182
183 AC_SUBST(LDFLAGS)
184
185 # -----------------------------------------------------------
186 # Pkg-Config dependency checks
187 # -----------------------------------------------------------
188
189 AC_CHECK_LIBM
190 AC_SUBST(LIBM)
191
192 PKG_CHECK_MODULES(EMPATHY,
193 [
194    dbus-glib-1
195    folks >= $FOLKS_REQUIRED
196    folks-telepathy >= $FOLKS_REQUIRED
197    glib-2.0 >= $GLIB_REQUIRED
198    gio-2.0 >= $GLIB_REQUIRED
199    gio-unix-2.0 >= $GLIB_REQUIRED
200    libsecret-1 >= $LIBSECRET_REQUIRED
201    gnutls >= $GNUTLS_REQUIRED
202    gmodule-export-2.0
203    gobject-2.0
204    gsettings-desktop-schemas
205    libxml-2.0
206    telepathy-glib >= $TELEPATHY_GLIB_REQUIRED
207    telepathy-logger-0.2 >= $TELEPATHY_LOGGER
208    x11
209    gtk+-3.0 >= $GTK_REQUIRED
210    libcanberra-gtk3 >= $LIBCANBERRA_GTK_REQUIRED
211    libnotify >= $LIBNOTIFY_REQUIRED
212    gcr-3 >= $GCR_REQUIRED
213    libpulse
214    libpulse-mainloop-glib
215    webkitgtk-3.0 >= $WEBKIT_REQUIRED
216    libsoup-2.4
217    gee-1.0
218 ])
219
220 # -----------------------------------------------------------
221 # GStreamer
222 # -----------------------------------------------------------
223 AC_ARG_ENABLE(gst-1.0,
224               AS_HELP_STRING([--enable-gst-1.0=@<:@no/yes/auto@:>@],
225                              [build with GStreamer 1.0]),
226                              enable_gst1=$enableval,
227                              enable_gst1=auto)
228
229 # Try to use GStreamer 1.à if available
230 have_gst1="no"
231 if test "x$enable_gst1" != "xno"; then
232   PKG_CHECK_MODULES(EMPATHY_CALL,
233   [
234      farstream-0.2
235      telepathy-farstream >= 0.4.999
236      clutter-1.0 >= $CLUTTER_REQUIRED
237      clutter-gtk-1.0 >= $CLUTTER_GTK_REQUIRED
238      clutter-gst-2.0
239      gstreamer-1.0
240      gstreamer-audio-1.0
241      gstreamer-video-1.0
242   ], have_gst1="yes", have_gst1="no")
243
244   if test "x$have_gst1" = "xyes"; then
245     AC_DEFINE(HAVE_GST1, 1, [Build with GStreamer 1.0])
246   fi
247 fi
248
249 if test "x$enable_gst1" = "xyes" -a "x$have_gst1" != "xyes"; then
250    AC_MSG_ERROR([Could not find GStreamer 1.0 dependencies:
251
252 $EMPATHY_CALL_PKG_ERRORS])
253 fi
254
255 if test "x$have_gst1" != "xyes"; then
256   PKG_CHECK_MODULES(EMPATHY_CALL,
257   [
258      farstream-0.1
259      telepathy-farstream >= 0.2.1
260      clutter-1.0 >= $CLUTTER_REQUIRED
261      clutter-gtk-1.0 >= $CLUTTER_GTK_REQUIRED
262      clutter-gst-1.0 >= 1.5.2
263      gstreamer-0.10 >= $GSTREAMER_REQUIRED
264      gstreamer-interfaces-0.10
265   ])
266 fi
267
268 AC_DEFINE(EMPATHY_GOA_PROVIDER, "org.gnome.OnlineAccounts",
269    [Name of provider for accounts imported from GOA])
270
271 AC_DEFINE(EMPATHY_UOA_PROVIDER,
272     "im.telepathy.Account.Storage.UOA",
273    [Name of provider for accounts imported from libaccounts])
274
275 # -----------------------------------------------------------
276 # Enable debug
277 # -----------------------------------------------------------
278
279 AC_ARG_ENABLE(debug,
280   AS_HELP_STRING([--disable-debug],
281                  [compile without debug code]),
282     enable_debug=$enableval, enable_debug=yes )
283
284 if test x$enable_debug = xyes; then
285   AC_DEFINE(ENABLE_DEBUG, [], [Enable debug code])
286 fi
287
288 # -----------------------------------------------------------
289 # Language Support
290 # -----------------------------------------------------------
291 IT_PROG_INTLTOOL([0.50.0])
292
293 GETTEXT_PACKAGE=empathy
294 AC_SUBST(GETTEXT_PACKAGE)
295 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[Gettext package name])
296
297 # -----------------------------------------------------------
298 # gudev
299 # -----------------------------------------------------------
300 AC_ARG_ENABLE(gudev,
301               AS_HELP_STRING([--enable-gudev=@<:@no/yes/auto@:>@],
302                              [build with gudev support]), ,
303                              enable_gudev=auto)
304
305 if test "x$enable_gudev" != "xno"; then
306
307    PKG_CHECK_MODULES(UDEV, [gudev-1.0],
308         have_gudev="yes", have_gudev="no")
309
310    if test "x$have_gudev" = "xyes"; then
311       AC_DEFINE(HAVE_UDEV, 1, [Define if you have gudev])
312    fi
313 else
314    have_gudev=no
315 fi
316
317 if test "x$enable_gudev" = "xyes" -a "x$have_gudev" != "xyes"; then
318    AC_MSG_ERROR([Could not find gudev dependencies:
319
320 $UDEV_PKG_ERRORS])
321 fi
322 AM_CONDITIONAL(HAVE_UDEV, test "x$have_gudev" = "xyes")
323
324 # -----------------------------------------------------------
325 # spellchecking checks: enchant and iso-codes
326 # -----------------------------------------------------------
327 AC_ARG_ENABLE(spell,
328               AS_HELP_STRING([--enable-spell=@<:@no/yes/auto@:>@],
329                              [Enable spell checking]), ,
330                              enable_spell=auto)
331
332 if test "x$enable_spell" != "xno"; then
333    PKG_CHECK_MODULES(ENCHANT,
334    [
335       enchant >= $ENCHANT_REQUIRED,
336       iso-codes >= $ISO_CODES_REQUIRED
337    ], have_enchant="yes", have_enchant="no")
338
339    if test "x$have_enchant" = "xyes"; then
340       AC_MSG_CHECKING([whether iso-codes has iso-639 and iso-3166 domains])
341       if $PKG_CONFIG --variable=domains iso-codes | grep 639 > /dev/null && \
342          $PKG_CONFIG --variable=domains iso-codes | grep 3166 > /dev/null ; then
343             AC_DEFINE_UNQUOTED(ISO_CODES_PREFIX, ["`$PKG_CONFIG --variable=prefix iso-codes`"], [ISO codes prefix])
344             AC_DEFINE(HAVE_ENCHANT, [], [Define if you have libenchant])
345             result=yes
346       else
347             result=no
348             have_enchant="no"
349       fi
350       AC_MSG_RESULT([$result])
351    fi
352 else
353    have_enchant=no
354 fi
355
356 if test "x$enable_spell" = "xyes" -a "x$have_enchant" != "xyes"; then
357    AC_MSG_ERROR([Could not find spell-checking dependencies:
358
359 $ENCHANT_PKG_ERRORS])
360 fi
361
362 AM_CONDITIONAL(HAVE_ENCHANT, test "x$have_enchant" = "xyes")
363
364 # -----------------------------------------------------------
365 # Map view checks: libchamplain
366 # -----------------------------------------------------------
367 AC_ARG_ENABLE(map,
368               AS_HELP_STRING([--enable-map=@<:@no/yes/auto@:>@],
369                              [Enable map view]), ,
370                              enable_map=auto)
371
372 if test "x$enable_map" != "xno"; then
373
374    PKG_CHECK_MODULES(LIBCHAMPLAIN,
375     [
376        clutter-gtk-1.0
377        champlain-gtk-0.12
378        champlain-0.12 >= $CHAMPLAIN_REQUIRED
379     ], have_libchamplain="yes", have_libchamplain="no")
380
381    if test "x$have_libchamplain" = "xyes"; then
382       AC_DEFINE(HAVE_LIBCHAMPLAIN, 1, [Define if you have libchamplain])
383    fi
384 else
385    have_libchamplain=no
386 fi
387
388 if test "x$enable_map" = "xyes" -a "x$have_libchamplain" != "xyes"; then
389    AC_MSG_ERROR([Could not find map view dependencies:
390
391 $LIBCHAMPLAIN_PKG_ERRORS])
392 fi
393
394 AM_CONDITIONAL(HAVE_LIBCHAMPLAIN, test "x$have_libchamplain" = "xyes")
395
396 # -----------------------------------------------------------
397 # location checks: geoclue
398 # -----------------------------------------------------------
399 AC_ARG_ENABLE(location,
400               AS_HELP_STRING([--enable-location=@<:@no/yes/auto@:>@],
401                              [Enable location awareness]), ,
402                              enable_location=auto)
403
404 if test "x$enable_location" != "xno"; then
405    PKG_CHECK_MODULES(GEOCLUE,
406    [
407       geoclue >= $GEOCLUE_REQUIRED
408    ], have_geoclue="yes", have_geoclue="no")
409
410    if test "x$have_geoclue" = "xyes"; then
411       AC_DEFINE(HAVE_GEOCLUE, 1, [Define if you have geoclue])
412    fi
413 else
414    have_geoclue="no"
415 fi
416
417 if test "x$enable_location" = "xyes" -a "x$have_geoclue" != "xyes"; then
418    AC_MSG_ERROR([Could not find location dependencies:
419
420 $GEOCLUE_PKG_ERRORS])
421 fi
422
423 AM_CONDITIONAL(HAVE_GEOCLUE, test "x$have_geoclue" = "xyes")
424 AC_SUBST(GEOCLUE_CFLAGS)
425 AC_SUBST(GEOCLUE_LIBS)
426
427 # -----------------------------------------------------------
428 # location checks: geocode-glib
429 # -----------------------------------------------------------
430 AC_ARG_ENABLE(geocode,
431               AS_HELP_STRING([--enable-geocode=@<:@no/yes/auto@:>@],
432                              [Enable geocode support]), ,
433                              enable_geocode=auto)
434
435 if test "x$enable_geocode" != "xno"; then
436    PKG_CHECK_MODULES(GEOCODE,
437    [
438       geocode-glib >= $GEOCODE_GLIB_REQUIRED
439    ], have_geocode="yes", have_geocode="no")
440
441    if test "x$have_geocode" = "xyes"; then
442       AC_DEFINE(HAVE_GEOCODE, 1, [Define if you have geocode])
443    fi
444 else
445    have_geocode="no"
446 fi
447
448 if test "x$enable_geocode" = "xyes" -a "x$have_geocode" != "xyes"; then
449    AC_MSG_ERROR([Could not find geocode dependencies:
450
451 $GEOCODE_PKG_ERRORS])
452 fi
453
454 AM_CONDITIONAL(HAVE_GEOCODE, test "x$have_geocode" = "xyes")
455 AC_SUBST(GEOCODE_CFLAGS)
456 AC_SUBST(GEOCODE_LIBS)
457
458 # -----------------------------------------------------------
459 # nautilus-sendto
460 # -----------------------------------------------------------
461 AC_ARG_ENABLE(nautilus-sendto,
462               AS_HELP_STRING([--enable-nautilus-sendto=@<:@no/yes/auto@:>@],
463                              [build nautilus-sendto plugin]), ,
464                              enable_nautilus_sendto=auto)
465
466 if test "x$enable_nautilus_sendto" != "xno"; then
467    PKG_CHECK_MODULES(NST,
468     [
469        nautilus-sendto >= $NAUTILUS_SENDTO_REQUIRED
470     ], have_nst="yes", have_nst="no")
471 else
472    have_nst=no
473 fi
474
475 if test "x$enable_nautilus_sendto" = "xyes" -a "x$have_nst" != "xyes"; then
476    AC_MSG_ERROR([Could not find nautilus-sendto dependencies:
477
478 $NST_PKG_ERRORS])
479 fi
480
481 AM_CONDITIONAL(HAVE_NST, test "x$have_nst" = "xyes")
482
483 # -----------------------------------------------------------
484 # goa-mc-plugin
485 # -----------------------------------------------------------
486 AC_ARG_ENABLE(goa,
487               AS_HELP_STRING([--enable-goa=@<:@no/yes/auto@:>@],
488                              [build GOA MC plugin]), ,
489                              enable_goa=auto)
490
491 if test "x$enable_goa" != "xno"; then
492    PKG_CHECK_MODULES(GOA,
493     [
494        mission-control-plugins
495        goa-1.0 >= $GOA_REQUIRED
496     ], have_goa="yes", have_goa="no")
497 else
498    have_goa=no
499 fi
500
501 if test "x$enable_goa" = "xyes" -a "x$have_goa" != "xyes"; then
502    AC_MSG_ERROR([Could not find GOA dependencies:
503
504 $GOA_PKG_ERRORS])
505 fi
506
507 if test "x$have_goa" = "xyes"; then
508    AC_DEFINE(HAVE_GOA, 1, [Define to 1 to enable GNOME Online Accounts])
509 fi
510
511 AM_CONDITIONAL(HAVE_GOA, test "x$have_goa" = "xyes")
512
513 # Optional dependency for avatar selection
514 AC_ARG_WITH([cheese],
515             AS_HELP_STRING([--with-cheese],
516                            [enable cheese webcam support]),,
517             with_cheese=auto)
518
519 if test x"$with_cheese" != x"no" ; then
520    PKG_CHECK_MODULES(CHEESE, cheese-gtk >= CHEESE_GTK_REQUIRED, [have_cheese=yes], [have_cheese=no])
521    if test x${have_cheese} = xyes; then
522      AC_DEFINE(HAVE_CHEESE, 1, [Define to 1 to enable cheese webcam support])
523    fi
524    if test x${with_cheese} = xyes && test x${have_cheese} = xno; then
525      AC_MSG_ERROR([Cheese configured but not found:
526
527 $CHEESE_PKG_ERRORS])
528    fi
529 else
530    have_cheese=no
531 fi
532 AM_CONDITIONAL(BUILD_CHEESE, test x${have_cheese} = xyes)
533
534 # -----------------------------------------------------------
535 # ubuntu-online-accounts support
536 # -----------------------------------------------------------
537 AC_ARG_ENABLE(ubuntu-online-accounts,
538               AS_HELP_STRING([--enable-ubuntu-online-accounts=@<:@no/yes/auto@:>@],
539                              [build Ubuntu Online Accounts plugins]), ,
540                              enable_ubuntu_online_accounts=auto)
541
542 if test "x$enable_ubuntu_online_accounts" != "xno"; then
543    PKG_CHECK_MODULES(UOA,
544     [
545        account-plugin
546        mission-control-plugins >= $MC_PLUGINS_REQUIRED
547        libaccounts-glib >= $LIBACCOUNTS_REQUIRED
548        libsignon-glib >= $LIBSIGNON_REQUIRED
549     ], have_uoa="yes", have_uoa="no")
550
551    # provider plugin dir
552    AC_MSG_CHECKING([Accounts provider plugin dir])
553    ACCOUNTS_PROVIDER_PLUGIN_DIR=`pkg-config --variable=provider_plugindir account-plugin`
554
555    AC_MSG_RESULT([$ACCOUNTS_PROVIDER_PLUGIN_DIR])
556    AC_SUBST(ACCOUNTS_PROVIDER_PLUGIN_DIR)
557
558    # app plugin dir
559    AC_MSG_CHECKING([Accounts provider app plugin dir])
560    ACCOUNTS_APP_PLUGIN_DIR=`pkg-config --variable=application_plugindir account-plugin`
561
562    AC_MSG_RESULT([$ACCOUNTS_APP_PLUGIN_DIR])
563    AC_SUBST(ACCOUNTS_APP_PLUGIN_DIR)
564
565    # provider files dir
566    AC_MSG_CHECKING([Accounts provider files dir])
567    ACCOUNTS_PROVIDER_FILES_DIR=`pkg-config --variable=providerfilesdir libaccounts-glib`
568
569    AC_MSG_RESULT([$ACCOUNTS_PROVIDER_FILES_DIR])
570    AC_SUBST(ACCOUNTS_PROVIDER_FILES_DIR)
571
572    # service files dir
573    AC_MSG_CHECKING([Accounts service files dir])
574    ACCOUNTS_SERVICE_FILES_DIR=`pkg-config --variable=servicefilesdir libaccounts-glib`
575
576    AC_MSG_RESULT([$ACCOUNTS_SERVICE_FILES_DIR])
577    AC_SUBST(ACCOUNTS_SERVICE_FILES_DIR)
578
579    # application files dir
580    AC_MSG_CHECKING([Accounts applications files dir])
581    ACCOUNTS_APPLICATION_FILES_DIR=`pkg-config --variable=applicationfilesdir libaccounts-glib`
582
583    AC_MSG_RESULT([$ACCOUNTS_APPLICATION_FILES_DIR])
584    AC_SUBST(ACCOUNTS_APPLICATION_FILES_DIR)
585
586 else
587    have_uoa=no
588 fi
589
590 if test "x$enable_ubuntu_online_accounts" = "xyes" -a "x$have_uoa" != "xyes"; then
591    AC_MSG_ERROR([Could not find Ubuntu Online Accounts dependencies:
592
593 $UOA_PKG_ERRORS])
594 fi
595
596 if test "x$have_uoa" = "xyes"; then
597    AC_DEFINE(HAVE_UOA, 1, [Define to 1 to build Ubuntu Online Accounts plugins])
598 fi
599
600 AM_CONDITIONAL(HAVE_UOA, test "x$have_uoa" = "xyes")
601
602 if test "x$have_uoa" = "xyes" -o "x$have_goa" = "xyes"; then
603    AC_MSG_CHECKING([Mission Control plugins dir])
604    MISSION_CONTROL_PLUGINS_DIR=${libdir}/mission-control-plugins.`pkg-config --variable=MCP_ABI_VERSION mission-control-plugins`
605
606    AC_MSG_RESULT([$MISSION_CONTROL_PLUGINS_DIR])
607    AC_SUBST(MISSION_CONTROL_PLUGINS_DIR)
608 fi
609
610
611 # Help documentation
612 YELP_HELP_INIT
613
614 # -----------------------------------------------------------
615 # Coding style checks
616 # -----------------------------------------------------------
617 AC_ARG_ENABLE(coding-style-checks,
618   AS_HELP_STRING([--disable-coding-style-checks],
619                  [do not check coding style using grep]),
620     [ENABLE_CODING_STYLE_CHECKS=$enableval],
621     [ENABLE_CODING_STYLE_CHECKS=yes])
622
623 AC_SUBST([ENABLE_CODING_STYLE_CHECKS])
624 # -----------------------------------------------------------
625
626 AC_CONFIG_FILES([
627    Makefile
628    data/Makefile
629    data/empathy.desktop.in
630    data/icons/Makefile
631    data/themes/Makefile
632    extensions/Makefile
633    po/Makefile.in
634    libempathy/Makefile
635    libempathy-gtk/Makefile
636    src/Makefile
637    nautilus-sendto-plugin/Makefile
638    goa-mc-plugin/Makefile
639    ubuntu-online-accounts/Makefile
640    ubuntu-online-accounts/mc-plugin/Makefile
641    ubuntu-online-accounts/cc-plugins/Makefile
642    ubuntu-online-accounts/cc-plugins/account-plugins/Makefile
643    ubuntu-online-accounts/cc-plugins/providers/Makefile
644    ubuntu-online-accounts/cc-plugins/services/Makefile
645    ubuntu-online-accounts/cc-plugins/app-plugin/Makefile
646    help/Makefile
647    tests/Makefile
648    tests/interactive/Makefile
649    tests/xml/Makefile
650    tests/certificates/Makefile
651    tools/Makefile
652 ])
653 AC_OUTPUT
654
655 echo "
656 Configure summary:
657
658         Compiler....................:  ${CC}
659         Compiler Flags..............:  ${CFLAGS} ${ERROR_CFLAGS}
660         Linker Flags................:  ${LDFLAGS}
661         Prefix......................:  ${prefix}
662         Coding style checks.........:  ${ENABLE_CODING_STYLE_CHECKS}
663         Use GStreamer 1.0...........:  ${have_gst1}
664
665     Features:
666         Spell checking (enchant)....:  ${have_enchant}
667         Display maps (libchamplain).:  ${have_libchamplain}
668         Location awareness (Geoclue):  ${have_geoclue}
669         Geocode support (Geocode)...:  ${have_geocode}
670         Cheese webcam support ......:  ${have_cheese}
671         Camera monitoring...........:  ${have_gudev}
672
673     Extras:
674         Nautilus-sendto plugin......:  ${have_nst}
675         GOA MC plugin...............:  ${have_goa}
676         Ubuntu Online plugins.......:  ${have_uoa}
677 "