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])
24 [AS_HELP_STRING([--enable-man],
25 [generate man pages [default=yes]])],,
28 AS_IF([test "$enable_man" != no], [
29 AC_PATH_PROG([XSLTPROC], [xsltproc])
30 AS_IF([test -z "$XSLTPROC"], [
31 AC_MSG_ERROR([xsltproc is required for --enable-man])
34 AM_CONDITIONAL(ENABLE_MAN, test "$enable_man" != no)
43 PKG_CHECK_MODULES(glib, glib-2.0 >= 2.35.2)
44 PKG_CHECK_MODULES(gio, gio-unix-2.0)
45 PKG_CHECK_MODULES(dbus, dbus-1)
48 AC_HELP_STRING([--disable-editor],
49 [Disable the dconf editor]))
50 AM_CONDITIONAL(ENABLE_EDITOR, test "x$enable_editor" != "xno")
52 if test "x$enable_editor" != "xno"; then
53 PKG_CHECK_MODULES(gtk, gtk+-3.0)
54 PKG_CHECK_MODULES(gmodule, gmodule-2.0)
55 PKG_CHECK_MODULES(libxml, libxml-2.0)
58 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)
59 AC_SUBST(giomodulesdir)
61 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)
62 AC_SUBST(dbusservicedir)
64 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)
65 AC_SUBST(dbussystemservicedir)
67 AC_SUBST(dconfincludedir, ${includedir}/dconf)
69 AC_PATH_PROG(gio_QUERYMODULES, gio-querymodules, no)
72 AC_HELP_STRING([--enable-gcov],
73 [enable generation of code coverage information]))
75 if test "x$enable_gcov" == "xyes"; then
76 CFLAGS="$CFLAGS -O0 -fprofile-arcs -ftest-coverage"
77 LDFLAGS="$LDFLAGS -lgcov"
82 AC_SUBST(GETTEXT_PACKAGE)
83 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, ["$GETTEXT_PACKAGE"], [Define the gettext package to be used])
86 IT_PROG_INTLTOOL([0.50.0])
95 dbus-1/dconf-dbus-1.pc
102 editor/dconf-editor.desktop.in