service: remove some debug printf
[dconf.git] / configure.ac
blob6ac2a344e2a803efb58e971ce9045cac8c9dad0a
1 AC_INIT([dconf],
2         [0.15.2],
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 AM_PROG_VALAC([0.17.0])
22 AC_PROG_RANLIB
23 AC_ARG_ENABLE(man,
24               [AS_HELP_STRING([--enable-man],
25                               [generate man pages [default=yes]])],,
26               enable_man=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])
32   ])
34 AM_CONDITIONAL(ENABLE_MAN, test "$enable_man" != no)
36 # Use GSettings
37 GLIB_GSETTINGS
39 # Gtk-doc support
40 GTK_DOC_CHECK([1.15])
42 # Dependencies
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)
47 AC_ARG_ENABLE(editor,
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)
71 AC_ARG_ENABLE(gcov,
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"
80 dnl Gettext support
81 GETTEXT_PACKAGE=dconf
82 AC_SUBST(GETTEXT_PACKAGE)
83 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, ["$GETTEXT_PACKAGE"], [Define the gettext package to be used])
85 AM_GLIB_GNU_GETTEXT
86 IT_PROG_INTLTOOL([0.50.0])
88 AC_CONFIG_FILES([
89   common/Makefile
90   shm/Makefile
91   gvdb/Makefile
92   engine/Makefile
93   gdbus/Makefile
94   gsettings/Makefile
95   dbus-1/dconf-dbus-1.pc
96   client/dconf.pc
97   client/Makefile
98   service/Makefile
99   dbus-1/Makefile
100   bin/Makefile
101   editor/Makefile
102   editor/dconf-editor.desktop.in
103   tests/Makefile
104   docs/Makefile
105   po/Makefile.in
106   Makefile
108 AC_OUTPUT