Reimplement sync() functionality
[dconf.git] / configure.ac
blob56bd4d9392f41c76b48853740b18fb29b47a2e68
1 AC_INIT([dconf],
2         [0.13.0],
3         [https://bugzilla.gnome.org/enter_bug.cgi?product=dconf],
4         [dconf])
6 AC_CONFIG_SRCDIR([configure.ac])
7 AC_CONFIG_MACRO_DIR([m4])
8 AC_CONFIG_AUX_DIR([aux])
9 AC_CONFIG_HEADERS([config.h])
11 AM_INIT_AUTOMAKE([1.11 -Wno-portability no-dist-gzip dist-xz])
12 AM_SILENT_RULES([yes])
14 # Set default CFLAGS before AC_PROG_CC does
15 if test "${CFLAGS+yes}" != "yes"; then
16   CFLAGS='-O2 -g -Wall -Wwrite-strings -Wmissing-prototypes -fno-common'
19 # Check for programs
20 AC_PROG_CC
21 AC_PROG_RANLIB
22 AM_PROG_VALAC([0.15.1])
24 # Use GSettings
25 GLIB_GSETTINGS
27 # Gtk-doc support
28 GTK_DOC_CHECK([1.15])
30 # Dependencies
31 PKG_CHECK_MODULES(glib, glib-2.0 >= 2.31.18)
32 PKG_CHECK_MODULES(gio, gio-2.0)
33 PKG_CHECK_MODULES(dbus, dbus-1)
35 AC_ARG_ENABLE(editor,
36               AC_HELP_STRING([--disable-editor],
37                              [Disable the dconf editor]))
38 AM_CONDITIONAL(ENABLE_EDITOR, test "x$enable_editor" != "xno")
40 if test "x$enable_editor" != "xno"; then
41   PKG_CHECK_MODULES(gtk, gtk+-3.0)
42   PKG_CHECK_MODULES(gmodule, gmodule-2.0)
43   PKG_CHECK_MODULES(libxml, libxml-2.0)
46 AC_ARG_WITH(gio_modules_dir, [  --with-gio-modules-dir=PATH choose directory for the GIO module, [default=LIBDIR/gio/modules]], giomodulesdir="$withval", giomodulesdir=${libdir}/gio/modules)
47 AC_SUBST(giomodulesdir)
49 AC_ARG_WITH(dbus_service_dir, [  --with-dbus-service-dir=PATH choose directory for dbus service files, [default=PREFIX/share/dbus-1/services]], dbusservicedir="$withval", dbusservicedir=${datadir}/dbus-1/services)
50 AC_SUBST(dbusservicedir)
52 AC_ARG_WITH(dbus_system_service_dir, [  --with-dbus-system-service-dir=PATH choose directory for dbus system service files, [default=PREFIX/share/dbus-1/system-services]], dbussystemservicedir="$withval", dbussystemservicedir=${datadir}/dbus-1/system-services)
53 AC_SUBST(dbussystemservicedir)
55 AC_SUBST(dconfincludedir, ${includedir}/dconf)
57 AC_PATH_PROG(gio_QUERYMODULES, gio-querymodules, no)
59 AC_ARG_ENABLE(gcov,
60               AC_HELP_STRING([--enable-gcov],
61                              [enable generation of code coverage information]))
63 if test "x$enable_gcov" == "xyes"; then
64   CFLAGS="$CFLAGS -O0 -fprofile-arcs -ftest-coverage"
65   LDFLAGS="$LDFLAGS -lgcov"
68 AC_CONFIG_FILES([
69   common/Makefile
70   shm/Makefile
71   gvdb/Makefile
72   engine/Makefile
73   gdbus/Makefile
74   gsettings/Makefile
75   dbus-1/dconf-dbus-1.pc
76   client/dconf.pc
77   client/Makefile
78   service/Makefile
79   dbus-1/Makefile
80   bin/Makefile
81   editor/Makefile
82   editor/dconf-editor.desktop
83   tests/Makefile
84   docs/Makefile
85   Makefile
87 AC_OUTPUT