~ubuntu-branches/ubuntu/precise/empathy/precise-updates

« back to all changes in this revision

Viewing changes to .pc/41_unity_launcher_progress.patch/configure.ac

  • Committer: Ken VanDine
  • Date: 2012-06-29 17:28:19 UTC
  • mfrom: (188.1.1 empathy)
  • Revision ID: ken.vandine@canonical.com-20120629172819-bl38rfqndp62hk05
* New upstream release (LP: #1018784).
  - Use a weak reference while loading the logs asynchronously to detect when the object has been destroyed
  - irc connection parameters dialog: "apply" button stays unsensitive (Guillaume Desmottes)
  - empathy-chat crashed with SIGSEGV in _tp_base_client_handle_channels() (Guillaume Desmottes)

Show diffs side-by-side

added added

removed removed

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