3 [https://bugzilla.gnome.org/enter_bug.cgi?product=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'
21 AM_PROG_VALAC([0.17.0])
31 PKG_CHECK_MODULES(glib, glib-2.0 >= 2.33.3)
32 PKG_CHECK_MODULES(gio, gio-2.0)
33 PKG_CHECK_MODULES(dbus, dbus-1)
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)
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"
75 dbus-1/dconf-dbus-1.pc
82 editor/dconf-editor.desktop