1 # If not 1, append datestamp to the version number
2 m4_define([folks_released], [0])
4 m4_define([folks_major_version], [0])
5 m4_define([folks_minor_version], [7])
6 m4_define([folks_micro_version], [4])
7 m4_define([folks_nano_version], [0])
9 # If library source has changed since last release, increment revision
10 # If public symbols have been added, removed or changed since last release,
11 # increment current and set revision to 0
12 # If public symbols have been added since last release, increment age
13 # If public symbols have been removed since last release, set age to 0
14 m4_define([folks_lt_current], [36])
15 m4_define([folks_lt_revision], [0])
16 m4_define([folks_lt_age], [11])
18 # Display the nano_version only if it's not '0'
19 m4_define([folks_base_version],
20 folks_major_version.folks_minor_version.folks_micro_version)
21 m4_define([folks_full_version],
22 [m4_if(folks_nano_version, [0],
23 folks_base_version, folks_base_version.folks_nano_version)])
25 m4_define([folks_maybe_datestamp],
26 m4_if(folks_released, [1],
27 [], [m4_esyscmd([date +.%Y%m%d | tr -d '\n\r'])]))
29 m4_define([folks_version], folks_full_version[]folks_maybe_datestamp)
30 m4_define([folks_major_minor_version], folks_major_version.folks_minor_version)
31 m4_define([folks_module_version], folks_lt_current)
33 AC_INIT([folks], folks_version,
34 [https://bugzilla.gnome.org/browse.cgi?product=folks], [folks],
35 [http://telepathy.freedesktop.org/wiki/Folks])
36 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
39 AC_COPYRIGHT([Copyright (C) 2010 Collabora Ltd.])
41 AC_CONFIG_MACRO_DIR([m4])
42 AC_CONFIG_SRCDIR([Makefile.am])
43 AC_CONFIG_HEADERS(config.h)
44 AC_CONFIG_SRCDIR([configure.ac])
45 AM_INIT_AUTOMAKE([1.11 dist-xz no-define
46 no-dist-gzip tar-ustar -Wno-portability color-tests])
47 AM_MAINTAINER_MODE([enable])
53 PKG_PROG_PKG_CONFIG([0.21])
60 LT_CURRENT=folks_lt_current
61 LT_REVISION=folks_lt_revision
63 AC_SUBST([LT_CURRENT])
64 AC_SUBST([LT_REVISION])
67 FOLKS_MAJOR_MINOR_VERSION=folks_major_minor_version
68 AC_SUBST([FOLKS_MAJOR_MINOR_VERSION])
71 AC_SUBST([API_VERSION])
73 AC_ARG_ENABLE(tracker-backend,
74 AC_HELP_STRING([--enable-tracker-backend],
75 [ build the Tracker backend]),
76 enable_tracker_backend=$enableval,
77 enable_tracker_backend=no )
79 AM_CONDITIONAL([ENABLE_TRACKER], [test "x$enable_tracker_backend" = "xyes"])
81 if test "x$enable_tracker_backend" = "xyes"; then
82 AC_DEFINE(HAVE_TRACKER, [1],
83 [Define as 1 if you have the Tracker backend])
85 AC_DEFINE(HAVE_TRACKER, [0],
86 [Define as 1 if you have the Tracker backend])
89 AC_ARG_ENABLE(eds-backend,
90 AC_HELP_STRING([--enable-eds-backend],
91 [ build the E-D-S backend]),
92 enable_eds_backend=$enableval,
93 enable_eds_backend=yes )
95 if test "x$enable_eds_backend" = "xyes"; then
96 AC_DEFINE(HAVE_EDS, [1], [Define as 1 if you have the eds backend])
98 AC_DEFINE(HAVE_EDS, [0], [Define as 1 if you have the eds backend])
101 AM_CONDITIONAL([ENABLE_EDS], [test "x$enable_eds_backend" = "xyes"])
103 AC_ARG_ENABLE(telepathy-backend,
104 AC_HELP_STRING([--enable-telepathy-backend],
105 [ build the Telepathy backend]),
106 enable_telepathy_backend=$enableval,
107 enable_telepathy_backend=yes )
109 if test "x$enable_telepathy_backend" = "xyes"; then
110 AC_DEFINE(HAVE_TELEPATHY, [1], [Define as 1 if you have the Telepathy backend])
112 AC_DEFINE(HAVE_TELEPATHY, [0], [Define as 1 if you have the Telepathy backend])
115 AM_CONDITIONAL([ENABLE_TELEPATHY], [test "x$enable_eds_backend" = "xyes"])
117 # Automatically check the dependencies for the libsocialweb backend
118 SW_CLIENT_REQUIRED=0.25.20
119 AC_ARG_ENABLE(libsocialweb-backend,
120 AC_HELP_STRING([--enable-libsocialweb-backend=@<:@no/yes/auto@:>@],
121 [build the Libsocialweb backend (default: auto)]),
122 enable_libsocialweb_backend=$enableval,
123 enable_libsocialweb_backend=auto )
125 # this may be overwritten farther down
126 AC_DEFINE(HAVE_LIBSOCIALWEB, [0],
127 [Define as 1 if you have the libsocialweb backend])
128 if test "x$enable_libsocialweb_backend" != "xno"; then
129 PKG_CHECK_MODULES([SW_CLIENT], [libsocialweb-client >= $SW_CLIENT_REQUIRED],
130 have_libsocialweb_backend="yes", have_libsocialweb_backend="no")
131 if test "x$have_libsocialweb_backend" = "xyes" -a \
132 "x$enable_vala" = "xyes"; then
133 VALA_CHECK_PACKAGES([telepathy-glib
136 libsocialweb-client],
138 have_libsocialweb_backend="no")
141 if test "x$have_libsocialweb_backend" = "xyes"; then
142 AC_DEFINE(HAVE_LIBSOCIALWEB, [1],
143 [Define if you have the libsocialweb backend])
146 have_libsocialweb_backend=no
149 if test "x$enable_libsocialweb_backend" = "xyes" -a \
150 "x$have_libsocialweb_backend" != "xyes"; then
151 AC_MSG_ERROR([Cannot find libsocialweb dependencies.])
154 AM_CONDITIONAL([ENABLE_LIBSOCIALWEB],
155 [test "x$have_libsocialweb_backend" = "xyes"])
157 # -----------------------------------------------------------
159 # -----------------------------------------------------------
163 VALADOC_REQUIRED=0.3.1
164 TRACKER_SPARQL_MAJOR=0.14
165 TRACKER_SPARQL_REQUIRED=0.13.1
167 EDATASERVER_REQUIRED=3.5.3.1
168 ZEITGEIST_REQUIRED=0.3.14
170 AC_SUBST([TRACKER_SPARQL_MAJOR])
172 PKG_CHECK_MODULES([GLIB],
173 [glib-2.0 >= $GLIB_REQUIRED
174 gobject-2.0 >= $GLIB_REQUIRED])
175 PKG_CHECK_MODULES([GMODULE], [gmodule-no-export-2.0])
176 PKG_CHECK_MODULES([GIO], [gio-2.0 >= $GLIB_REQUIRED])
177 PKG_CHECK_MODULES([DBUS_GLIB], [dbus-glib-1])
179 # FIXME: We depend on libgee < 0.7 because 0.7 breaks API. bgo#627746
180 PKG_CHECK_MODULES([GEE], [gee-1.0 < 0.7],
181 have_gee_0_6_x="yes",
184 if test "x$have_gee_0_6_x" != "xyes"; then
186 Gee 0.6.x required but not installed.
188 Note that Gee 0.8.x provides gee-0.8 (but gee-1.0 is, confusingly, provided by
192 TP_GLIB_REQUIRED=0.19.0
193 if test x$enable_telepathy_backend = xyes; then
194 PKG_CHECK_MODULES([TP_GLIB], [telepathy-glib >= $TP_GLIB_REQUIRED])
195 PKG_CHECK_MODULES([ZEITGEIST], [zeitgeist-1.0 >= $ZEITGEIST_REQUIRED])
198 # Ignore post 0.20 deprecations
199 TP_GLIB_CFLAGS="$TP_GLIB_CFLAGS -DTP_VERSION_MIN_REQUIRED=TP_VERSION_0_20"
200 # Prevent post 0.20 APIs
201 TP_GLIB_CFLAGS="$TP_GLIB_CFLAGS -DTP_VERSION_MAX_ALLOWED=TP_VERSION_0_20"
203 if test x$enable_tracker_backend = xyes; then
204 PKG_CHECK_MODULES([TRACKER_SPARQL],
205 [tracker-sparql-$TRACKER_SPARQL_MAJOR >= \
206 $TRACKER_SPARQL_REQUIRED])
209 if test x$enable_eds_backend = xyes; then
210 PKG_CHECK_MODULES([EBOOK], [libebook-1.2 >= $EBOOK_REQUIRED])
211 PKG_CHECK_MODULES([EDATASERVER], [libedataserver-1.2 >= $EDATASERVER_REQUIRED])
215 # Vala building options -- allows tarball builds without installing Vala
217 AC_ARG_ENABLE([vala],
218 AS_HELP_STRING([--enable-vala],
219 [Enable building from the Vala sources]),
220 [enable_vala=$enableval],
223 # will be re-set as necessary below
224 AM_CONDITIONAL([HAVE_INTROSPECTION], [test "x$enable_vala" = "xyes"])
227 # Force Vala for non-release builds
228 m4_if(folks_released, [1], [],
231 echo "Vala compiler required for non-release builds; requiring Vala..."
234 # Force Vala if generated source is missing or outdated
236 ! -e ${sd}tools/folks_import_vala.stamp -o \
237 ! -e ${sd}tests/folks/abstract_field_details_vala.stamp -o \
238 ! -e ${sd}tests/folks/aggregation_vala.stamp -o \
239 ! -e ${sd}tests/folks/backend_loading_vala.stamp -o \
240 ! -e ${sd}tests/key-file/individual_retrieval_vala.stamp -o \
241 ! -e ${sd}tests/lib/folks-test.vapi -o \
242 ! -e ${sd}tests/lib/key-file/kf-test.vapi -o \
243 ! -e ${sd}tests/lib/key-file/libkf_test_la_vala.stamp -o \
244 ! -e ${sd}tests/lib/telepathy/contactlist/tp-test-contactlist.gir -o \
245 ! -e ${sd}tests/lib/telepathy/contactlist/tp-test-contactlist.vapi -o \
246 ! -e ${sd}tests/lib/libfolks_test_la_vala.stamp -o \
247 ! -e ${sd}tests/telepathy/persona_store_capabilities_vala.stamp -o \
248 ! -e ${sd}tests/telepathy/individual_retrieval_vala.stamp -o \
249 ! -e ${sd}tests/telepathy/individual_properties_vala.stamp -o \
250 ! -e ${sd}tests/folks/backend_loading_vala.stamp -o \
251 ! -e ${sd}backends/key-file/key_file_la_vala.stamp -o \
252 ! -e ${sd}backends/telepathy/telepathy_la_vala.stamp \
254 ! -e ${sd}backends/telepathy/lib/folks-telepathy.vapi -o \
255 ! -e ${sd}backends/telepathy/lib/tp-lowlevel.gir -o \
256 ! -e ${sd}backends/telepathy/lib/tp-lowlevel.vapi -o \
257 ! -e ${sd}backends/telepathy/lib/libfolks_telepathy_la_vala.stamp -o \
258 ! -e ${sd}folks/folks-internal.h -o \
259 ! -e ${sd}folks/folks-internal.vapi -o \
260 ! -e ${sd}folks/libfolks_internal_la_vala.stamp -o \
261 ! -e ${sd}folks/folks.vapi -o \
262 ! -e ${sd}folks/libfolks_la_vala.stamp ; then
264 echo "Vala source needs to be re-compiled; requiring Vala..."
267 if test "x$enable_vala" = "xyes" ; then
268 AM_PROG_VALAC([$VALA_REQUIRED])
269 if test "x$VALAC" = "x"; then
270 AC_MSG_ERROR([Vala requested but valac is not installed])
273 AC_PATH_PROG([VAPIGEN], [vapigen], [])
274 if test "x$VAPIGEN" = "x"; then
275 AC_MSG_ERROR([Vala must be built with --enable-vapigen])
278 # require GLib >= 2.24 so GLib.Array, etc. reffing is handled
280 VALAFLAGS="$VALAFLAGS --target-glib=2.24"
281 AC_SUBST([VALAFLAGS])
282 AC_SUBST([VAPIGENFLAGS])
285 VALA_CHECK_PACKAGES([gio-2.0
288 if test x$enable_telepathy_backend = xyes; then
289 VALA_CHECK_PACKAGES([telepathy-glib zeitgeist-1.0])
292 if test x$enable_tracker_backend = xyes; then
293 VALA_CHECK_PACKAGES([tracker-sparql-$TRACKER_SPARQL_MAJOR])
296 if test x$enable_eds_backend = xyes; then
297 VALA_CHECK_PACKAGES([libebook-1.2 libedataserver-1.2 libxml-2.0])
301 # this will set HAVE_INTROSPECTION
302 GOBJECT_INTROSPECTION_REQUIRE([1.30])
304 AM_CONDITIONAL([HAVE_VALA], [test "x$enable_vala" = "xyes"])
306 # Various functions that we need (used in C code generated from Vala)
307 AC_CHECK_FUNCS([memset])
308 AC_CHECK_FUNCS([strstr])
310 AM_CONDITIONAL([NOT_RELEASE], [test "x$folks_released" = "x0"])
312 # -----------------------------------------------------------
314 # -----------------------------------------------------------
316 FOLKS_MODULE_VERSION=folks_module_version
317 AC_SUBST([FOLKS_MODULE_VERSION])
318 AC_DEFINE([MODULE_VERSION], "folks_module_version", [Module interface version])
320 BACKEND_DIR='$(libdir)/folks/$(FOLKS_MODULE_VERSION)/backends'
321 AC_SUBST([BACKEND_DIR])
323 BACKEND_KF='$(top_builddir)/backends/key-file/.libs/key-file.so'
324 AC_SUBST([BACKEND_KF])
325 BACKEND_TP='$(top_builddir)/backends/telepathy/.libs/telepathy.so'
326 AC_SUBST([BACKEND_TP])
328 if test x$have_libsocialweb_backend = xyes; then
329 BACKEND_LIBSOCIALWEB='$(top_builddir)/backends/libsocialweb/.libs/libsocialweb.so'
330 AC_SUBST([BACKEND_LIBSOCIALWEB])
333 if test x$enable_tracker_backend = xyes; then
334 BACKEND_TRACKER='$(top_builddir)/backends/tracker/.libs/tracker.so'
335 AC_SUBST([BACKEND_TRACKER])
338 if test x$enable_eds_backend = xyes; then
339 BACKEND_EDS='$(top_builddir)/backends/eds/.libs/eds.so'
340 AC_SUBST([BACKEND_EDS])
343 # All of the backend libraries in our tree; to be used by the tests
344 BACKEND_UNINST_PATH='$(BACKEND_KF):$(BACKEND_TP)'
345 if test x$have_libsocialweb_backend = xyes; then
346 LIBSOCIALWEB_BACKEND_UNINST_PATH='$(BACKEND_LIBSOCIALWEB)'
347 BACKEND_UNINST_PATH="$BACKEND_UNINST_PATH:$LIBSOCIALWEB_BACKEND_UNINST_PATH"
349 if test x$enable_tracker_backend = xyes; then
350 TRACKER_BACKEND_UNINST_PATH='$(BACKEND_TRACKER)'
351 BACKEND_UNINST_PATH="$BACKEND_UNINST_PATH:$TRACKER_BACKEND_UNINST_PATH"
353 if test x$enable_eds_backend = xyes; then
354 EDS_BACKEND_UNINST_PATH='$(BACKEND_EDS)'
355 BACKEND_UNINST_PATH="$BACKEND_UNINST_PATH:$EDS_BACKEND_UNINST_PATH"
357 AC_SUBST([BACKEND_UNINST_PATH])
359 # -----------------------------------------------------------
361 # -----------------------------------------------------------
363 AC_ARG_ENABLE([import-tool],
364 AS_HELP_STRING([--enable-import-tool],
365 [Enable building the meta-contact import tool]),
366 [enable_import_tool=$enableval with_import_tool=$enableval],
367 [enable_import_tool=maybe with_import_tool=no])
368 AS_IF([test "$enable_import_tool" != "no"],
369 [PKG_CHECK_MODULES([LIBXML], [libxml-2.0],
370 [with_import_tool=yes], [with_import_tool=no])])
371 AS_IF([test "$enable_import_tool" = "yes" -a "$with_import_tool" = "no"],
372 [AC_MSG_ERROR([Import tool explicitly enabled, but libxml2 not found])])
373 AM_CONDITIONAL([ENABLE_IMPORT_TOOL], [test "$with_import_tool" = "yes"])
375 # Readline's required for the folks-inspect program
376 AC_ARG_ENABLE([inspect-tool],
377 AS_HELP_STRING([--enable-inspect-tool],
378 [Enable building the data inspection tool]),
379 [enable_inspect_tool=$enableval with_inspect_tool=$enableval],
380 [enable_inspect_tool=maybe with_inspect_tool=no])
381 AS_IF([test "$enable_inspect_tool" = "yes" -a "$enable_vala" != "yes"],
382 [AC_MSG_ERROR([Inspect tool explicitly enabled, but Vala wasn't enabled \
383 using --enable-vala])])
384 AS_IF([test "$enable_inspect_tool" = "maybe" -a "$enable_vala" != "yes"],
385 [AC_MSG_NOTICE([Inspect tool disabled, as Vala wasn't enabled using \
387 AS_IF([test "$enable_inspect_tool" != "no" -a "x$enable_vala" = "xyes"],
388 [AC_CHECK_LIB([readline], [main],
389 [with_inspect_tool=yes], [with_inspect_tool=no],
391 AS_IF([test "$enable_inspect_tool" != "no" -a "$with_inspect_tool" = "yes" -a \
392 "x$enable_vala" = "xyes"],
393 [VALA_CHECK_PACKAGES([readline])
394 LIBREADLINE="-lreadline -lncurses"
395 AC_DEFINE([HAVE_LIBREADLINE], [1], [Define if you have libreadline])
396 AC_SUBST([LIBREADLINE])])
397 AS_IF([test "$enable_inspect_tool" = "yes" -a "$with_inspect_tool" = "no"],
398 [AC_MSG_ERROR([Inspect tool explicitly enabled, but readline not found])])
399 AM_CONDITIONAL([ENABLE_INSPECT_TOOL], [test "$with_inspect_tool" = "yes"])
401 # -----------------------------------------------------------
403 # -----------------------------------------------------------
405 AC_ARG_ENABLE([tests],
406 AS_HELP_STRING([--enable-tests],[Enable building of tests]),
407 [enable_tests=$enableval], [enable_tests=yes])
408 AS_IF([test "$enable_tests" = "yes" -a "$enable_telepathy_backend" = "no"],
409 [AC_MSG_ERROR([The Telepathy backend must be enabled to build tests])])
410 AM_CONDITIONAL([ENABLE_TESTS], [test x$enable_tests = xyes])
412 # -----------------------------------------------------------
414 # -----------------------------------------------------------
416 AC_ARG_ENABLE([docs],
417 AS_HELP_STRING([--enable-docs],[Enable documentation generation]),
418 [enable_docs=$enableval], [enable_docs=no])
419 AM_CONDITIONAL([ENABLE_DOCS], [test x$enable_docs = xyes])
422 if test x$enable_docs = xyes; then
423 # make sure the library is new enough and the program exists
424 PKG_CHECK_MODULES([VALADOC], [valadoc-1.0 >= $VALADOC_REQUIRED])
425 AC_PATH_PROG([VALADOC], [valadoc], [:])
426 AS_IF([test "$VALADOC" != :], have_valadoc=yes)
428 AM_CONDITIONAL([HAVE_VALADOC], [test x$have_valadoc = xyes])
430 if test "x$enable_docs" = "xyes" -a "x$have_valadoc" != "xyes"; then
431 AC_MSG_ERROR([Doc building requested but valadoc not installed.])
434 # -----------------------------------------------------------
436 # -----------------------------------------------------------
438 GETTEXT_PACKAGE=AC_PACKAGE_NAME
439 AC_SUBST(GETTEXT_PACKAGE)
440 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, ["$GETTEXT_PACKAGE"], [Define the gettext package to be used])
441 IT_PROG_INTLTOOL([0.50.0])
443 # -----------------------------------------------------------
445 # -----------------------------------------------------------
447 # Disable GLib deprecation warnings for now (#670196); GValueArray is deprecated
448 # but we need it for dbus-glib. Porting to GDBus will solve this (#653198)
449 AC_DEFINE(GLIB_DISABLE_DEPRECATION_WARNINGS, 1, [Build with GLib deprecated])
451 AS_COMPILER_FLAG([-Wall], [ERROR_CFLAGS="-Wall"], [ERROR_CFLAGS=""])
452 AS_COMPILER_FLAG([-Werror], [werror=yes], [werror=no])
454 AC_ARG_ENABLE([debug],
455 AS_HELP_STRING([--disable-debug],[compile without debug code]),
456 [enable_debug=$enableval], [enable_debug=yes])
458 AS_COMPILER_FLAG([-Wextra], [wextra=yes], [wextra=no])
459 AS_COMPILER_FLAG([-Wno-missing-field-initializers],
460 [wno_missing_field_initializers=yes],
461 [wno_missing_field_initializers=no])
462 AS_COMPILER_FLAG([-Wno-unused-parameter],
463 [wno_unused_parameter=yes], [wno_unused_parameter=no])
464 AS_COMPILER_FLAG([-Wstrict-prototypes], [wstrict_prototypes=yes],
465 [wstrict_prototypes=no])
466 AS_COMPILER_FLAG([-Wmissing-prototypes], [wmissing_prototypes=yes],
467 [wmissing_prototypes=no])
468 AS_COMPILER_FLAG([-Wimplicit-function-declaration],
469 [wimplicit_function_declaration=yes],
470 [wimplicit_function_declaration=no])
471 AS_COMPILER_FLAG([-Wpointer-arith], [wpointer_arith=yes], [wpointer_arith=no])
472 AS_COMPILER_FLAG([-Winit-self], [winit_self=yes], [winit_self=no])
473 AS_COMPILER_FLAG([-Wformat=2], [wformat=yes], [wformat=no])
474 AS_COMPILER_FLAG([-Wmissing-include-dirs], [wmissing_include_dirs=yes],
475 [wmissing_include_dirs=no])
476 AS_COMPILER_FLAG([-Waggregate-return], [waggregate_return=yes],
477 [waggregate_return=no])
478 AS_COMPILER_FLAG([-Wdeclaration-after-statement],
479 [wdeclaration_after_statement=yes],
480 [wdeclaration_after_statement=no])
482 m4_if(folks_released, [1], [],
484 # Iff we support -Werror, then use it with all our compiler warnings.
485 if test x$werror = xyes; then
491 if test x$wextra = xyes -a \
492 x$wno_missing_field_initializers = xyes -a \
493 x$wno_unused_parameter = xyes -a x$wstrict_prototypes = xyes -a \
494 x$wmissing_prototypes = xyes -a \
495 x$wimplicit_function_declaration = xyes -a x$wpointer_arith = xyes \
496 -a x$winit_self = xyes -a x$wformat = xyes -a \
497 x$wmissing_include_dirs = xyes -a x$waggregate_return = xyes -a \
498 x$wdeclaration_after_statement = xyes; then
499 ERROR_CFLAGS="$ERROR_CFLAGS -Wextra \
500 -Wno-missing-field-initializers \
501 -Wno-unused-parameter ${flag}strict-prototypes \
502 ${flag}missing-prototypes ${flag}implicit-function-declaration \
503 ${flag}pointer-arith ${flag}init-self ${flag}format=2 \
504 ${flag}missing-include-dirs ${flag}aggregate-return \
505 ${flag}declaration-after-statement"
509 AS_COMPILER_FLAG([-D_POSIX_SOURCE], [ERROR_CFLAGS="$ERROR_CFLAGS -D_POSIX_SOURCE"])
510 AS_COMPILER_FLAG([-std=c99], [ERROR_CFLAGS="$ERROR_CFLAGS -std=c99"])
511 AS_COMPILER_FLAG([-Wshadow], [ERROR_CFLAGS="$ERROR_CFLAGS -Wshadow"])
512 AS_COMPILER_FLAG([-Wmissing-prototypes], [ERROR_CFLAGS="$ERROR_CFLAGS \
513 -Wmissing-prototypes"])
514 AS_COMPILER_FLAG([-Wmissing-declarations], [ERROR_CFLAGS="$ERROR_CFLAGS \
515 -Wmissing-declarations"])
516 AS_COMPILER_FLAG([-Wstrict-prototypes], [ERROR_CFLAGS="$ERROR_CFLAGS \
517 -Wstrict-prototypes"])
519 AC_SUBST([ERROR_CFLAGS])
521 # -----------------------------------------------------------
522 # Code coverage flags
523 # -----------------------------------------------------------
525 AC_ARG_ENABLE([code-coverage],
526 AS_HELP_STRING([--enable-code-coverage],
527 [compile with code coverage code]),
528 [enable_code_coverage=$enableval], [enable_code_coverage=no])
530 # Only enable code coverage if this isn't a release.
531 m4_if(folks_released, [1], [],
533 if test "x$GCC" = "xyes"; then
534 if test "x$enable_code_coverage" = "xyes"; then
535 CODE_COVERAGE_CFLAGS="-fprofile-arcs -ftest-coverage -O0 -ggdb"
536 CODE_COVERAGE_LDFLAGS="-lgcov"
541 AC_SUBST([CODE_COVERAGE_CFLAGS])
542 AC_SUBST([CODE_COVERAGE_LDFLAGS])
545 AC_ARG_ENABLE([fatal-warnings],
546 AS_HELP_STRING([--disable-fatal-warnings],
547 [Make warnings from valac and g-ir-scanner non-fatal]),
548 [enable_fatal_warnings=$enableval], [enable_fatal_warnings=yes])
549 AS_IF([test "x$enable_vala" = "xyes" && test "x$enable_fatal_warnings" = "xyes"],
550 [ERROR_INTROSPECTION_SCANNER_ARGS="\
551 $ERROR_INTROSPECTION_SCANNER_ARGS --warn-error"
552 ERROR_VALAFLAGS="$ERROR_VALAFLAGS --fatal-warnings"])
554 # Disable -g if we're building with code coverage enabled, since Vala's
555 # insertion of #line directives into .c files confuses lcov. For the moment,
556 # we'll have to do with looking at code coverage of the generated C files only.
557 # We set the debug flags in CODE_COVERAGE_CFLAGS instead in that case.
558 m4_if(folks_released, [1], [],
560 if test "x$enable_code_coverage" != "xyes" -o "x$GCC" != "xyes"; then
561 ERROR_VALAFLAGS="$ERROR_VALAFLAGS -g"
565 AC_SUBST([ERROR_INTROSPECTION_SCANNER_ARGS])
566 AC_SUBST([ERROR_VALAFLAGS])
568 # -----------------------------------------------------------
570 # -----------------------------------------------------------
572 AC_ARG_ENABLE([profiling],
573 AS_HELP_STRING([--enable-profiling],
574 [Enable building profiling points]),
575 [enable_profiling=$enableval],
576 [enable_profiling=no])
577 AM_CONDITIONAL([ENABLE_PROFILING], [test "$enable_profiling" = "yes"])
579 # -----------------------------------------------------------
581 # -----------------------------------------------------------
584 backends/telepathy/lib/folks-telepathy.pc
585 backends/telepathy/lib/folks-telepathy-uninstalled.pc
586 backends/tracker/lib/folks-tracker.deps
587 backends/tracker/lib/folks-tracker.pc
588 backends/tracker/lib/folks-tracker-uninstalled.pc
589 backends/eds/lib/folks-eds.pc
590 backends/eds/lib/folks-eds-uninstalled.pc
592 folks/folks-uninstalled.pc
593 folks/org.freedesktop.folks.gschema.xml
596 backends/key-file/Makefile
597 backends/libsocialweb/Makefile
598 backends/libsocialweb/lib/Makefile
599 backends/libsocialweb/lib/folks-libsocialweb.pc
600 backends/libsocialweb/lib/folks-libsocialweb-uninstalled.pc
601 backends/telepathy/Makefile
602 backends/telepathy/lib/Makefile
603 backends/tracker/Makefile
604 backends/tracker/lib/Makefile
605 backends/eds/Makefile
606 backends/eds/lib/Makefile
614 tests/key-file/Makefile
615 tests/libsocialweb/Makefile
616 tests/telepathy/Makefile
617 tests/tracker/Makefile
619 tests/lib/folks-test-uninstalled.pc
620 tests/lib/eds/Makefile
621 tests/lib/key-file/Makefile
622 tests/lib/libsocialweb/Makefile
623 tests/lib/libsocialweb/session.conf
624 tests/lib/telepathy/Makefile
625 tests/lib/tracker/Makefile
626 tests/lib/telepathy/contactlist/Makefile
627 tests/lib/telepathy/contactlist/session.conf
630 tools/inspect/Makefile
638 Vala........................: ${enable_vala}
639 Vala Compiler...............: ${VALAC}
640 C Compiler Flags............: ${CFLAGS} ${ERROR_CFLAGS} ${CODE_COVERAGE_CFLAGS}
641 Linker Flags................: ${LDFLAGS} ${CODE_COVERAGE_LDFLAGS}
642 Prefix......................: ${prefix}
643 Bugreporting URL............: ${PACKAGE_BUGREPORT}
644 Documentation...............: ${have_valadoc}
645 Import tool.................: ${with_import_tool}
646 Inspector tool..............: ${with_inspect_tool}
647 Telepathy backend...........: ${enable_telepathy_backend}
648 Tracker backend.............: ${enable_tracker_backend}
649 Libsocialweb backend........: ${have_libsocialweb_backend}
650 E-D-S backend...............: ${enable_eds_backend}
651 Build tests.................: ${enable_tests}