1082
by Sergey V. Udaltsov
Sharing "show layout" dialog |
1 |
AC_PREREQ([2.60]) |
2 |
||
3 |
AC_INIT([gnome-settings-daemon], |
|
3324
by Bastien Nocera
3.7.1 |
4 |
[3.7.1], |
1082
by Sergey V. Udaltsov
Sharing "show layout" dialog |
5 |
[http://bugzilla.gnome.org/enter_bug.cgi?product=gnome-settings-daemon]) |
6 |
||
7 |
AC_CONFIG_SRCDIR([gnome-settings-daemon/gnome-settings-manager.c]) |
|
8 |
||
3173
by Bastien Nocera
build: Check news before release |
9 |
AM_INIT_AUTOMAKE([1.9 tar-ustar dist-xz no-dist-gzip check-news]) |
1325
by Rodrigo Moya
Enable maintainer mode |
10 |
AM_MAINTAINER_MODE([enable]) |
1082
by Sergey V. Udaltsov
Sharing "show layout" dialog |
11 |
|
1151
by Bastien Nocera
Silence build by default |
12 |
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])]) |
13 |
||
1192
by Matthias Clasen
Fix the GSD_API_VERSION definition in configure.ac |
14 |
m4_define([gsd_api_version_major],[3]) |
15 |
m4_define([gsd_api_version_minor],[0]) |
|
16 |
m4_define([gsd_api_version],[gsd_api_version_major.gsd_api_version_minor]) |
|
17 |
GSD_API_VERSION="gsd_api_version" |
|
18 |
AC_SUBST(GSD_API_VERSION) |
|
19 |
||
1082
by Sergey V. Udaltsov
Sharing "show layout" dialog |
20 |
AC_STDC_HEADERS
|
21 |
AC_PROG_CXX
|
|
22 |
AM_PROG_CC_C_O
|
|
23 |
AC_PROG_LIBTOOL
|
|
24 |
||
25 |
AC_HEADER_STDC
|
|
26 |
||
27 |
AC_SUBST(VERSION) |
|
28 |
||
29 |
AC_CONFIG_HEADERS([config.h]) |
|
30 |
||
31 |
IT_PROG_INTLTOOL([0.37.1]) |
|
32 |
||
33 |
GETTEXT_PACKAGE=gnome-settings-daemon |
|
34 |
AC_SUBST(GETTEXT_PACKAGE) |
|
35 |
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Name of default gettext domain]) |
|
36 |
||
37 |
AM_GLIB_GNU_GETTEXT
|
|
38 |
||
39 |
GSD_INTLTOOL_PLUGIN_RULE='%.gnome-settings-plugin: %.gnome-settings-plugin.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
|
40 |
AC_SUBST([GSD_INTLTOOL_PLUGIN_RULE]) |
|
41 |
||
42 |
dnl --------------------------------------------------------------------------- |
|
43 |
dnl - Dependencies |
|
44 |
dnl --------------------------------------------------------------------------- |
|
45 |
||
3335
by Colin Walters
Remove calls to g_type_init(), bump GLib required version |
46 |
GLIB_REQUIRED_VERSION=2.35.0 |
3334
by Colin Walters
configure: Unify glib-2.0 and gio-2.0 requirements |
47 |
GIO_REQUIRED_VERSION=${GLIB_REQUIRED_VERSION} |
2866
by Owen W. Taylor
gnome-settings-daemon: fix applying settings to newly added touchpads |
48 |
GTK_REQUIRED_VERSION=3.3.18 |
1082
by Sergey V. Udaltsov
Sharing "show layout" dialog |
49 |
GCONF_REQUIRED_VERSION=2.6.1 |
3059
by Bastien Nocera
wacom: Bump required gnome-desktop version |
50 |
GNOME_DESKTOP_REQUIRED_VERSION=3.5.3 |
1848
by Matthias Clasen
Add meaningful app names to notifications from plugins |
51 |
LIBNOTIFY_REQUIRED_VERSION=0.7.3 |
2181
by Bastien Nocera
media-keys: Clean up upower req |
52 |
UPOWER_GLIB_REQUIRED_VERSION=0.9.1 |
2211
by Bastien Nocera
build: Require libcanberra and PulseAudio |
53 |
PA_REQUIRED_VERSION=0.9.16 |
3212
by Olivier Fourdan
wacom: Upgrade the libwacom dependency |
54 |
LIBWACOM_REQUIRED_VERSION=0.6 |
2540
by Bastien Nocera
power: Require upower 0.9.11 |
55 |
UPOWER_REQUIRED_VERSION=0.9.11 |
3149
by Rico Tzschichholz
configure: If ibus support is enabled require 1.4.99 |
56 |
IBUS_REQUIRED_VERSION=1.4.99 |
1082
by Sergey V. Udaltsov
Sharing "show layout" dialog |
57 |
|
58 |
EXTRA_COMPILE_WARNINGS(yes) |
|
59 |
||
60 |
PKG_CHECK_MODULES(SETTINGS_DAEMON, |
|
1089
by Rodrigo Moya
Use gtk+-3.0 |
61 |
gtk+-3.0 >= $GTK_REQUIRED_VERSION |
1714
by Bastien Nocera
main: Fix possible crasher on exit |
62 |
gio-2.0 >= $GIO_REQUIRED_VERSION |
1082
by Sergey V. Udaltsov
Sharing "show layout" dialog |
63 |
gmodule-2.0 |
64 |
gthread-2.0 |
|
3177
by Bastien Nocera
build: Bump gsettings-desktop-schemas req |
65 |
gsettings-desktop-schemas >= 3.5.90 |
1082
by Sergey V. Udaltsov
Sharing "show layout" dialog |
66 |
)
|
67 |
||
68 |
PKG_CHECK_MODULES(SETTINGS_PLUGIN, |
|
1089
by Rodrigo Moya
Use gtk+-3.0 |
69 |
gtk+-3.0 >= $GTK_REQUIRED_VERSION |
1082
by Sergey V. Udaltsov
Sharing "show layout" dialog |
70 |
gio-2.0 >= $GIO_REQUIRED_VERSION |
3296
by Matthias Clasen
Fix the build |
71 |
libnotify >= $LIBNOTIFY_REQUIRED_VERSION |
1351
by Tomas Bzatek
Port backround module to GSettings |
72 |
gsettings-desktop-schemas |
2805
by Richard Hughes
xsettings: Fix 'make distcheck' on Fedora 17 |
73 |
x11 |
1082
by Sergey V. Udaltsov
Sharing "show layout" dialog |
74 |
)
|
75 |
||
76 |
GSD_PLUGIN_LDFLAGS="-export_dynamic -module -avoid-version -no-undefined" |
|
77 |
case $host_os in |
|
78 |
darwin*) |
|
79 |
GSD_PLUGIN_LDFLAGS="${GSD_PLUGIN_LDFLAGS} -Wl,-bundle_loader,\$(top_builddir)/gnome-settings-daemon/gnome-settings-daemon" |
|
80 |
;; |
|
81 |
esac
|
|
82 |
AC_SUBST([GSD_PLUGIN_LDFLAGS]) |
|
83 |
||
84 |
AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal) |
|
85 |
||
1186
by Rodrigo Moya
Port GConf schemas to GSettings |
86 |
dnl ================================================================ |
87 |
dnl GSettings stuff |
|
88 |
dnl ================================================================ |
|
89 |
||
90 |
GLIB_GSETTINGS
|
|
91 |
||
1082
by Sergey V. Udaltsov
Sharing "show layout" dialog |
92 |
dnl --------------------------------------------------------------------------- |
1150
by Bastien Nocera
Only link plugins to gnome-desktop if need be |
93 |
dnl - Check for gnome-desktop |
94 |
dnl --------------------------------------------------------------------------- |
|
95 |
PKG_CHECK_MODULES(GNOME_DESKTOP, gnome-desktop-3.0 >= $GNOME_DESKTOP_REQUIRED_VERSION) |
|
96 |
||
97 |
dnl --------------------------------------------------------------------------- |
|
1877
by Richard Hughes
color: Register icc profile files with colord |
98 |
dnl - Check for LCMS2 |
99 |
dnl --------------------------------------------------------------------------- |
|
1954
by Richard Hughes
color: Move the device registration functionality from gcm-session to the color plugin |
100 |
PKG_CHECK_MODULES(LCMS, lcms2 >= 2.2, have_new_lcms=yes, have_new_lcms=no) |
101 |
if test x$have_new_lcms = xyes; then |
|
102 |
AC_DEFINE(HAVE_NEW_LCMS,1,[Got new lcms2]) |
|
103 |
else
|
|
2083
by Richard Hughes
Make lcms2 a hard dependency |
104 |
PKG_CHECK_MODULES(LCMS, lcms2) |
105 |
fi
|
|
1954
by Richard Hughes
color: Move the device registration functionality from gcm-session to the color plugin |
106 |
|
1877
by Richard Hughes
color: Register icc profile files with colord |
107 |
dnl --------------------------------------------------------------------------- |
1082
by Sergey V. Udaltsov
Sharing "show layout" dialog |
108 |
dnl - Check for libnotify |
109 |
dnl --------------------------------------------------------------------------- |
|
110 |
||
1382
by Bastien Nocera
build: Require libnotify |
111 |
PKG_CHECK_MODULES(LIBNOTIFY, libnotify >= $LIBNOTIFY_REQUIRED_VERSION, |
112 |
[have_libnotify=yes], have_libnotify=no) |
|
113 |
if test "x$have_libnotify" = xno ; then |
|
114 |
AC_MSG_ERROR([libnotify is required to build gnome-settings-daemon]) |
|
1082
by Sergey V. Udaltsov
Sharing "show layout" dialog |
115 |
fi
|
116 |
AC_SUBST(LIBNOTIFY_CFLAGS) |
|
117 |
AC_SUBST(LIBNOTIFY_LIBS) |
|
118 |
||
119 |
dnl --------------------------------------------------------------------------- |
|
2335
by Bastien Nocera
build: Move udev check |
120 |
dnl - GUdev integration (default enabled) |
121 |
dnl --------------------------------------------------------------------------- |
|
122 |
GUDEV_PKG="" |
|
2976
by Bastien Nocera
wacom: gudev support isn't optional on Linux systems |
123 |
AC_ARG_ENABLE(gudev, AS_HELP_STRING([--disable-gudev],[Disable GUdev support (not optional on Linux platforms)]), enable_gudev=$enableval) |
2335
by Bastien Nocera
build: Move udev check |
124 |
if test x$enable_gudev != xno; then |
3053
by Michael Biebl
build: Use lower case have_gudev |
125 |
PKG_CHECK_MODULES(GUDEV, gudev-1.0, have_gudev="yes", have_gudev="no") |
126 |
if test "x$have_gudev" = "xyes"; then |
|
2335
by Bastien Nocera
build: Move udev check |
127 |
AC_DEFINE(HAVE_GUDEV, 1, [define if GUdev is available]) |
128 |
GUDEV_PKG="gudev-1.0" |
|
129 |
else |
|
130 |
if test x$enable_gudev = xyes; then |
|
131 |
AC_MSG_ERROR([GUdev enabled but not found]) |
|
132 |
fi |
|
133 |
fi |
|
134 |
else
|
|
3053
by Michael Biebl
build: Use lower case have_gudev |
135 |
have_gudev=no |
2335
by Bastien Nocera
build: Move udev check |
136 |
fi
|
3053
by Michael Biebl
build: Use lower case have_gudev |
137 |
AM_CONDITIONAL(HAVE_GUDEV, test x$have_gudev = xyes) |
2335
by Bastien Nocera
build: Move udev check |
138 |
|
139 |
dnl --------------------------------------------------------------------------- |
|
2144
by Bastien Nocera
build: Clean up X11 library dependencies |
140 |
dnl - common |
141 |
dnl --------------------------------------------------------------------------- |
|
142 |
||
143 |
PKG_CHECK_MODULES(COMMON, x11 kbproto xi) |
|
144 |
||
145 |
dnl --------------------------------------------------------------------------- |
|
146 |
dnl - background |
|
147 |
dnl --------------------------------------------------------------------------- |
|
148 |
||
149 |
PKG_CHECK_MODULES(BACKGROUND, x11 gnome-desktop-3.0 >= $GNOME_DESKTOP_REQUIRED_VERSION) |
|
150 |
||
151 |
dnl --------------------------------------------------------------------------- |
|
152 |
dnl - mouse |
|
153 |
dnl --------------------------------------------------------------------------- |
|
154 |
||
155 |
PKG_CHECK_MODULES(MOUSE, x11 xi) |
|
156 |
||
157 |
dnl --------------------------------------------------------------------------- |
|
158 |
dnl - cursor |
|
159 |
dnl --------------------------------------------------------------------------- |
|
160 |
||
161 |
PKG_CHECK_MODULES(CURSOR, xfixes) |
|
1938
by Bastien Nocera
cursor: Hide cursor on tablets with only a touchscreen |
162 |
|
163 |
dnl --------------------------------------------------------------------------- |
|
3099
by Bastien Nocera
xsettings: Rename variables for xsettings plugin |
164 |
dnl - xsettings |
1082
by Sergey V. Udaltsov
Sharing "show layout" dialog |
165 |
dnl --------------------------------------------------------------------------- |
166 |
||
3099
by Bastien Nocera
xsettings: Rename variables for xsettings plugin |
167 |
PKG_CHECK_MODULES(XSETTINGS, fontconfig) |
1082
by Sergey V. Udaltsov
Sharing "show layout" dialog |
168 |
|
169 |
dnl --------------------------------------------------------------------------- |
|
170 |
dnl - Keyboard plugin stuff |
|
171 |
dnl --------------------------------------------------------------------------- |
|
172 |
||
3137
by Rui Matos
keyboard: Add functionality to set IBus engines from input sources |
173 |
AC_ARG_ENABLE(ibus, |
174 |
AS_HELP_STRING([--disable-ibus], |
|
175 |
[Disable IBus support]), |
|
176 |
enable_ibus=$enableval, |
|
177 |
enable_ibus=yes) |
|
178 |
||
179 |
if test "x$enable_ibus" = "xyes" ; then |
|
3149
by Rico Tzschichholz
configure: If ibus support is enabled require 1.4.99 |
180 |
IBUS_MODULE="ibus-1.0 >= $IBUS_REQUIRED_VERSION" |
3137
by Rui Matos
keyboard: Add functionality to set IBus engines from input sources |
181 |
AC_DEFINE(HAVE_IBUS, 1, [Defined if IBus support is enabled]) |
182 |
else
|
|
183 |
IBUS_MODULE= |
|
184 |
fi
|
|
185 |
AM_CONDITIONAL(HAVE_IBUS, test "x$enable_ibus" == "xyes") |
|
186 |
||
187 |
PKG_CHECK_MODULES(KEYBOARD, xkbfile $IBUS_MODULE gnome-desktop-3.0 >= $GNOME_DESKTOP_REQUIRED_VERSION) |
|
1082
by Sergey V. Udaltsov
Sharing "show layout" dialog |
188 |
|
189 |
dnl --------------------------------------------------------------------------- |
|
190 |
dnl - Housekeeping plugin stuff |
|
191 |
dnl --------------------------------------------------------------------------- |
|
192 |
||
193 |
PKG_CHECK_MODULES(GIOUNIX, [gio-unix-2.0]) |
|
194 |
||
1298
by Rodrigo Moya
gconf: Add GConf<->GSettings bridge plugin |
195 |
dnl --------------------------------------------------------------------------- |
2180
by Bastien Nocera
media-keys: Clean up app launching |
196 |
dnl - media-keys plugin stuff |
197 |
dnl --------------------------------------------------------------------------- |
|
198 |
||
2385
by Florian Müllner
media-keys: Port custom keybindings to GSettings |
199 |
PKG_CHECK_MODULES(MEDIA_KEYS, [gio-unix-2.0 libpulse >= $PA_REQUIRED_VERSION $GUDEV_PKG libpulse-mainloop-glib >= $PA_REQUIRED_VERSION libcanberra]) |
2180
by Bastien Nocera
media-keys: Clean up app launching |
200 |
|
3051
by Bastien Nocera
xrandr: Use our own pkg-config checks |
201 |
dnl --------------------------------------------------------------------------- |
202 |
dnl - xrandr plugin stuff |
|
203 |
dnl --------------------------------------------------------------------------- |
|
204 |
||
205 |
PKG_CHECK_MODULES(XRANDR, [gnome-desktop-3.0 >= $GNOME_DESKTOP_REQUIRED_VERSION upower-glib >= $UPOWER_REQUIRED_VERSION]) |
|
206 |
||
3052
by Bastien Nocera
orientation: Add own pkg-config checks |
207 |
dnl --------------------------------------------------------------------------- |
208 |
dnl - orientation plugin stuff |
|
209 |
dnl --------------------------------------------------------------------------- |
|
210 |
||
3331
by Michael Biebl
build: Don't build orientation plugin if GUdev is not available |
211 |
if test x$have_gudev != xno; then |
3052
by Bastien Nocera
orientation: Add own pkg-config checks |
212 |
PKG_CHECK_MODULES(ORIENTATION, [gnome-desktop-3.0 >= $GNOME_DESKTOP_REQUIRED_VERSION gudev-1.0]) |
213 |
fi
|
|
214 |
||
3100
by Bastien Nocera
sound: Add pkg-config check for sound plugin's requirements |
215 |
dnl --------------------------------------------------------------------------- |
216 |
dnl - sound plugin stuff |
|
217 |
dnl --------------------------------------------------------------------------- |
|
218 |
||
219 |
PKG_CHECK_MODULES(SOUND, [libpulse >= $PA_REQUIRED_VERSION $GUDEV_PKG libpulse-mainloop-glib >= $PA_REQUIRED_VERSION]) |
|
220 |
||
3049
by Bastien Nocera
power: Link against xext, needed for XSync API |
221 |
# --------------------------------------------------------------------------- |
222 |
# Power |
|
223 |
# --------------------------------------------------------------------------- |
|
3359
by Bastien Nocera
power: Remove unneeded libsystemd-login dep |
224 |
PKG_CHECK_MODULES(POWER, upower-glib >= $UPOWER_REQUIRED_VERSION gnome-desktop-3.0 >= $GNOME_DESKTOP_REQUIRED_VERSION libcanberra-gtk3 libnotify x11 xext) |
3049
by Bastien Nocera
power: Link against xext, needed for XSync API |
225 |
|
3054
by Michael Biebl
build: Don't enable backlight helper if GUdev is not available |
226 |
if test x$have_gudev != xno; then |
3049
by Bastien Nocera
power: Link against xext, needed for XSync API |
227 |
PKG_CHECK_MODULES(BACKLIGHT_HELPER, |
228 |
glib-2.0 >= $GLIB_REQUIRED_VERSION |
|
229 |
gudev-1.0 |
|
230 |
) |
|
231 |
fi
|
|
232 |
||
2180
by Bastien Nocera
media-keys: Clean up app launching |
233 |
dnl --------------------------------------------------------------------------- |
2212
by Bastien Nocera
color: Using pnp.ids parsing from gnome-desktop |
234 |
dnl - color |
235 |
dnl --------------------------------------------------------------------------- |
|
236 |
||
237 |
PKG_CHECK_MODULES(COLOR, [colord >= 0.1.9 gnome-desktop-3.0 >= $GNOME_DESKTOP_REQUIRED_VERSION libcanberra-gtk3]) |
|
238 |
||
2460
by Bastien Nocera
wacom: Split out wacom checks |
239 |
dnl --------------------------------------------------------------------------- |
2970
by Antoine Jacoutot
disable wacom on non Linux platforms. |
240 |
dnl - wacom (disabled for s390/s390x and non Linux platforms) |
2460
by Bastien Nocera
wacom: Split out wacom checks |
241 |
dnl --------------------------------------------------------------------------- |
242 |
||
2970
by Antoine Jacoutot
disable wacom on non Linux platforms. |
243 |
case $host_os in |
244 |
linux*) |
|
245 |
if test "$host_cpu" = s390 -o "$host_cpu" = s390x; then |
|
246 |
have_wacom=no |
|
247 |
else |
|
2976
by Bastien Nocera
wacom: gudev support isn't optional on Linux systems |
248 |
if test x$enable_gudev != xno; then |
249 |
PKG_CHECK_MODULES(WACOM, [libwacom >= $LIBWACOM_REQUIRED_VERSION x11 xi xtst gudev-1.0 gnome-desktop-3.0 >= $GNOME_DESKTOP_REQUIRED_VERSION xorg-wacom]) |
|
250 |
else |
|
251 |
AC_MSG_ERROR([GUdev is necessary to compile Wacom support]) |
|
252 |
fi |
|
2970
by Antoine Jacoutot
disable wacom on non Linux platforms. |
253 |
have_wacom=yes |
254 |
fi |
|
255 |
;; |
|
256 |
*) |
|
2858
by Dan Horák
disable wacom support on s390/s390x |
257 |
have_wacom=no |
2970
by Antoine Jacoutot
disable wacom on non Linux platforms. |
258 |
;; |
259 |
esac
|
|
2858
by Dan Horák
disable wacom support on s390/s390x |
260 |
AM_CONDITIONAL(HAVE_WACOM, test x$have_wacom = xyes) |
2460
by Bastien Nocera
wacom: Split out wacom checks |
261 |
|
1082
by Sergey V. Udaltsov
Sharing "show layout" dialog |
262 |
dnl ============================================== |
1586
by Richard Hughes
Add an updates plugin to integrate with PackageKit |
263 |
dnl PackageKit section |
264 |
dnl ============================================== |
|
265 |
||
1590
by Richard Hughes
updates: allow --disable-packagekit to work correctly |
266 |
have_packagekit=false |
1586
by Richard Hughes
Add an updates plugin to integrate with PackageKit |
267 |
AC_ARG_ENABLE(packagekit, |
268 |
AC_HELP_STRING([--disable-packagekit], |
|
269 |
[turn off PackageKit support]), |
|
270 |
[case "${enableval}" in |
|
271 |
yes) WANT_PACKAGEKIT=yes ;;
|
|
272 |
no) WANT_PACKAGEKIT=no ;;
|
|
273 |
*) AC_MSG_ERROR(bad value ${enableval} for --disable-packagekit) ;;
|
|
274 |
esac], |
|
275 |
[WANT_PACKAGEKIT=yes]) dnl Default value |
|
276 |
||
277 |
if test x$WANT_PACKAGEKIT = xyes ; then |
|
3174
by Richard Hughes
Raise the required PackageKit version |
278 |
PK_REQUIRED_VERSION=0.7.4 |
2540
by Bastien Nocera
power: Require upower 0.9.11 |
279 |
PKG_CHECK_MODULES(PACKAGEKIT, glib-2.0 packagekit-glib2 >= $PK_REQUIRED_VERSION upower-glib >= $UPOWER_REQUIRED_VERSION gudev-1.0 libnotify >= $LIBNOTIFY_REQUIRED_VERSION, |
1586
by Richard Hughes
Add an updates plugin to integrate with PackageKit |
280 |
[have_packagekit=true |
281 |
AC_DEFINE(HAVE_PACKAGEKIT, 1, [Define if PackageKit should be used])], |
|
282 |
[have_packagekit=false]) |
|
283 |
fi
|
|
284 |
AM_CONDITIONAL(HAVE_PACKAGEKIT, test "x$have_packagekit" = "xtrue") |
|
285 |
||
286 |
AC_SUBST(PACKAGEKIT_CFLAGS) |
|
287 |
AC_SUBST(PACKAGEKIT_LIBS) |
|
288 |
||
289 |
dnl ============================================== |
|
1082
by Sergey V. Udaltsov
Sharing "show layout" dialog |
290 |
dnl smartcard section |
291 |
dnl ============================================== |
|
292 |
have_smartcard_support=false |
|
293 |
AC_ARG_ENABLE(smartcard-support, |
|
294 |
AC_HELP_STRING([--disable-smartcard-support], |
|
295 |
[turn off smartcard support]), |
|
296 |
[case "${enableval}" in |
|
297 |
yes) WANT_SMARTCARD_SUPPORT=yes ;;
|
|
298 |
no) WANT_SMARTCARD_SUPPORT=no ;;
|
|
299 |
*) AC_MSG_ERROR(bad value ${enableval} for --disable-smartcard-support) ;;
|
|
300 |
esac], |
|
301 |
[WANT_SMARTCARD_SUPPORT=yes]) |
|
302 |
||
303 |
if test x$WANT_SMARTCARD_SUPPORT = xyes ; then |
|
304 |
NSS_REQUIRED_VERSION=3.11.2 |
|
305 |
PKG_CHECK_MODULES(NSS, nss >= $NSS_REQUIRED_VERSION, |
|
306 |
[have_smartcard_support=true |
|
307 |
AC_DEFINE(SMARTCARD_SUPPORT, 1, [Define if smartcard support should be enabled])], |
|
308 |
[have_smartcard_support=false]) |
|
309 |
fi
|
|
310 |
AM_CONDITIONAL(SMARTCARD_SUPPORT, test "x$have_smartcard_support" = "xtrue") |
|
311 |
||
312 |
AC_SUBST(NSS_CFLAGS) |
|
313 |
AC_SUBST(NSS_LIBS) |
|
314 |
||
315 |
AC_ARG_WITH(nssdb, |
|
316 |
AC_HELP_STRING([--with-nssdb], |
|
317 |
[where system NSS database is])) |
|
318 |
||
319 |
NSS_DATABASE="" |
|
320 |
if test "x$have_smartcard_support" = "xtrue"; then |
|
321 |
if ! test -z "$with_nssdb" ; then |
|
322 |
NSS_DATABASE="$with_nssdb" |
|
323 |
else |
|
324 |
NSS_DATABASE="${sysconfdir}/pki/nssdb" |
|
325 |
fi |
|
326 |
else
|
|
327 |
if ! test -z "$with_nssdb" ; then |
|
328 |
AC_MSG_WARN([nssdb specified when smartcard support is disabled]) |
|
329 |
fi |
|
330 |
fi
|
|
331 |
||
332 |
AC_SUBST(NSS_DATABASE) |
|
333 |
||
1091.1.2
by Thomas Wood
Add optional dependency on PolicyKit and install datetime service |
334 |
|
2547
by Matthias Clasen
Add an --enable-systemd option to configure |
335 |
# --------------------------------------------------------------------------- |
1548
by Marek Kasik
print-notifications: add new plugin |
336 |
# CUPS |
337 |
# --------------------------------------------------------------------------- |
|
338 |
||
1660
by Saleem Abdulrasool
add option to explicitly disable cups |
339 |
AC_ARG_ENABLE(cups, |
340 |
AS_HELP_STRING([--disable-cups], [disable CUPS support (default: enabled)]),, |
|
341 |
enable_cups=yes) |
|
342 |
||
343 |
if test x"$enable_cups" != x"no" ; then |
|
1719
by Saleem Abdulrasool
build: improve CUPS detection |
344 |
AC_PROG_SED |
345 |
||
3169
by Bastien Nocera
printers: Check whether cups-config exists |
346 |
AC_PATH_PROG(CUPS_CONFIG, cups-config) |
347 |
||
348 |
if test x$CUPS_CONFIG = x; then |
|
349 |
AC_MSG_ERROR([cups-config not found but CUPS support requested]) |
|
350 |
fi |
|
1660
by Saleem Abdulrasool
add option to explicitly disable cups |
351 |
|
1577
by Marek Kasik
printing: Check that cups is recent enough |
352 |
CUPS_API_VERSION=`$CUPS_CONFIG --api-version` |
1719
by Saleem Abdulrasool
build: improve CUPS detection |
353 |
CUPS_API_MAJOR=`echo $ECHO_N $CUPS_API_VERSION | cut -d . -f 1` |
354 |
CUPS_API_MINOR=`echo $ECHO_N $CUPS_API_VERSION | cut -d . -f 2` |
|
1577
by Marek Kasik
printing: Check that cups is recent enough |
355 |
|
1660
by Saleem Abdulrasool
add option to explicitly disable cups |
356 |
AC_CHECK_HEADERS([cups/cups.h cups/http.h cups/ipp.h],, |
357 |
AC_MSG_ERROR([CUPS headers not found but CUPS support requested])) |
|
358 |
||
359 |
if ! test $CUPS_API_MAJOR -gt 1 -o \ |
|
360 |
$CUPS_API_MAJOR -eq 1 -a $CUPS_API_MINOR -ge 4 ; then |
|
361 |
AC_MSG_ERROR([CUPS 1.4 or newer not found, but CUPS support requested]) |
|
362 |
fi |
|
363 |
||
1719
by Saleem Abdulrasool
build: improve CUPS detection |
364 |
CUPS_CFLAGS=`$CUPS_CONFIG --cflags | $SED -e 's/-O\w*//g' -e 's/-m\w*//g'` |
365 |
CUPS_LIBS=`$CUPS_CONFIG --libs` |
|
366 |
AC_SUBST(CUPS_CFLAGS) |
|
1660
by Saleem Abdulrasool
add option to explicitly disable cups |
367 |
AC_SUBST(CUPS_LIBS) |
1548
by Marek Kasik
print-notifications: add new plugin |
368 |
fi
|
1660
by Saleem Abdulrasool
add option to explicitly disable cups |
369 |
|
370 |
AM_CONDITIONAL(BUILD_PRINT_NOTIFICATIONS, [test x"$enable_cups" = x"yes"]) |
|
1548
by Marek Kasik
print-notifications: add new plugin |
371 |
|
1082
by Sergey V. Udaltsov
Sharing "show layout" dialog |
372 |
# --------------------------------------------------------------------------- |
373 |
# Enable Profiling |
|
374 |
# --------------------------------------------------------------------------- |
|
375 |
AC_ARG_ENABLE(profiling, |
|
376 |
[AC_HELP_STRING([--enable-profiling], |
|
377 |
[turn on profiling])], |
|
378 |
, enable_profiling=no) |
|
379 |
if test "x$enable_profiling" = "xyes"; then |
|
380 |
AC_DEFINE(ENABLE_PROFILING,1,[enable profiling]) |
|
381 |
fi
|
|
382 |
||
383 |
||
384 |
# --------------------------------------------------------------------------- |
|
385 |
# Plugins |
|
386 |
# --------------------------------------------------------------------------- |
|
387 |
||
388 |
plugindir='$(libdir)/gnome-settings-daemon-gsd_api_version' |
|
389 |
AC_SUBST([plugindir]) |
|
390 |
||
3087
by Bastien Nocera
build: Export plugin name in PLUGIN_CFLAGS |
391 |
PLUGIN_CFLAGS="-DG_LOG_DOMAIN=\"\\\"\$(plugin_name)-plugin\\\"\" -DPLUGIN_NAME=\"\\\"\$(plugin_name)\\\"\" " |
1721
by Richard Hughes
Make sure G_LOG_DOMAIN is set to the plugin name for each plugin |
392 |
AC_SUBST(PLUGIN_CFLAGS) |
393 |
||
3161
by Colin Walters
build: Add --disable-man |
394 |
AC_ARG_ENABLE(man, |
395 |
[AS_HELP_STRING([--enable-man], |
|
396 |
[generate man pages [default=yes]])],, |
|
397 |
enable_man=yes) |
|
398 |
if test "$enable_man" != no; then |
|
399 |
AC_PATH_PROG([XSLTPROC], [xsltproc]) |
|
400 |
if test -z "$XSLTPROC"; then |
|
401 |
AC_MSG_ERROR([xsltproc is required for --enable-man]) |
|
402 |
fi |
|
403 |
fi
|
|
404 |
AM_CONDITIONAL(ENABLE_MAN, test "$enable_man" != no) |
|
3160
by Matthias Clasen
Add a man page |
405 |
|
1082
by Sergey V. Udaltsov
Sharing "show layout" dialog |
406 |
dnl --------------------------------------------------------------------------- |
407 |
dnl - Finish |
|
408 |
dnl --------------------------------------------------------------------------- |
|
409 |
||
410 |
||
411 |
# Turn on the additional warnings last, so warnings don't affect other tests. |
|
412 |
||
413 |
AC_ARG_ENABLE(more-warnings, |
|
414 |
[AC_HELP_STRING([--enable-more-warnings], |
|
415 |
[Maximum compiler warnings])], |
|
416 |
set_more_warnings="$enableval",[ |
|
1150
by Bastien Nocera
Only link plugins to gnome-desktop if need be |
417 |
if test -d $srcdir/.git; then
|
418 |
set_more_warnings=yes
|
|
419 |
else
|
|
420 |
set_more_warnings=no
|
|
421 |
fi
|
|
1082
by Sergey V. Udaltsov
Sharing "show layout" dialog |
422 |
]) |
423 |
AC_MSG_CHECKING(for more warnings) |
|
424 |
if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then |
|
425 |
AC_MSG_RESULT(yes) |
|
426 |
CFLAGS="\ |
|
427 |
-Wall \
|
|
428 |
-Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes \
|
|
429 |
-Wnested-externs -Wpointer-arith \
|
|
430 |
-Wcast-align -Wsign-compare \
|
|
431 |
$CFLAGS"
|
|
432 |
||
433 |
for option in -Wno-strict-aliasing -Wno-sign-compare; do |
|
434 |
SAVE_CFLAGS="$CFLAGS" |
|
435 |
CFLAGS="$CFLAGS $option" |
|
436 |
AC_MSG_CHECKING([whether gcc understands $option]) |
|
437 |
AC_TRY_COMPILE([], [], |
|
438 |
has_option=yes, |
|
439 |
has_option=no,) |
|
440 |
if test $has_option = no; then |
|
441 |
CFLAGS="$SAVE_CFLAGS" |
|
442 |
fi |
|
443 |
AC_MSG_RESULT($has_option) |
|
444 |
unset has_option |
|
445 |
unset SAVE_CFLAGS |
|
446 |
done |
|
447 |
unset option |
|
448 |
else
|
|
449 |
AC_MSG_RESULT(no) |
|
450 |
fi
|
|
451 |
||
452 |
#
|
|
453 |
# Enable Debug |
|
454 |
#
|
|
455 |
AC_ARG_ENABLE(debug, |
|
456 |
[AC_HELP_STRING([--enable-debug], |
|
457 |
[turn on debugging])], |
|
458 |
, enable_debug=yes) |
|
459 |
if test "$enable_debug" = "yes"; then |
|
460 |
DEBUG_CFLAGS="-DG_ENABLE_DEBUG" |
|
461 |
else
|
|
462 |
if test "x$enable_debug" = "xno"; then |
|
463 |
DEBUG_CFLAGS="-DG_DISABLE_ASSERT -DG_DISABLE_CHECKS" |
|
1150
by Bastien Nocera
Only link plugins to gnome-desktop if need be |
464 |
else |
465 |
DEBUG_CFLAGS="" |
|
466 |
fi |
|
1082
by Sergey V. Udaltsov
Sharing "show layout" dialog |
467 |
fi
|
468 |
AC_SUBST(DEBUG_CFLAGS) |
|
469 |
||
470 |
AC_OUTPUT([ |
|
471 |
Makefile
|
|
472 |
gnome-settings-daemon/Makefile
|
|
473 |
plugins/Makefile
|
|
474 |
plugins/a11y-keyboard/Makefile
|
|
1603
by Bastien Nocera
a11y-settings: Add new plugin |
475 |
plugins/a11y-settings/Makefile
|
1082
by Sergey V. Udaltsov
Sharing "show layout" dialog |
476 |
plugins/background/Makefile
|
477 |
plugins/clipboard/Makefile
|
|
1863
by Richard Hughes
color: Add functionality to show optional notifications for when a color profile is out of calibration |
478 |
plugins/color/Makefile
|
1082
by Sergey V. Udaltsov
Sharing "show layout" dialog |
479 |
plugins/common/Makefile
|
1938
by Bastien Nocera
cursor: Hide cursor on tablets with only a touchscreen |
480 |
plugins/cursor/Makefile
|
1082
by Sergey V. Udaltsov
Sharing "show layout" dialog |
481 |
plugins/dummy/Makefile
|
1994
by Richard Hughes
media-keys: Add button handling code from gnome-power-manager |
482 |
plugins/power/Makefile
|
1082
by Sergey V. Udaltsov
Sharing "show layout" dialog |
483 |
plugins/housekeeping/Makefile
|
484 |
plugins/keyboard/Makefile
|
|
485 |
plugins/media-keys/Makefile
|
|
486 |
plugins/media-keys/cut-n-paste/Makefile
|
|
487 |
plugins/mouse/Makefile
|
|
1891
by Bastien Nocera
common: Add orientation plugin |
488 |
plugins/orientation/Makefile
|
1548
by Marek Kasik
print-notifications: add new plugin |
489 |
plugins/print-notifications/Makefile
|
1082
by Sergey V. Udaltsov
Sharing "show layout" dialog |
490 |
plugins/smartcard/Makefile
|
491 |
plugins/sound/Makefile
|
|
1586
by Richard Hughes
Add an updates plugin to integrate with PackageKit |
492 |
plugins/updates/Makefile
|
1398
by Peter Hutterer
Add wacom g-s-d plugin. |
493 |
plugins/wacom/Makefile
|
1082
by Sergey V. Udaltsov
Sharing "show layout" dialog |
494 |
plugins/xrandr/Makefile
|
495 |
plugins/xsettings/Makefile
|
|
496 |
data/Makefile
|
|
497 |
data/gnome-settings-daemon.pc
|
|
498 |
data/gnome-settings-daemon-uninstalled.pc
|
|
1216
by Rodrigo Moya
Add schemas for enable/priority settings for the rest of the plugins |
499 |
data/org.gnome.settings-daemon.plugins.gschema.xml.in
|
1208
by Bastien Nocera
Move font-rendering to gsd namespace |
500 |
data/org.gnome.settings-daemon.plugins.xsettings.gschema.xml.in
|
1267
by Sergey V. Udaltsov
keyboard: use gsettings, not gconf |
501 |
data/org.gnome.settings-daemon.plugins.keyboard.gschema.xml.in
|
1396
by Richard Hughes
Move some of the gnome-power-manager schema so it can be used by the 'Screen' control center pane |
502 |
data/org.gnome.settings-daemon.plugins.power.gschema.xml.in
|
1859
by Richard Hughes
Add the schema boilerplate for the future color plugin |
503 |
data/org.gnome.settings-daemon.plugins.color.gschema.xml.in
|
1210
by Bastien Nocera
Rename keybindings GSettings namespace |
504 |
data/org.gnome.settings-daemon.plugins.media-keys.gschema.xml.in
|
1211
by Bastien Nocera
Change GSettings namespace for peripherals |
505 |
data/org.gnome.settings-daemon.peripherals.gschema.xml.in
|
1186
by Rodrigo Moya
Port GConf schemas to GSettings |
506 |
data/org.gnome.settings-daemon.plugins.housekeeping.gschema.xml.in
|
1893
by Florian Müllner
build: Add orientation schema to AC_OUTPUT |
507 |
data/org.gnome.settings-daemon.plugins.orientation.gschema.xml.in
|
1586
by Richard Hughes
Add an updates plugin to integrate with PackageKit |
508 |
data/org.gnome.settings-daemon.plugins.updates.gschema.xml.in
|
1186
by Rodrigo Moya
Port GConf schemas to GSettings |
509 |
data/org.gnome.settings-daemon.plugins.xrandr.gschema.xml.in
|
1398
by Peter Hutterer
Add wacom g-s-d plugin. |
510 |
data/org.gnome.settings-daemon.peripherals.wacom.gschema.xml.in
|
1548
by Marek Kasik
print-notifications: add new plugin |
511 |
data/org.gnome.settings-daemon.plugins.print-notifications.gschema.xml.in
|
1082
by Sergey V. Udaltsov
Sharing "show layout" dialog |
512 |
po/Makefile.in
|
3160
by Matthias Clasen
Add a man page |
513 |
man/Makefile
|
1082
by Sergey V. Udaltsov
Sharing "show layout" dialog |
514 |
]) |
515 |
||
516 |
dnl --------------------------------------------------------------------------- |
|
517 |
dnl - Show summary |
|
518 |
dnl --------------------------------------------------------------------------- |
|
519 |
||
520 |
echo " |
|
521 |
gnome-settings-daemon $VERSION
|
|
522 |
=============================
|
|
523 |
||
1553
by Matthias Clasen
Mention cups support in the configure summary |
524 |
prefix: ${prefix}
|
525 |
exec_prefix: ${exec_prefix}
|
|
1082
by Sergey V. Udaltsov
Sharing "show layout" dialog |
526 |
libdir: ${libdir}
|
527 |
bindir: ${bindir}
|
|
528 |
sbindir: ${sbindir}
|
|
529 |
sysconfdir: ${sysconfdir}
|
|
530 |
sysconfsubdir: ${sysconfsubdir}
|
|
531 |
localstatedir: ${localstatedir}
|
|
532 |
plugindir: ${plugindir}
|
|
533 |
datadir: ${datadir}
|
|
1553
by Matthias Clasen
Mention cups support in the configure summary |
534 |
source code location: ${srcdir}
|
535 |
compiler: ${CC}
|
|
536 |
cflags: ${CFLAGS}
|
|
1082
by Sergey V. Udaltsov
Sharing "show layout" dialog |
537 |
Maintainer mode: ${USE_MAINTAINER_MODE}
|
538 |
||
2547
by Matthias Clasen
Add an --enable-systemd option to configure |
539 |
Session tracking: ${SESSION_TRACKING}
|
1954
by Richard Hughes
color: Move the device registration functionality from gcm-session to the color plugin |
540 |
LCMS DICT support: ${have_new_lcms}
|
3137
by Rui Matos
keyboard: Add functionality to set IBus engines from input sources |
541 |
IBus support: ${enable_ibus}
|
1082
by Sergey V. Udaltsov
Sharing "show layout" dialog |
542 |
Libnotify support: ${have_libnotify}
|
1586
by Richard Hughes
Add an updates plugin to integrate with PackageKit |
543 |
PackageKit support: ${have_packagekit}
|
1082
by Sergey V. Udaltsov
Sharing "show layout" dialog |
544 |
Smartcard support: ${have_smartcard_support}
|
3028
by Bastien Nocera
build: Make CUPS enablement status work |
545 |
Cups support: ${enable_cups}
|
2858
by Dan Horák
disable wacom support on s390/s390x |
546 |
Wacom support: ${have_wacom}
|
1082
by Sergey V. Udaltsov
Sharing "show layout" dialog |
547 |
${NSS_DATABASE:+\
|
548 |
System nssdb: ${NSS_DATABASE}
|
|
549 |
}\
|
|
550 |
Profiling support: ${enable_profiling}
|
|
551 |
"
|