dconf cli: more cleanups
[dconf.git] / configure.ac
blob23c02ff30ef227bc876f8d2ddc424d540d11a776
1 AC_INIT([dconf],
2         [0.7.3],
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])
12 AM_SILENT_RULES([yes])
14 # Check for programs
15 AC_PROG_CC
16 AM_PROG_VALAC([0.11.7])
18 # Gtk-doc support
19 GTK_DOC_CHECK([1.15])
21 # Dependencies
22 PKG_CHECK_MODULES(glib, glib-2.0 >= 2.27.2)
23 PKG_CHECK_MODULES(gio, gio-2.0)
24 PKG_CHECK_MODULES(dbus, dbus-1)
26 AC_ARG_ENABLE(editor,
27               AC_HELP_STRING([--disable-editor],
28                              [Disable the dconf editor]))
29 AM_CONDITIONAL(ENABLE_EDITOR, test "x$enable_editor" != "xno")
31 if test "x$enable_editor" != "xno"; then
32   PKG_CHECK_MODULES(gtk, gtk+-3.0)
33   PKG_CHECK_MODULES(gmodule, gmodule-2.0)
34   PKG_CHECK_MODULES(libxml, libxml-2.0)
37 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)
38 AC_SUBST(giomodulesdir)
40 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)
41 AC_SUBST(dbusservicedir)
43 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)
44 AC_SUBST(dbussystemservicedir)
46 AC_SUBST(dconfincludedir, ${includedir}/dconf)
48 AC_PATH_PROG(gio_QUERYMODULES, gio-querymodules, no)
50 AC_CONFIG_FILES([
51   common/Makefile
52   gvdb/Makefile
53   engine/Makefile
54   gsettings/Makefile
55   dbus-1/dconf-dbus-1.pc
56   client/dconf.pc
57   client/Makefile
58   service/Makefile
59   dbus-1/Makefile
60   bin/Makefile
61   editor/Makefile
62   editor/dconf-editor.desktop
63   tests/Makefile
64   docs/Makefile
65   Makefile
67 AC_OUTPUT