configure.ac: Auto-enable vaapi recorder, but allow overrides
[profile/ivi/weston-ivi-shell.git] / configure.ac
1 m4_define([weston_major_version], [1])
2 m4_define([weston_minor_version], [2])
3 m4_define([weston_micro_version], [90])
4 m4_define([weston_version],
5           [weston_major_version.weston_minor_version.weston_micro_version])
6
7 AC_PREREQ([2.64])
8 AC_INIT([weston],
9         [weston_version],
10         [https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=weston&version=weston_version],
11         [weston],
12         [http://wayland.freedesktop.org/])
13
14 AC_SUBST([WESTON_VERSION_MAJOR], [weston_major_version])
15 AC_SUBST([WESTON_VERSION_MINOR], [weston_minor_version])
16 AC_SUBST([WESTON_VERSION_MICRO], [weston_micro_version])
17 AC_SUBST([WESTON_VERSION], [weston_version])
18
19 AC_CONFIG_HEADERS([config.h])
20
21 AC_USE_SYSTEM_EXTENSIONS
22 AC_SYS_LARGEFILE
23
24 AM_INIT_AUTOMAKE([1.11 parallel-tests foreign no-dist-gzip dist-xz color-tests])
25
26 AM_SILENT_RULES([yes])
27
28 # Check for programs
29 AC_PROG_CC
30 AC_PROG_SED
31
32 # Initialize libtool
33 LT_PREREQ([2.2])
34 LT_INIT([disable-static])
35
36 AC_ARG_VAR([WESTON_NATIVE_BACKEND],
37            [Set the native backend to use, if Weston is not running under Wayland nor X11. @<:@default=drm-backend.so@:>@])
38
39 PKG_PROG_PKG_CONFIG()
40
41 AC_CHECK_FUNC([dlopen], [],
42               AC_CHECK_LIB([dl], [dlopen], DLOPEN_LIBS="-ldl"))
43 AC_SUBST(DLOPEN_LIBS)
44
45 AC_CHECK_DECL(SFD_CLOEXEC,[],
46               [AC_MSG_ERROR("SFD_CLOEXEC is needed to compile weston")],
47               [[#include <sys/signalfd.h>]])
48 AC_CHECK_DECL(TFD_CLOEXEC,[],
49               [AC_MSG_ERROR("TFD_CLOEXEC is needed to compile weston")],
50               [[#include <sys/timerfd.h>]])
51 AC_CHECK_DECL(CLOCK_MONOTONIC,[],
52               [AC_MSG_ERROR("CLOCK_MONOTONIC is needed to compile weston")],
53               [[#include <time.h>]])
54 AC_CHECK_HEADERS([execinfo.h])
55
56 AC_CHECK_FUNCS([mkostemp strchrnul initgroups])
57
58 COMPOSITOR_MODULES="wayland-server >= 1.1.90 pixman-1"
59
60 AC_ARG_ENABLE(egl, [  --disable-egl],,
61               enable_egl=yes)
62 AM_CONDITIONAL(ENABLE_EGL, test x$enable_egl = xyes)
63 if test x$enable_egl = xyes; then
64         AC_DEFINE([ENABLE_EGL], [1], [Build Weston with EGL support])
65         COMPOSITOR_MODULES="$COMPOSITOR_MODULES egl >= 7.10 glesv2"
66 fi
67
68 AC_ARG_ENABLE(xkbcommon,
69               AS_HELP_STRING([--disable-xkbcommon], [Disable libxkbcommon
70                               support: This is only useful in environments
71                               where you do not have a hardware keyboard. If
72                               libxkbcommon support is disabled clients will not
73                               be sent a keymap and and must know how to
74                               interpret the keycode sent for any key event.]),,
75               enable_xkbcommon=yes)
76 if test x$enable_xkbcommon = xyes; then
77         AC_DEFINE(ENABLE_XKBCOMMON, [1], [Build Weston with libxkbcommon support])
78         COMPOSITOR_MODULES="$COMPOSITOR_MODULES xkbcommon"
79 fi
80
81 PKG_CHECK_MODULES(COMPOSITOR, [$COMPOSITOR_MODULES])
82
83 AC_ARG_ENABLE(setuid-install, [  --enable-setuid-install],,
84               enable_setuid_install=yes)
85 AM_CONDITIONAL(ENABLE_SETUID_INSTALL, test x$enable_setuid_install = xyes)
86
87
88 AC_ARG_ENABLE(xwayland, [  --enable-xwayland],,
89               enable_xwayland=yes)
90 AC_ARG_ENABLE(xwayland-test, [  --enable-xwayland-test],,
91               enable_xwayland_test=yes)
92 AM_CONDITIONAL(ENABLE_XWAYLAND, test x$enable_xwayland = xyes)
93 AM_CONDITIONAL(ENABLE_XWAYLAND_TEST, test x$enable_xwayland = xyes -a x$enable_xwayland_test = xyes)
94 if test x$enable_xwayland = xyes; then
95   PKG_CHECK_MODULES([XWAYLAND], xcb xcb-xfixes xcursor cairo-xcb)
96   AC_DEFINE([BUILD_XWAYLAND], [1], [Build the X server launcher])
97
98   AC_ARG_WITH(xserver-path, AS_HELP_STRING([--with-xserver-path=PATH],
99               [Path to X server]), [XSERVER_PATH="$withval"],
100               [XSERVER_PATH="$bindir/Xorg"])
101   AC_SUBST([XSERVER_PATH])
102   if test x$enable_xwayland_test = xyes; then
103     PKG_CHECK_MODULES([XWAYLAND_TEST], xcb xcb-dri2 libdrm)
104   fi
105 fi
106
107
108 AC_ARG_ENABLE(x11-compositor, [  --enable-x11-compositor],,
109               enable_x11_compositor=yes)
110 AM_CONDITIONAL(ENABLE_X11_COMPOSITOR, test x$enable_x11_compositor = xyes)
111 if test x$enable_x11_compositor = xyes; then
112   PKG_CHECK_MODULES([XCB], xcb)
113   xcb_save_LIBS=$LIBS
114   xcb_save_CFLAGS=$CFLAGS
115   CFLAGS=$XCB_CFLAGS
116   LIBS=$XCB_LIBS
117   AC_CHECK_FUNCS([xcb_poll_for_queued_event])
118   LIBS=$xcb_save_LIBS
119   CFLAGS=$xcb_save_CFLAGS
120
121   X11_COMPOSITOR_MODULES="x11 x11-xcb xcb-shm"
122
123   PKG_CHECK_MODULES(X11_COMPOSITOR_XKB, [xcb-xkb],
124                     [have_xcb_xkb="yes"], [have_xcb_xkb="no"])
125   if test "x$have_xcb_xkb" = xyes; then
126         # Most versions of XCB have totally broken XKB bindings, where the
127         # events don't work.  Make sure we can actually use them.
128         xcb_xkb_save_CFLAGS=$CFLAGS
129         CFLAGS=$X11_COMPOSITOR_XKB_CFLAGS
130         AC_CHECK_MEMBER([struct xcb_xkb_state_notify_event_t.xkbType],
131                         [], [have_xcb_xkb=no], [[#include <xcb/xkb.h>]])
132         CFLAGS=$xcb_xkb_save_CFLAGS
133   fi
134   if test "x$have_xcb_xkb" = xyes; then
135         X11_COMPOSITOR_MODULES="$X11_COMPOSITOR_MODULES xcb-xkb"
136         AC_DEFINE([HAVE_XCB_XKB], [1], [libxcb supports XKB protocol])
137   fi
138
139   PKG_CHECK_MODULES(X11_COMPOSITOR, [$X11_COMPOSITOR_MODULES])
140   AC_DEFINE([BUILD_X11_COMPOSITOR], [1], [Build the X11 compositor])
141 fi
142
143
144 AC_ARG_ENABLE(drm-compositor, [  --enable-drm-compositor],,
145               enable_drm_compositor=yes)
146 AM_CONDITIONAL(ENABLE_DRM_COMPOSITOR, test x$enable_drm_compositor = xyes -a x$enable_egl = xyes)
147 if test x$enable_drm_compositor = xyes -a x$enable_egl = xyes; then
148   AC_DEFINE([BUILD_DRM_COMPOSITOR], [1], [Build the DRM compositor])
149   PKG_CHECK_MODULES(DRM_COMPOSITOR, [libudev >= 136 libdrm >= 2.4.30 gbm mtdev >= 1.1.0])
150 fi
151
152
153 AC_ARG_ENABLE(wayland-compositor, [  --enable-wayland-compositor],,
154               enable_wayland_compositor=yes)
155 AM_CONDITIONAL(ENABLE_WAYLAND_COMPOSITOR,
156                test x$enable_wayland_compositor = xyes -a x$enable_egl = xyes)
157 if test x$enable_wayland_compositor = xyes -a x$enable_egl = xyes; then
158   AC_DEFINE([BUILD_WAYLAND_COMPOSITOR], [1],
159             [Build the Wayland (nested) compositor])
160   PKG_CHECK_MODULES(WAYLAND_COMPOSITOR, [wayland-client wayland-egl])
161 fi
162
163
164 AC_ARG_ENABLE(headless-compositor, [  --enable-headless-compositor],,
165               enable_headless_compositor=yes)
166 AM_CONDITIONAL(ENABLE_HEADLESS_COMPOSITOR,
167                test x$enable_headless_compositor = xyes)
168
169
170 AC_ARG_ENABLE(rpi-compositor,
171               AS_HELP_STRING([--disable-rpi-compositor],
172                              [do not build the Raspberry Pi backend]),,
173               enable_rpi_compositor=yes)
174 AM_CONDITIONAL(ENABLE_RPI_COMPOSITOR, test "x$enable_rpi_compositor" = "xyes")
175 have_bcm_host="no"
176 if test "x$enable_rpi_compositor" = "xyes"; then
177   AC_DEFINE([BUILD_RPI_COMPOSITOR], [1], [Build the compositor for Raspberry Pi])
178   PKG_CHECK_MODULES(RPI_COMPOSITOR, [libudev >= 136 mtdev >= 1.1.0])
179   PKG_CHECK_MODULES(RPI_BCM_HOST, [bcm_host],
180                     [have_bcm_host="yes"
181                      AC_DEFINE([HAVE_BCM_HOST], [1], [have Raspberry Pi BCM headers])],
182                     [AC_MSG_WARN([Raspberry Pi BCM host libraries not found, will use stubs instead.])])
183 fi
184 AM_CONDITIONAL(INSTALL_RPI_COMPOSITOR, test "x$have_bcm_host" = "xyes")
185
186
187 AC_ARG_ENABLE([fbdev-compositor], [  --enable-fbdev-compositor],,
188               enable_fbdev_compositor=yes)
189 AM_CONDITIONAL([ENABLE_FBDEV_COMPOSITOR],
190                [test x$enable_fbdev_compositor = xyes])
191 AS_IF([test x$enable_fbdev_compositor = xyes], [
192   AC_DEFINE([BUILD_FBDEV_COMPOSITOR], [1], [Build the fbdev compositor])
193   PKG_CHECK_MODULES([FBDEV_COMPOSITOR], [libudev >= 136 mtdev >= 1.1.0 libdrm >= 2.4.30])
194 ])
195
196 AC_ARG_ENABLE([rdp-compositor], [  --enable-rdp-compositor],,
197               enable_rdp_compositor=no)
198 AM_CONDITIONAL([ENABLE_RDP_COMPOSITOR],
199                [test x$enable_rdp_compositor = xyes])
200 if test x$enable_rdp_compositor = xyes; then
201   AC_DEFINE([BUILD_RDP_COMPOSITOR], [1], [Build the RDP compositor])
202   PKG_CHECK_MODULES(RDP_COMPOSITOR, [freerdp >= 1.1.0])
203 fi
204
205 AC_ARG_WITH(cairo,
206             AS_HELP_STRING([--with-cairo=@<:@image|gl|glesv2@:>@]
207                            [Which Cairo renderer to use for the clients]),
208                            [],[with_cairo="image"])
209
210 if test "x$with_cairo" = "ximage"; then
211         cairo_modules="cairo"
212 else
213 if test "x$with_cairo" = "xgl"; then
214         cairo_modules="cairo-gl"
215 else
216 if test "x$with_cairo" = "xglesv2"; then
217         cairo_modules="cairo-glesv2"
218 else
219         AC_ERROR([Unknown cairo renderer requested])
220 fi
221 fi
222 fi
223
224 # Included for legacy compat
225 AC_ARG_WITH(cairo-glesv2,
226             AS_HELP_STRING([--with-cairo-glesv2],
227                            [Use GLESv2 cairo]))
228 if test "x$with_cairo_glesv2" = "xyes"; then
229   cairo_modules="cairo-glesv2"
230   with_cairo="glesv2"
231 fi
232
233 if test "x$cairo_modules" = "xcairo-glesv2"; then
234 AC_DEFINE([USE_CAIRO_GLESV2], [1], [Use the GLESv2 GL cairo backend])
235 fi
236
237 PKG_CHECK_MODULES(PIXMAN, [pixman-1])
238 PKG_CHECK_MODULES(PNG, [libpng])
239 PKG_CHECK_MODULES(WEBP, [libwebp], [have_webp=yes], [have_webp=no])
240 AS_IF([test "x$have_webp" = "xyes"],
241       [AC_DEFINE([HAVE_WEBP], [1], [Have webp])])
242
243 AC_ARG_ENABLE(vaapi-recorder, [  --enable-vaapi-recorder],,
244               enable_vaapi_recorder=auto)
245 if test x$enable_vaapi_recorder != xno; then
246   PKG_CHECK_MODULES(LIBVA, [libva >= 0.34.0 libva-drm >= 0.34.0],
247                     [have_libva=yes], [have_libva=no])
248   if test "x$have_libva" = "xno" -a "x$enable_vaapi_recorder" = "xyes"; then
249     AC_MSG_ERROR([vaapi-recorder explicitly enabled, but libva couldn't be found])
250   else
251     AC_DEFINE([BUILD_VAAPI_RECORDER], [1], [Build the vaapi recorder])
252   fi
253 fi
254 AM_CONDITIONAL(ENABLE_VAAPI_RECORDER,
255                test "x$enable_libva_recorder" != xno -a "x$have_libva" = xyes)
256
257
258 AC_CHECK_LIB([jpeg], [jpeg_CreateDecompress], have_jpeglib=yes)
259 if test x$have_jpeglib = xyes; then
260   JPEG_LIBS="-ljpeg"
261 else
262   AC_ERROR([libjpeg not found])
263 fi
264 AC_SUBST(JPEG_LIBS)
265
266 PKG_CHECK_MODULES(CAIRO, [cairo])
267
268 AC_ARG_ENABLE(simple-clients,
269               AS_HELP_STRING([--disable-simple-clients],
270                              [do not build the simple wl_shm clients]),,
271               enable_simple_clients=yes)
272 AM_CONDITIONAL(BUILD_SIMPLE_CLIENTS, test "x$enable_simple_clients" = "xyes")
273 if test x$enable_simple_clients = xyes; then
274   PKG_CHECK_MODULES(SIMPLE_CLIENT, [wayland-client])
275 fi
276
277 AC_ARG_ENABLE(simple-egl-clients,
278               AS_HELP_STRING([--disable-simple-egl-clients],
279                              [do not build the simple EGL clients]),,
280               enable_simple_egl_clients=yes)
281 AM_CONDITIONAL(BUILD_SIMPLE_EGL_CLIENTS, test "x$enable_simple_egl_clients" = "xyes" -a "x$enable_egl" = "xyes")
282 if test x$enable_simple_egl_clients = xyes -a x$enable_egl = xyes; then
283   PKG_CHECK_MODULES(SIMPLE_EGL_CLIENT,
284                     [egl >= 7.10 glesv2 wayland-client wayland-egl wayland-cursor])
285 fi
286
287 AC_ARG_ENABLE(clients, [  --enable-clients],, enable_clients=yes)
288 AM_CONDITIONAL(BUILD_CLIENTS, test x$enable_clients = xyes)
289 if test x$enable_clients = xyes; then
290   AC_DEFINE([BUILD_CLIENTS], [1], [Build the Wayland clients])
291
292   PKG_CHECK_MODULES(CLIENT, [wayland-client cairo >= 1.10.0 xkbcommon wayland-cursor])
293   PKG_CHECK_MODULES(SERVER, [wayland-server])
294   PKG_CHECK_MODULES(WESTON_INFO, [wayland-client])
295
296   PKG_CHECK_MODULES(POPPLER, [poppler-glib glib-2.0 gobject-2.0 gio-2.0 ],
297                              [have_poppler=yes], [have_poppler=no])
298
299   # Only check for cairo-egl if a GL or GLES renderer requested
300   AS_IF([test "x$cairo_modules" = "xcairo-gl" -o "x$cairo_modules" = "xcairo-glesv2"], [
301     PKG_CHECK_MODULES(CAIRO_EGL, [wayland-egl egl >= 7.10 cairo-egl >= 1.11.3 $cairo_modules],
302                       [have_cairo_egl=yes], [have_cairo_egl=no])
303     AS_IF([test "x$have_cairo_egl" = "xyes"],
304           [AC_DEFINE([HAVE_CAIRO_EGL], [1], [Have cairo-egl])],
305           [AC_ERROR([cairo-egl not used because $CAIRO_EGL_PKG_ERRORS])])],
306   [have_cairo_egl=no])
307
308   PKG_CHECK_MODULES(PANGO, [pangocairo], [have_pango=yes], [have_pango=no])
309 fi
310
311 AC_ARG_ENABLE(resize-optimization,
312               AS_HELP_STRING([--disable-resize-optimization],
313                              [disable resize optimization allocating a big buffer in toytoolkit]),,
314               enable_resize_optimization=yes)
315 AS_IF([test "x$enable_resize_optimization" = "xyes"],
316       [AC_DEFINE([USE_RESIZE_POOL], [1], [Use resize memory pool as a performance optimization])])
317
318 AC_ARG_ENABLE(weston-launch, [  --enable-weston-launch],, enable_weston_launch=yes)
319 AM_CONDITIONAL(BUILD_WESTON_LAUNCH, test x$enable_weston_launch == xyes)
320 if test x$enable_weston_launch == xyes; then
321   PKG_CHECK_MODULES(WESTON_LAUNCH, [libdrm])
322   PKG_CHECK_MODULES(SYSTEMD_LOGIN, [libsystemd-login],
323                     [have_systemd_login=yes], [have_systemd_login=no])
324   AS_IF([test "x$have_systemd_login" = "xyes"],
325         [AC_DEFINE([HAVE_SYSTEMD_LOGIN], [1], [Have systemd-login])])
326
327   AC_CHECK_LIB([pam], [pam_open_session], [have_pam=yes], [have_pam=no])
328   if test x$have_pam == xno; then
329     AC_ERROR([weston-launch requires pam])
330   fi
331   WESTON_LAUNCH_LIBS="$WESTON_LAUNCH_LIBS -lpam"
332 fi
333
334 if test x$enable_egl = xyes; then
335   PKG_CHECK_MODULES(GLU, [glu], [have_glu=yes], [have_glu=no])
336 fi
337 AM_CONDITIONAL(HAVE_GLU, test "x$have_glu" = "xyes")
338
339
340 AM_CONDITIONAL(HAVE_POPPLER, test "x$have_poppler" = "xyes")
341
342 AM_CONDITIONAL(HAVE_PANGO, test "x$have_pango" = "xyes")
343
344 AM_CONDITIONAL(HAVE_CAIRO_GLESV2,
345                [test "x$have_cairo_egl" = "xyes" -a "x$cairo_modules" = "xcairo-glesv2" -a "x$enable_egl" = "xyes"])
346
347 AM_CONDITIONAL(BUILD_FULL_GL_CLIENTS,
348                test x$cairo_modules = "xcairo-gl" -a "x$have_cairo_egl" = "xyes" -a "x$enable_egl" = "xyes")
349
350 AM_CONDITIONAL(BUILD_SUBSURFACES_CLIENT,
351                [test '(' "x$have_cairo_egl" != "xyes" -o "x$cairo_modules" = "xcairo-glesv2" ')' -a "x$enable_simple_egl_clients" = "xyes"])
352
353 AM_CONDITIONAL(ENABLE_DESKTOP_SHELL, true)
354
355 AC_ARG_ENABLE(tablet-shell,
356               AS_HELP_STRING([--disable-tablet-shell],
357                              [do not build tablet-shell server plugin and client]),,
358               enable_tablet_shell=yes)
359 AM_CONDITIONAL(ENABLE_TABLET_SHELL,
360                test "x$enable_tablet_shell" = "xyes")
361
362 # CMS modules
363 AC_ARG_ENABLE(colord,
364               AS_HELP_STRING([--disable-colord],
365                              [do not build colord CMS support]),,
366               enable_colord=auto)
367 if test "x$enable_colord" != "xno"; then
368         PKG_CHECK_MODULES(COLORD,
369                           colord >= 0.1.27,
370                           have_colord=yes,
371                           have_colord=no)
372         if test "x$have_colord" = "xno" -a "x$enable_colord" = "xyes"; then
373           AC_MSG_ERROR([colord support explicitly requested, but colord couldn't be found])
374         fi
375         if test "x$have_colord" = "xyes"; then
376              enable_colord=yes
377         fi
378 fi
379 AM_CONDITIONAL(ENABLE_COLORD, test "x$enable_colord" = "xyes")
380
381 AC_ARG_ENABLE(wcap-tools, [  --disable-wcap-tools],, enable_wcap_tools=yes)
382 AM_CONDITIONAL(BUILD_WCAP_TOOLS, test x$enable_wcap_tools = xyes)
383 if test x$enable_wcap_tools = xyes; then
384   AC_DEFINE([BUILD_WCAP_TOOLS], [1], [Build the wcap tools])
385   PKG_CHECK_MODULES(WCAP, [cairo])
386   WCAP_LIBS="$WCAP_LIBS -lm"
387 fi
388
389 AC_CHECK_PROG(RSVG_CONVERT, rsvg-convert, rsvg-convert)
390 AM_CONDITIONAL(HAVE_RSVG_CONVERT, test -n "$RSVG_CONVERT")
391
392 PKG_CHECK_MODULES(SETBACKLIGHT, [libudev libdrm], enable_setbacklight=yes, enable_setbacklight=no)
393 AM_CONDITIONAL(BUILD_SETBACKLIGHT, test "x$enable_setbacklight" = "xyes")
394
395 if test "x$GCC" = "xyes"; then
396         GCC_CFLAGS="-Wall -Wextra -Wno-unused-parameter \
397                 -Wno-missing-field-initializers -g -fvisibility=hidden \
398                 -Wstrict-prototypes -Wmissing-prototypes"
399 fi
400 AC_SUBST(GCC_CFLAGS)
401
402 AC_ARG_ENABLE(libunwind,
403               AS_HELP_STRING([--disable-libunwind],
404                              [Disable libunwind usage for backtraces]),,
405               enable_libunwind=auto)
406 AM_CONDITIONAL(HAVE_LIBUNWIND, [test "x$enable_libunwind" = xyes])
407 if test "x$enable_libunwind" != "xno"; then
408         PKG_CHECK_MODULES(LIBUNWIND,
409                           libunwind,
410                           have_libunwind=yes,
411                           have_libunwind=no)
412         if test "x$have_libunwind" = "xno" -a "x$enable_libunwind" = "xyes"; then
413           AC_MSG_ERROR([libunwind support explicitly requested, but libunwind couldn't be found])
414         fi
415         if test "x$have_libunwind" = "xyes"; then
416              enable_libunwind=yes
417              AC_DEFINE(HAVE_LIBUNWIND, 1, [Have libunwind support])
418         fi
419 fi
420
421
422 if test "x$WESTON_NATIVE_BACKEND" = "x"; then
423         WESTON_NATIVE_BACKEND="drm-backend.so"
424 fi
425 AC_MSG_NOTICE([Weston's native backend: $WESTON_NATIVE_BACKEND])
426 AC_DEFINE_UNQUOTED([WESTON_NATIVE_BACKEND], ["$WESTON_NATIVE_BACKEND"],
427                    [The default backend to load, if not wayland nor x11.])
428
429 AC_ARG_ENABLE(demo-clients,
430               AS_HELP_STRING([--enable-demo-clients],
431                              [install demo clients built with weston]),,
432               enable_demo_clients=no)
433 AM_CONDITIONAL(ENABLE_DEMO_CLIENTS, [test "x$enable_demo_clients" = "xyes"])
434
435 PKG_CHECK_MODULES(LCMS, lcms2,
436                   [have_lcms=yes], [have_lcms=no])
437 if test "x$have_lcms" = xyes; then
438        AC_DEFINE(HAVE_LCMS, 1, [Have lcms support])
439 fi
440 AM_CONDITIONAL(HAVE_LCMS, [test "x$have_lcms" = xyes])
441
442 AC_PATH_PROG([wayland_scanner], [wayland-scanner])
443 if test x$wayland_scanner = x; then
444         AC_MSG_ERROR([wayland-scanner is needed to compile weston])
445 fi
446
447 AC_CONFIG_FILES([Makefile
448                  shared/Makefile
449                  src/Makefile
450                  src/xwayland/Makefile
451                  src/version.h
452                  src/weston.pc
453                  clients/Makefile
454                  wcap/Makefile
455                  data/Makefile
456                  protocol/Makefile
457                  man/Makefile
458                  tests/Makefile])
459 AC_OUTPUT
460
461 AC_MSG_RESULT([
462         Native Backend                  ${WESTON_NATIVE_BACKEND}
463         setuid Install                  ${enable_setuid_install}
464
465         Cairo Renderer                  ${with_cairo}
466         EGL                             ${enable_egl}
467         libxkbcommon                    ${enable_xkbcommon}
468         XWayland                        ${enable_xwayland}
469
470         Build wcap utility              ${enable_wcap_tools}
471         Build Tablet Shell              ${enable_tablet_shell}
472
473         weston-launch utility           ${enable_weston_launch}
474         weston-launch systemd support   ${have_systemd_login}
475
476         DRM Compositor                  ${enable_drm_compositor}
477         X11 Compositor                  ${enable_x11_compositor}
478         Wayland Compositor              ${enable_wayland_compositor}
479         Headless Compositor             ${enable_headless_compositor}
480         RPI Compositor                  ${enable_rpi_compositor}
481         FBDEV Compositor                ${enable_fbdev_compositor}
482         RDP Compositor                  ${enable_rdp_compositor}
483
484         Raspberry Pi BCM headers        ${have_bcm_host}
485
486         Build Clients                   ${enable_clients}
487         Build EGL Clients               ${have_cairo_egl}
488         Build Simple Clients            ${enable_simple_clients}
489         Build Simple EGL Clients        ${enable_simple_egl_clients}
490
491         Install Demo Clients            ${enable_demo_clients}
492
493         Colord Support                  ${have_colord}
494         GLU Support                     ${have_glu}
495         LCMS2 Support                   ${have_lcms}
496         libwebp Support                 ${have_webp}
497         libunwind Support               ${have_libunwind}
498         VA H.264 encoding Support       ${have_libva}
499 ])