Bryce Harrington | 2a52818 | 2017-08-08 11:46:14 -0700 | [diff] [blame] | 1 | m4_define([weston_major_version], [3]) |
| 2 | m4_define([weston_minor_version], [0]) |
Bryce Harrington | 1b3c05f | 2017-08-08 12:01:55 -0700 | [diff] [blame] | 3 | m4_define([weston_micro_version], [90]) |
Kristian Høgsberg | af4f2aa | 2013-02-15 20:53:20 -0500 | [diff] [blame] | 4 | m4_define([weston_version], |
| 5 | [weston_major_version.weston_minor_version.weston_micro_version]) |
Pekka Paalanen | 080f130 | 2017-03-14 12:14:51 +0200 | [diff] [blame] | 6 | m4_define([libweston_major_version], [3]) |
Armin Krezović | a01ab6d | 2016-09-30 14:11:02 +0200 | [diff] [blame] | 7 | m4_define([libweston_minor_version], [0]) |
Pekka Paalanen | 94e664d | 2017-08-11 10:44:57 +0300 | [diff] [blame] | 8 | m4_define([libweston_patch_version], [90]) |
Kristian Høgsberg | af4f2aa | 2013-02-15 20:53:20 -0500 | [diff] [blame] | 9 | |
Javier Jardón | 5b7e43a | 2010-11-06 01:55:27 +0100 | [diff] [blame] | 10 | AC_PREREQ([2.64]) |
Kristian Høgsberg | a7313e7 | 2012-02-08 16:35:12 -0500 | [diff] [blame] | 11 | AC_INIT([weston], |
Kristian Høgsberg | af4f2aa | 2013-02-15 20:53:20 -0500 | [diff] [blame] | 12 | [weston_version], |
| 13 | [https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=weston&version=weston_version], |
Kristian Høgsberg | a7313e7 | 2012-02-08 16:35:12 -0500 | [diff] [blame] | 14 | [weston], |
Daniel Stone | 32d9ea1 | 2014-10-08 12:15:48 +0100 | [diff] [blame] | 15 | [http://wayland.freedesktop.org]) |
Javier Jardón | 5b7e43a | 2010-11-06 01:55:27 +0100 | [diff] [blame] | 16 | |
Bryce Harrington | a08dff5 | 2016-09-20 12:22:46 -0700 | [diff] [blame] | 17 | WAYLAND_PREREQ_VERSION="1.12.0" |
Bryce Harrington | 46f1f05 | 2016-05-11 13:18:59 -0700 | [diff] [blame] | 18 | |
Kristian Høgsberg | af4f2aa | 2013-02-15 20:53:20 -0500 | [diff] [blame] | 19 | AC_SUBST([WESTON_VERSION_MAJOR], [weston_major_version]) |
| 20 | AC_SUBST([WESTON_VERSION_MINOR], [weston_minor_version]) |
| 21 | AC_SUBST([WESTON_VERSION_MICRO], [weston_micro_version]) |
| 22 | AC_SUBST([WESTON_VERSION], [weston_version]) |
Emil Velikov | 7fe47f3 | 2016-07-22 14:51:51 +0100 | [diff] [blame] | 23 | AC_SUBST([LIBWESTON_MAJOR], [libweston_major_version]) |
| 24 | # We use minor as current and age since on ABI/API break/removal we bump major |
| 25 | # so minor will be reset to 0. |
| 26 | m4_define([lt_current], [libweston_minor_version]) |
| 27 | m4_define([lt_revision], [libweston_patch_version]) |
| 28 | m4_define([lt_age], [libweston_minor_version]) |
| 29 | AC_SUBST([LT_VERSION_INFO], [lt_current:lt_revision:lt_age]) |
Kristian Høgsberg | af4f2aa | 2013-02-15 20:53:20 -0500 | [diff] [blame] | 30 | |
Guillem Jover | dff63a2 | 2014-02-01 18:48:43 +0100 | [diff] [blame] | 31 | AC_CONFIG_AUX_DIR([build-aux]) |
Kristian Høgsberg | d0c3b9d | 2010-10-25 11:40:03 -0400 | [diff] [blame] | 32 | AC_CONFIG_HEADERS([config.h]) |
Thierry Reding | 0e6d9a7 | 2014-05-27 09:07:54 +0200 | [diff] [blame] | 33 | AC_CONFIG_MACRO_DIR([m4]) |
Javier Jardón | 5b7e43a | 2010-11-06 01:55:27 +0100 | [diff] [blame] | 34 | |
Daniel Stone | c228e23 | 2013-05-22 18:03:19 +0300 | [diff] [blame] | 35 | AC_USE_SYSTEM_EXTENSIONS |
Kristian Høgsberg | 7e105f9 | 2013-08-21 15:44:57 -0700 | [diff] [blame] | 36 | AC_SYS_LARGEFILE |
Daniel Stone | c228e23 | 2013-05-22 18:03:19 +0300 | [diff] [blame] | 37 | |
Kristian Høgsberg | 396a9bb | 2014-01-31 23:49:33 -0800 | [diff] [blame] | 38 | AM_INIT_AUTOMAKE([1.11 parallel-tests foreign no-dist-gzip dist-xz color-tests subdir-objects]) |
Javier Jardón | 5b7e43a | 2010-11-06 01:55:27 +0100 | [diff] [blame] | 39 | |
Kristian Høgsberg | f0152da | 2010-10-12 17:24:20 -0400 | [diff] [blame] | 40 | AM_SILENT_RULES([yes]) |
Kristian Høgsberg | d4de54e | 2008-12-04 22:48:50 -0500 | [diff] [blame] | 41 | |
Pekka Paalanen | b40b827 | 2016-08-15 14:06:15 +0300 | [diff] [blame] | 42 | # Check Weston and libweston version consistency |
| 43 | m4_if(m4_cmp(weston_micro_version, [90]), [-1], |
| 44 | [ |
| 45 | dnl micro < 90 |
| 46 | dnl A final or stable release, not a pre-release: |
| 47 | dnl Weston and libweston versions must match. |
| 48 | m4_if(weston_version, libweston_major_version[.]libweston_minor_version[.]libweston_patch_version, |
| 49 | [], |
| 50 | [AC_MSG_ERROR([Weston and libweston version mismatch for a final release])]) |
| 51 | ], |
| 52 | [ |
| 53 | dnl A pre-release: |
| 54 | dnl libweston must be equal or greater than weston. |
| 55 | m4_case(m4_list_cmp([weston_major_version, weston_minor_version, weston_micro_version], |
| 56 | [libweston_major_version, libweston_minor_version, libweston_patch_version]), |
| 57 | [-1], [ |
| 58 | dnl weston < libweston |
| 59 | dnl libweston must be weston_major+1.0.0 |
| 60 | m4_if(m4_eval(weston_major_version+1)[.0.0], |
| 61 | libweston_major_version[.]libweston_minor_version[.]libweston_patch_version, |
| 62 | [], |
| 63 | [AC_MSG_ERROR([libweston version is greater but not (weston_major+1).0.0])]) |
| 64 | ], |
| 65 | [0], [ |
| 66 | dnl weston == libweston, all ok |
| 67 | ], |
| 68 | [1], [ |
| 69 | dnl weston > libweston, wrong |
| 70 | AC_MSG_ERROR([Weston version is greater than libweston.]) |
| 71 | ]) |
| 72 | ]) |
| 73 | |
Javier Jardón | 5b7e43a | 2010-11-06 01:55:27 +0100 | [diff] [blame] | 74 | # Check for programs |
| 75 | AC_PROG_CC |
Pekka Paalanen | a91291c | 2012-08-29 15:49:48 +0300 | [diff] [blame] | 76 | AC_PROG_SED |
Javier Jardón | 5b7e43a | 2010-11-06 01:55:27 +0100 | [diff] [blame] | 77 | |
Kristian Høgsberg | 02ec0a5 | 2011-04-23 13:04:11 -0400 | [diff] [blame] | 78 | # Initialize libtool |
| 79 | LT_PREREQ([2.2]) |
Kristian Høgsberg | 1c56218 | 2011-05-02 22:09:20 -0400 | [diff] [blame] | 80 | LT_INIT([disable-static]) |
Kristian Høgsberg | 02ec0a5 | 2011-04-23 13:04:11 -0400 | [diff] [blame] | 81 | |
Pekka Paalanen | a51e6fa | 2012-11-07 12:25:12 +0200 | [diff] [blame] | 82 | AC_ARG_VAR([WESTON_NATIVE_BACKEND], |
| 83 | [Set the native backend to use, if Weston is not running under Wayland nor X11. @<:@default=drm-backend.so@:>@]) |
Emilio Pozuelo Monfort | 8a81b83 | 2013-12-02 12:53:32 +0100 | [diff] [blame] | 84 | AC_ARG_VAR([WESTON_SHELL_CLIENT], |
| 85 | [Set the default desktop shell client to load if none is specified in weston.ini. @<:@default=weston-desktop-shell@:>@]) |
Pekka Paalanen | a51e6fa | 2012-11-07 12:25:12 +0200 | [diff] [blame] | 86 | |
Kristian Høgsberg | d4de54e | 2008-12-04 22:48:50 -0500 | [diff] [blame] | 87 | PKG_PROG_PKG_CONFIG() |
Kristian Høgsberg | d4de54e | 2008-12-04 22:48:50 -0500 | [diff] [blame] | 88 | |
Arnaud Vrac | d6d97da | 2017-08-05 13:58:59 +0200 | [diff] [blame] | 89 | # Check for dlsym instead of dlopen because ASAN hijacks the latter |
| 90 | WESTON_SEARCH_LIBS([DL], [dl], [dlsym]) |
Kristian Høgsberg | 02ec0a5 | 2011-04-23 13:04:11 -0400 | [diff] [blame] | 91 | |
Yann E. MORIN | b51e6ed | 2016-12-19 18:20:09 +0100 | [diff] [blame] | 92 | # In old glibc versions (< 2.17) clock_gettime() and clock_getres() are in librt |
Quentin Glidic | 9992bdc | 2016-04-23 12:02:58 +0200 | [diff] [blame] | 93 | WESTON_SEARCH_LIBS([CLOCK_GETTIME], [rt], [clock_gettime]) |
Yann E. MORIN | b51e6ed | 2016-12-19 18:20:09 +0100 | [diff] [blame] | 94 | WESTON_SEARCH_LIBS([CLOCK_GETRES], [rt], [clock_getres]) |
Gustavo Zacarias | 34d5985 | 2016-04-21 11:18:48 -0300 | [diff] [blame] | 95 | |
Rob Bradford | 5a4cea9 | 2013-06-04 13:23:01 +0100 | [diff] [blame] | 96 | AC_CHECK_DECL(SFD_CLOEXEC,[], |
| 97 | [AC_MSG_ERROR("SFD_CLOEXEC is needed to compile weston")], |
| 98 | [[#include <sys/signalfd.h>]]) |
| 99 | AC_CHECK_DECL(TFD_CLOEXEC,[], |
| 100 | [AC_MSG_ERROR("TFD_CLOEXEC is needed to compile weston")], |
| 101 | [[#include <sys/timerfd.h>]]) |
| 102 | AC_CHECK_DECL(CLOCK_MONOTONIC,[], |
| 103 | [AC_MSG_ERROR("CLOCK_MONOTONIC is needed to compile weston")], |
| 104 | [[#include <time.h>]]) |
Pekka Paalanen | 200019c | 2012-05-30 15:53:42 +0300 | [diff] [blame] | 105 | AC_CHECK_HEADERS([execinfo.h]) |
| 106 | |
Pekka Paalanen | 5b4ddbc | 2013-11-29 17:48:51 +0200 | [diff] [blame] | 107 | AC_CHECK_FUNCS([mkostemp strchrnul initgroups posix_fallocate]) |
Pekka Paalanen | 1da1b8f | 2012-06-06 16:59:43 +0300 | [diff] [blame] | 108 | |
Pekka Paalanen | b030897 | 2017-04-06 14:06:20 +0300 | [diff] [blame] | 109 | # check for libdrm as a build-time dependency only |
| 110 | # libdrm 2.4.30 introduced drm_fourcc.h. |
| 111 | PKG_CHECK_MODULES(LIBDRM, [libdrm >= 2.4.30], [], [AC_MSG_ERROR([ |
| 112 | libdrm is a hard build-time dependency for libweston core, |
| 113 | but a sufficient version was not found. However, libdrm |
| 114 | is not a runtime dependency unless you have features |
| 115 | enabled that require it.])]) |
| 116 | |
Bryce Harrington | 46f1f05 | 2016-05-11 13:18:59 -0700 | [diff] [blame] | 117 | COMPOSITOR_MODULES="wayland-server >= $WAYLAND_PREREQ_VERSION pixman-1 >= 0.25.2" |
Kristian Høgsberg | 08c40c3 | 2011-01-11 13:48:03 -0500 | [diff] [blame] | 118 | |
Jon A. Cruz | 179c186 | 2015-07-15 19:22:43 -0700 | [diff] [blame] | 119 | AC_CONFIG_FILES([doc/doxygen/tools.doxygen doc/doxygen/tooldev.doxygen]) |
| 120 | |
| 121 | AC_ARG_ENABLE(devdocs, |
| 122 | AS_HELP_STRING([--disable-devdocs], |
| 123 | [do not enable building of developer documentation]),, |
| 124 | enable_devdocs=auto) |
| 125 | if test "x$enable_devdocs" != "xno"; then |
| 126 | AC_CHECK_PROGS([DOXYGEN], [doxygen]) |
| 127 | if test "x$DOXYGEN" = "x" -a "x$enable_devdocs" = "xyes"; then |
| 128 | AC_MSG_ERROR([Developer documentation explicitly requested, but Doxygen couldn't be found]) |
| 129 | fi |
| 130 | if test "x$DOXYGEN" != "x"; then |
| 131 | enable_devdocs=yes |
| 132 | else |
| 133 | enable_devdocs=no |
| 134 | fi |
| 135 | fi |
| 136 | AM_CONDITIONAL(ENABLE_DEVDOCS, test "x$enable_devdocs" = "xyes") |
| 137 | |
Kristian Høgsberg | f82a806 | 2013-01-09 13:36:39 -0500 | [diff] [blame] | 138 | AC_ARG_ENABLE(egl, [ --disable-egl],, |
Vasily Khoruzhick | 1bfe2e6 | 2013-01-08 19:09:02 +0300 | [diff] [blame] | 139 | enable_egl=yes) |
| 140 | AM_CONDITIONAL(ENABLE_EGL, test x$enable_egl = xyes) |
| 141 | if test x$enable_egl = xyes; then |
| 142 | AC_DEFINE([ENABLE_EGL], [1], [Build Weston with EGL support]) |
Ucan, Emre (ADITG/SW1) | 7d967da | 2015-11-18 10:23:50 +0000 | [diff] [blame] | 143 | PKG_CHECK_MODULES(EGL, [egl glesv2]) |
| 144 | PKG_CHECK_MODULES([EGL_TESTS], [egl glesv2 wayland-client wayland-egl]) |
Alexandros Frantzis | e39eb8f | 2017-09-27 15:09:15 +0300 | [diff] [blame] | 145 | AC_CHECK_HEADERS([linux/sync_file.h]) |
Vasily Khoruzhick | 1bfe2e6 | 2013-01-08 19:09:02 +0300 | [diff] [blame] | 146 | fi |
| 147 | |
Derek Foreman | 185d158 | 2017-06-28 11:17:23 -0500 | [diff] [blame] | 148 | COMPOSITOR_MODULES="$COMPOSITOR_MODULES xkbcommon >= 0.3.0" |
| 149 | |
| 150 | PKG_CHECK_MODULES(XKBCOMMON_COMPOSE, [xkbcommon >= 0.5.0], |
| 151 | [AC_DEFINE(HAVE_XKBCOMMON_COMPOSE, 1, |
| 152 | [Define if xkbcommon is 0.5.0 or newer])],true) |
Rob Bradford | 382ff46 | 2013-06-24 16:52:45 +0100 | [diff] [blame] | 153 | |
Kristian Høgsberg | 44d4de6 | 2012-01-19 13:32:17 -0500 | [diff] [blame] | 154 | AC_ARG_ENABLE(setuid-install, [ --enable-setuid-install],, |
| 155 | enable_setuid_install=yes) |
Eric Anholt | 6f82cf5 | 2012-02-09 08:36:03 -0800 | [diff] [blame] | 156 | AM_CONDITIONAL(ENABLE_SETUID_INSTALL, test x$enable_setuid_install = xyes) |
Kristian Høgsberg | 44d4de6 | 2012-01-19 13:32:17 -0500 | [diff] [blame] | 157 | |
| 158 | |
Tiago Vignatti | 629ce23 | 2012-05-23 23:04:14 +0300 | [diff] [blame] | 159 | AC_ARG_ENABLE(xwayland, [ --enable-xwayland],, |
| 160 | enable_xwayland=yes) |
Quentin Glidic | bb41005 | 2013-02-18 20:38:22 +0100 | [diff] [blame] | 161 | AC_ARG_ENABLE(xwayland-test, [ --enable-xwayland-test],, |
| 162 | enable_xwayland_test=yes) |
Tiago Vignatti | 629ce23 | 2012-05-23 23:04:14 +0300 | [diff] [blame] | 163 | AM_CONDITIONAL(ENABLE_XWAYLAND, test x$enable_xwayland = xyes) |
Quentin Glidic | bb41005 | 2013-02-18 20:38:22 +0100 | [diff] [blame] | 164 | AM_CONDITIONAL(ENABLE_XWAYLAND_TEST, test x$enable_xwayland = xyes -a x$enable_xwayland_test = xyes) |
Tiago Vignatti | 629ce23 | 2012-05-23 23:04:14 +0300 | [diff] [blame] | 165 | if test x$enable_xwayland = xyes; then |
Kristian Høgsberg | bcfd07b | 2013-10-11 16:48:19 -0700 | [diff] [blame] | 166 | PKG_CHECK_MODULES([XWAYLAND], xcb xcb-xfixes xcb-composite xcursor cairo-xcb) |
Tiago Vignatti | 629ce23 | 2012-05-23 23:04:14 +0300 | [diff] [blame] | 167 | AC_DEFINE([BUILD_XWAYLAND], [1], [Build the X server launcher]) |
Tiago Vignatti | 5884bcd | 2011-08-03 12:12:31 +0300 | [diff] [blame] | 168 | |
| 169 | AC_ARG_WITH(xserver-path, AS_HELP_STRING([--with-xserver-path=PATH], |
| 170 | [Path to X server]), [XSERVER_PATH="$withval"], |
Derek Foreman | 1f9d4f9 | 2015-02-09 09:57:28 -0600 | [diff] [blame] | 171 | [XSERVER_PATH="/usr/bin/Xwayland"]) |
Tiago Vignatti | 5884bcd | 2011-08-03 12:12:31 +0300 | [diff] [blame] | 172 | AC_SUBST([XSERVER_PATH]) |
Quentin Glidic | bb41005 | 2013-02-18 20:38:22 +0100 | [diff] [blame] | 173 | if test x$enable_xwayland_test = xyes; then |
Derek Foreman | 8771a14 | 2015-01-29 16:44:55 -0600 | [diff] [blame] | 174 | PKG_CHECK_MODULES([XWAYLAND_TEST], x11) |
Quentin Glidic | bb41005 | 2013-02-18 20:38:22 +0100 | [diff] [blame] | 175 | fi |
Kristian Høgsberg | 5ec0a93 | 2011-07-01 10:46:40 -0400 | [diff] [blame] | 176 | fi |
| 177 | |
Kristian Høgsberg | a941022 | 2011-01-14 17:22:35 -0500 | [diff] [blame] | 178 | AC_ARG_ENABLE(x11-compositor, [ --enable-x11-compositor],, |
| 179 | enable_x11_compositor=yes) |
Eric Anholt | 6f82cf5 | 2012-02-09 08:36:03 -0800 | [diff] [blame] | 180 | AM_CONDITIONAL(ENABLE_X11_COMPOSITOR, test x$enable_x11_compositor = xyes) |
Emmanuel Gil Peyrot | 226408d | 2016-12-04 21:34:56 +0000 | [diff] [blame] | 181 | have_xcb_xkb=no |
Eric Anholt | 6f82cf5 | 2012-02-09 08:36:03 -0800 | [diff] [blame] | 182 | if test x$enable_x11_compositor = xyes; then |
Daniel Stone | f86e67d | 2016-11-29 12:03:35 +0000 | [diff] [blame] | 183 | PKG_CHECK_MODULES([XCB], xcb >= 1.8) |
Damien Lespiau | b5bae34 | 2013-03-28 15:20:54 +0000 | [diff] [blame] | 184 | X11_COMPOSITOR_MODULES="x11 x11-xcb xcb-shm" |
Daniel Stone | 62b33b6 | 2012-06-22 13:21:35 +0100 | [diff] [blame] | 185 | |
Daniel Stone | f86e67d | 2016-11-29 12:03:35 +0000 | [diff] [blame] | 186 | PKG_CHECK_MODULES(X11_COMPOSITOR_XKB, [xcb-xkb >= 1.9], |
Daniel Stone | 62b33b6 | 2012-06-22 13:21:35 +0100 | [diff] [blame] | 187 | [have_xcb_xkb="yes"], [have_xcb_xkb="no"]) |
| 188 | if test "x$have_xcb_xkb" = xyes; then |
Daniel Stone | 62b33b6 | 2012-06-22 13:21:35 +0100 | [diff] [blame] | 189 | X11_COMPOSITOR_MODULES="$X11_COMPOSITOR_MODULES xcb-xkb" |
| 190 | AC_DEFINE([HAVE_XCB_XKB], [1], [libxcb supports XKB protocol]) |
| 191 | fi |
| 192 | |
| 193 | PKG_CHECK_MODULES(X11_COMPOSITOR, [$X11_COMPOSITOR_MODULES]) |
Kristian Høgsberg | a941022 | 2011-01-14 17:22:35 -0500 | [diff] [blame] | 194 | AC_DEFINE([BUILD_X11_COMPOSITOR], [1], [Build the X11 compositor]) |
| 195 | fi |
| 196 | |
| 197 | |
Kristian Høgsberg | 7d498b4 | 2011-01-23 13:50:42 -0500 | [diff] [blame] | 198 | AC_ARG_ENABLE(drm-compositor, [ --enable-drm-compositor],, |
| 199 | enable_drm_compositor=yes) |
Kristian Høgsberg | 02b36f3 | 2013-11-24 14:45:23 -0800 | [diff] [blame] | 200 | AM_CONDITIONAL(ENABLE_DRM_COMPOSITOR, test x$enable_drm_compositor = xyes) |
| 201 | if test x$enable_drm_compositor = xyes; then |
Kristian Høgsberg | a941022 | 2011-01-14 17:22:35 -0500 | [diff] [blame] | 202 | AC_DEFINE([BUILD_DRM_COMPOSITOR], [1], [Build the DRM compositor]) |
Arnaud Vrac | 167bbb6 | 2017-08-05 13:59:00 +0200 | [diff] [blame] | 203 | PKG_CHECK_MODULES(DRM_COMPOSITOR, [libudev >= 136 libdrm >= 2.4.30 gbm]) |
Bryce Harrington | a358207 | 2015-08-14 12:23:13 -0700 | [diff] [blame] | 204 | PKG_CHECK_MODULES(DRM_COMPOSITOR_GBM, [gbm >= 10.2], |
| 205 | [AC_DEFINE([HAVE_GBM_FD_IMPORT], 1, [gbm supports dmabuf import])], |
| 206 | [AC_MSG_WARN([gbm does not support dmabuf import, will omit that capability])]) |
Kristian Høgsberg | a941022 | 2011-01-14 17:22:35 -0500 | [diff] [blame] | 207 | fi |
| 208 | |
Jonas Ådahl | e0de3c2 | 2014-03-12 22:08:42 +0100 | [diff] [blame] | 209 | |
Jonas Ådahl | faec1eb | 2015-01-15 14:45:56 +0800 | [diff] [blame] | 210 | PKG_CHECK_MODULES(LIBINPUT_BACKEND, [libinput >= 0.8.0]) |
Ander Conselvan de Oliveira | 70e2e68 | 2013-10-14 15:57:10 +0300 | [diff] [blame] | 211 | PKG_CHECK_MODULES(COMPOSITOR, [$COMPOSITOR_MODULES]) |
Kristian Høgsberg | a941022 | 2011-01-14 17:22:35 -0500 | [diff] [blame] | 212 | |
Varad Gautam | 65c94b8 | 2017-04-26 19:15:59 +0530 | [diff] [blame] | 213 | PKG_CHECK_MODULES(WAYLAND_PROTOCOLS, [wayland-protocols >= 1.8], |
Jonas Ådahl | 496adb3 | 2015-11-17 16:00:27 +0800 | [diff] [blame] | 214 | [ac_wayland_protocols_pkgdatadir=`$PKG_CONFIG --variable=pkgdatadir wayland-protocols`]) |
| 215 | AC_SUBST(WAYLAND_PROTOCOLS_DATADIR, $ac_wayland_protocols_pkgdatadir) |
| 216 | |
Kristian Høgsberg | 7d498b4 | 2011-01-23 13:50:42 -0500 | [diff] [blame] | 217 | AC_ARG_ENABLE(wayland-compositor, [ --enable-wayland-compositor],, |
| 218 | enable_wayland_compositor=yes) |
Kristian Høgsberg | a941022 | 2011-01-14 17:22:35 -0500 | [diff] [blame] | 219 | AM_CONDITIONAL(ENABLE_WAYLAND_COMPOSITOR, |
Armin Krezović | b08e1a5 | 2016-12-09 22:58:27 +0100 | [diff] [blame] | 220 | test x$enable_wayland_compositor = xyes) |
| 221 | if test x$enable_wayland_compositor = xyes; then |
Kristian Høgsberg | a941022 | 2011-01-14 17:22:35 -0500 | [diff] [blame] | 222 | AC_DEFINE([BUILD_WAYLAND_COMPOSITOR], [1], |
| 223 | [Build the Wayland (nested) compositor]) |
Armin Krezović | b08e1a5 | 2016-12-09 22:58:27 +0100 | [diff] [blame] | 224 | PKG_CHECK_MODULES(WAYLAND_COMPOSITOR, [wayland-client >= $WAYLAND_PREREQ_VERSION wayland-cursor]) |
| 225 | if test x$enable_egl = xyes; then |
| 226 | PKG_CHECK_MODULES(WAYLAND_COMPOSITOR_EGL, [wayland-egl]) |
| 227 | fi |
Kristian Høgsberg | a941022 | 2011-01-14 17:22:35 -0500 | [diff] [blame] | 228 | fi |
| 229 | |
Pekka Paalanen | 3ae50bb | 2012-05-30 15:53:45 +0300 | [diff] [blame] | 230 | |
Ander Conselvan de Oliveira | 11f8d40 | 2012-10-29 18:19:24 +0200 | [diff] [blame] | 231 | AC_ARG_ENABLE(headless-compositor, [ --enable-headless-compositor],, |
| 232 | enable_headless_compositor=yes) |
| 233 | AM_CONDITIONAL(ENABLE_HEADLESS_COMPOSITOR, |
| 234 | test x$enable_headless_compositor = xyes) |
Bryce Harrington | 19c8db9 | 2014-11-19 15:06:16 -0800 | [diff] [blame] | 235 | if test x$enable_headless_compositor = xyes; then |
| 236 | AC_DEFINE([BUILD_HEADLESS_COMPOSITOR], [1], [Build the headless compositor]) |
| 237 | fi |
Ander Conselvan de Oliveira | 11f8d40 | 2012-10-29 18:19:24 +0200 | [diff] [blame] | 238 | |
| 239 | |
Philip Withnall | 4f49917 | 2013-02-02 12:02:32 +0000 | [diff] [blame] | 240 | AC_ARG_ENABLE([fbdev-compositor], [ --enable-fbdev-compositor],, |
| 241 | enable_fbdev_compositor=yes) |
| 242 | AM_CONDITIONAL([ENABLE_FBDEV_COMPOSITOR], |
| 243 | [test x$enable_fbdev_compositor = xyes]) |
| 244 | AS_IF([test x$enable_fbdev_compositor = xyes], [ |
| 245 | AC_DEFINE([BUILD_FBDEV_COMPOSITOR], [1], [Build the fbdev compositor]) |
Arnaud Vrac | 167bbb6 | 2017-08-05 13:59:00 +0200 | [diff] [blame] | 246 | PKG_CHECK_MODULES([FBDEV_COMPOSITOR], [libudev >= 136]) |
Philip Withnall | 4f49917 | 2013-02-02 12:02:32 +0000 | [diff] [blame] | 247 | ]) |
| 248 | |
Hardening | a83409c | 2013-04-01 23:43:58 +0200 | [diff] [blame] | 249 | AC_ARG_ENABLE([rdp-compositor], [ --enable-rdp-compositor],, |
| 250 | enable_rdp_compositor=no) |
| 251 | AM_CONDITIONAL([ENABLE_RDP_COMPOSITOR], |
| 252 | [test x$enable_rdp_compositor = xyes]) |
| 253 | if test x$enable_rdp_compositor = xyes; then |
Hardening | c077a84 | 2013-07-08 00:51:35 +0200 | [diff] [blame] | 254 | AC_DEFINE([BUILD_RDP_COMPOSITOR], [1], [Build the RDP compositor]) |
FORT David | 58b63ab | 2016-05-01 23:32:07 +0200 | [diff] [blame] | 255 | PKG_CHECK_MODULES(RDP_COMPOSITOR, [freerdp2 >= 2.0.0], |
| 256 | [], |
| 257 | [PKG_CHECK_MODULES(RDP_COMPOSITOR, [freerdp >= 1.1.0],[])] |
| 258 | ) |
Hardening | 04633b6 | 2014-01-10 11:33:06 +0100 | [diff] [blame] | 259 | |
| 260 | SAVED_CPPFLAGS="$CPPFLAGS" |
| 261 | CPPFLAGS="$CPPFLAGS $RDP_COMPOSITOR_CFLAGS" |
| 262 | AC_CHECK_HEADERS([freerdp/version.h]) |
| 263 | CPPFLAGS="$SAVED_CPPFLAGS" |
Hardening | a83409c | 2013-04-01 23:43:58 +0200 | [diff] [blame] | 264 | fi |
Philip Withnall | 4f49917 | 2013-02-02 12:02:32 +0000 | [diff] [blame] | 265 | |
Kristian Høgsberg | d33cc73 | 2014-05-09 15:32:02 -0700 | [diff] [blame] | 266 | AC_ARG_ENABLE([screen-sharing], [ --enable-screen-sharing],, |
Jason Ekstrand | 47928d8 | 2014-04-02 19:54:01 -0500 | [diff] [blame] | 267 | enable_screen_sharing=no) |
| 268 | AM_CONDITIONAL([ENABLE_SCREEN_SHARING], |
| 269 | [test x$enable_screen_sharing = xyes]) |
| 270 | if test x$enable_screen_sharing = xyes; then |
| 271 | PKG_CHECK_MODULES(SCREEN_SHARE, [wayland-client]) |
| 272 | |
| 273 | if test x$enable_rdp_compositor != xyes; then |
| 274 | AC_MSG_WARN([The screen-share.so module requires the RDP backend.]) |
| 275 | fi |
| 276 | fi |
| 277 | |
Rob Bradford | 4c1a9bc | 2013-08-09 16:52:46 +0100 | [diff] [blame] | 278 | AC_ARG_WITH(cairo, |
| 279 | AS_HELP_STRING([--with-cairo=@<:@image|gl|glesv2@:>@] |
| 280 | [Which Cairo renderer to use for the clients]), |
| 281 | [],[with_cairo="image"]) |
| 282 | |
| 283 | if test "x$with_cairo" = "ximage"; then |
| 284 | cairo_modules="cairo" |
| 285 | else |
| 286 | if test "x$with_cairo" = "xgl"; then |
| 287 | cairo_modules="cairo-gl" |
Bryce Harrington | 42db313 | 2015-05-19 13:24:37 -0700 | [diff] [blame] | 288 | AC_MSG_WARN([The --with-cairo=gl option can cause increased resource usage and potential instability, and thus is not recommended. It is needed only for a few special demo programs.]) |
Rob Bradford | 4c1a9bc | 2013-08-09 16:52:46 +0100 | [diff] [blame] | 289 | else |
| 290 | if test "x$with_cairo" = "xglesv2"; then |
| 291 | cairo_modules="cairo-glesv2" |
Bryce Harrington | 42db313 | 2015-05-19 13:24:37 -0700 | [diff] [blame] | 292 | AC_MSG_WARN([The --with-cairo=gles2 option can cause increased resource usage and potential instability, and thus is not recommended. It is needed only for a few special demo programs.]) |
Rob Bradford | 4c1a9bc | 2013-08-09 16:52:46 +0100 | [diff] [blame] | 293 | else |
| 294 | AC_ERROR([Unknown cairo renderer requested]) |
| 295 | fi |
| 296 | fi |
| 297 | fi |
| 298 | |
| 299 | # Included for legacy compat |
Pekka Paalanen | de7fe62 | 2012-10-16 17:27:18 +0300 | [diff] [blame] | 300 | AC_ARG_WITH(cairo-glesv2, |
| 301 | AS_HELP_STRING([--with-cairo-glesv2], |
Rob Bradford | 4c1a9bc | 2013-08-09 16:52:46 +0100 | [diff] [blame] | 302 | [Use GLESv2 cairo])) |
Pekka Paalanen | de7fe62 | 2012-10-16 17:27:18 +0300 | [diff] [blame] | 303 | if test "x$with_cairo_glesv2" = "xyes"; then |
| 304 | cairo_modules="cairo-glesv2" |
Armin K | 0a8461b | 2013-08-14 03:13:53 +0200 | [diff] [blame] | 305 | with_cairo="glesv2" |
Rob Bradford | 4c1a9bc | 2013-08-09 16:52:46 +0100 | [diff] [blame] | 306 | fi |
| 307 | |
| 308 | if test "x$cairo_modules" = "xcairo-glesv2"; then |
| 309 | AC_DEFINE([USE_CAIRO_GLESV2], [1], [Use the GLESv2 GL cairo backend]) |
Kristian Høgsberg | 2d57439 | 2012-01-18 14:50:58 -0500 | [diff] [blame] | 310 | fi |
| 311 | |
Kristian Høgsberg | f02a649 | 2012-03-12 01:05:25 -0400 | [diff] [blame] | 312 | PKG_CHECK_MODULES(PIXMAN, [pixman-1]) |
| 313 | PKG_CHECK_MODULES(PNG, [libpng]) |
Emmanuel Gil Peyrot | 58b7a15 | 2016-02-16 01:57:51 +0000 | [diff] [blame] | 314 | |
Emmanuel Gil Peyrot | 66e1614 | 2016-02-16 01:57:52 +0000 | [diff] [blame] | 315 | AC_ARG_WITH([jpeg], |
| 316 | AS_HELP_STRING([--without-jpeg], |
| 317 | [Use jpeglib for JPEG decoding support [default=auto]])) |
| 318 | AS_IF([test "x$with_jpeg" != "xno"], |
Quentin Glidic | 9992bdc | 2016-04-23 12:02:58 +0200 | [diff] [blame] | 319 | [WESTON_SEARCH_LIBS([JPEG], [jpeg], [jpeg_CreateDecompress], [have_jpeglib=yes], [have_jpeglib=no])], |
Emmanuel Gil Peyrot | 66e1614 | 2016-02-16 01:57:52 +0000 | [diff] [blame] | 320 | [have_jpeglib=no]) |
| 321 | AS_IF([test "x$have_jpeglib" = "xyes"], |
Quentin Glidic | 9992bdc | 2016-04-23 12:02:58 +0200 | [diff] [blame] | 322 | [AC_DEFINE([HAVE_JPEG], [1], [Have jpeglib])], |
Emmanuel Gil Peyrot | 66e1614 | 2016-02-16 01:57:52 +0000 | [diff] [blame] | 323 | [AS_IF([test "x$with_jpeg" = "xyes"], |
| 324 | [AC_MSG_ERROR([JPEG support explicitly requested, but jpeglib couldn't be found])])]) |
| 325 | |
Emmanuel Gil Peyrot | 58b7a15 | 2016-02-16 01:57:51 +0000 | [diff] [blame] | 326 | AC_ARG_WITH([webp], |
| 327 | AS_HELP_STRING([--without-webp], |
| 328 | [Use libwebp for WebP decoding support [default=auto]])) |
| 329 | AS_IF([test "x$with_webp" != "xno"], |
| 330 | [PKG_CHECK_MODULES(WEBP, [libwebp], [have_webp=yes], [have_webp=no])], |
| 331 | [have_webp=no]) |
Kristian Høgsberg | f02a649 | 2012-03-12 01:05:25 -0400 | [diff] [blame] | 332 | AS_IF([test "x$have_webp" = "xyes"], |
Emmanuel Gil Peyrot | 58b7a15 | 2016-02-16 01:57:51 +0000 | [diff] [blame] | 333 | [AC_DEFINE([HAVE_WEBP], [1], [Have webp])], |
| 334 | [AS_IF([test "x$with_webp" = "xyes"], |
| 335 | [AC_MSG_ERROR([WebP support explicitly requested, but libwebp couldn't be found])])]) |
Kristian Høgsberg | 5a315bc | 2012-05-15 22:33:43 -0400 | [diff] [blame] | 336 | |
Kristian Høgsberg | 0eac34a | 2013-08-30 14:28:22 -0700 | [diff] [blame] | 337 | AC_ARG_ENABLE(vaapi-recorder, [ --enable-vaapi-recorder],, |
| 338 | enable_vaapi_recorder=auto) |
Emmanuel Gil Peyrot | 226408d | 2016-12-04 21:34:56 +0000 | [diff] [blame] | 339 | have_libva=no |
Kristian Høgsberg | 0eac34a | 2013-08-30 14:28:22 -0700 | [diff] [blame] | 340 | if test x$enable_vaapi_recorder != xno; then |
| 341 | PKG_CHECK_MODULES(LIBVA, [libva >= 0.34.0 libva-drm >= 0.34.0], |
| 342 | [have_libva=yes], [have_libva=no]) |
| 343 | if test "x$have_libva" = "xno" -a "x$enable_vaapi_recorder" = "xyes"; then |
| 344 | AC_MSG_ERROR([vaapi-recorder explicitly enabled, but libva couldn't be found]) |
Kristian Høgsberg | 0eac34a | 2013-08-30 14:28:22 -0700 | [diff] [blame] | 345 | fi |
Kristian Høgsberg | 1f7ce6e | 2013-09-03 22:46:02 -0700 | [diff] [blame] | 346 | AS_IF([test "x$have_libva" = "xyes"], |
| 347 | [AC_DEFINE([BUILD_VAAPI_RECORDER], [1], [Build the vaapi recorder])]) |
Kristian Høgsberg | 0eac34a | 2013-08-30 14:28:22 -0700 | [diff] [blame] | 348 | fi |
Kristian Høgsberg | 1f7ce6e | 2013-09-03 22:46:02 -0700 | [diff] [blame] | 349 | AM_CONDITIONAL(ENABLE_VAAPI_RECORDER, test "x$have_libva" = xyes) |
Kristian Høgsberg | 0eac34a | 2013-08-30 14:28:22 -0700 | [diff] [blame] | 350 | |
Tiago Vignatti | 4f238a5 | 2012-07-31 15:47:48 +0300 | [diff] [blame] | 351 | PKG_CHECK_MODULES(CAIRO, [cairo]) |
Kristian Høgsberg | f02a649 | 2012-03-12 01:05:25 -0400 | [diff] [blame] | 352 | |
Pekka Paalanen | 924cd94 | 2016-05-20 17:25:38 +0300 | [diff] [blame] | 353 | PKG_CHECK_MODULES(TEST_CLIENT, [wayland-client >= $WAYLAND_PREREQ_VERSION pixman-1]) |
Kristian Høgsberg | 8e293a5 | 2013-11-23 12:40:34 -0800 | [diff] [blame] | 354 | |
Pekka Paalanen | 5f8a67c | 2012-10-16 17:27:20 +0300 | [diff] [blame] | 355 | AC_ARG_ENABLE(simple-clients, |
| 356 | AS_HELP_STRING([--disable-simple-clients], |
| 357 | [do not build the simple wl_shm clients]),, |
| 358 | enable_simple_clients=yes) |
| 359 | AM_CONDITIONAL(BUILD_SIMPLE_CLIENTS, test "x$enable_simple_clients" = "xyes") |
Eric Anholt | 6f82cf5 | 2012-02-09 08:36:03 -0800 | [diff] [blame] | 360 | if test x$enable_simple_clients = xyes; then |
Pekka Paalanen | 5f8a67c | 2012-10-16 17:27:20 +0300 | [diff] [blame] | 361 | PKG_CHECK_MODULES(SIMPLE_CLIENT, [wayland-client]) |
| 362 | fi |
| 363 | |
| 364 | AC_ARG_ENABLE(simple-egl-clients, |
| 365 | AS_HELP_STRING([--disable-simple-egl-clients], |
| 366 | [do not build the simple EGL clients]),, |
Kristian Høgsberg | edb6a3b | 2013-09-03 22:59:17 -0700 | [diff] [blame] | 367 | enable_simple_egl_clients="$enable_egl") |
| 368 | AM_CONDITIONAL(BUILD_SIMPLE_EGL_CLIENTS, test "x$enable_simple_egl_clients" = "xyes") |
| 369 | if test x$enable_simple_egl_clients = xyes; then |
Pekka Paalanen | 5f8a67c | 2012-10-16 17:27:20 +0300 | [diff] [blame] | 370 | PKG_CHECK_MODULES(SIMPLE_EGL_CLIENT, |
Ucan, Emre (ADITG/SW1) | 7d967da | 2015-11-18 10:23:50 +0000 | [diff] [blame] | 371 | [egl glesv2 wayland-client wayland-egl wayland-cursor]) |
Tiago Vignatti | 93165e3 | 2011-07-21 16:35:40 +0300 | [diff] [blame] | 372 | fi |
Kristian Høgsberg | a941022 | 2011-01-14 17:22:35 -0500 | [diff] [blame] | 373 | |
Varad Gautam | f9dec67 | 2016-11-17 17:25:59 +0530 | [diff] [blame] | 374 | AC_ARG_ENABLE(simple-dmabuf-drm-client, |
| 375 | AS_HELP_STRING([--disable-simple-dmabuf-drm-client], |
| 376 | [do not build the simple dmabuf drm client]),, |
| 377 | enable_simple_dmabuf_drm_client="auto") |
| 378 | if ! test "x$enable_simple_dmabuf_drm_client" = "xno"; then |
Varad Gautam | ee58911 | 2016-11-23 14:03:21 +0530 | [diff] [blame] | 379 | PKG_CHECK_MODULES(SIMPLE_DMABUF_DRM_CLIENT, [wayland-client libdrm egl], |
Varad Gautam | f7b3a39 | 2017-04-26 19:17:18 +0530 | [diff] [blame] | 380 | [PKG_CHECK_MODULES(LIBDRM_PLATFORM, [libdrm_freedreno], |
| 381 | AC_DEFINE([HAVE_LIBDRM_FREEDRENO], [1], [Build freedreno dmabuf client]) have_simple_dmabuf_drm_client=freedreno, |
| 382 | [PKG_CHECK_MODULES(LIBDRM_PLATFORM, [libdrm_intel], |
| 383 | AC_DEFINE([HAVE_LIBDRM_INTEL], [1], [Build intel dmabuf client]) have_simple_dmabuf_drm_client=intel, |
| 384 | have_simple_dmabuf_drm_client=unsupported)])], |
| 385 | have_simple_dmabuf_drm_client=unsupported) |
| 386 | |
| 387 | if test "x$have_simple_dmabuf_drm_client" = "xunsupported" -a "x$enable_simple_dmabuf_drm_client" = "xyes"; then |
| 388 | AC_MSG_ERROR([DRM dmabuf client explicitly enabled, but libdrm_intel or libdrm_freedreno not found]) |
Bryce Harrington | cb512c0 | 2015-08-14 12:44:50 -0700 | [diff] [blame] | 389 | fi |
Varad Gautam | f7b3a39 | 2017-04-26 19:17:18 +0530 | [diff] [blame] | 390 | |
| 391 | if test "x$have_simple_dmabuf_drm_client" = "xfreedreno" -o "x$have_simple_dmabuf_drm_client" = "xintel"; then |
| 392 | enable_simple_dmabuf_drm_client="yes" |
| 393 | fi |
George Kiagiadakis | 5386898 | 2014-06-12 16:26:49 +0200 | [diff] [blame] | 394 | fi |
Varad Gautam | f9dec67 | 2016-11-17 17:25:59 +0530 | [diff] [blame] | 395 | AM_CONDITIONAL(BUILD_SIMPLE_DMABUF_DRM_CLIENT, test "x$enable_simple_dmabuf_drm_client" = "xyes") |
George Kiagiadakis | 5386898 | 2014-06-12 16:26:49 +0200 | [diff] [blame] | 396 | |
Emmanuel Gil Peyrot | 5d43af3 | 2016-01-11 19:04:38 +0000 | [diff] [blame] | 397 | AC_ARG_ENABLE(simple-dmabuf-v4l-client, |
| 398 | AS_HELP_STRING([--disable-simple-dmabuf-v4l-client], |
| 399 | [do not build the simple dmabuf v4l client]),, |
| 400 | enable_simple_dmabuf_v4l_client="auto") |
| 401 | if ! test "x$enable_simple_dmabuf_v4l_client" = "xno"; then |
| 402 | PKG_CHECK_MODULES(SIMPLE_DMABUF_V4L_CLIENT, [wayland-client libdrm], |
| 403 | have_simple_dmabuf_v4l_client=yes, have_simple_dmabuf_v4l_client=no) |
| 404 | if test "x$have_simple_dmabuf_v4l_client" = "xno" -a "x$enable_simple_dmabuf_v4l_client" = "xyes"; then |
| 405 | AC_MSG_ERROR([V4L dmabuf client explicitly enabled, but libdrm couldn't be found]) |
| 406 | fi |
| 407 | enable_simple_dmabuf_v4l_client="$have_simple_dmabuf_v4l_client" |
| 408 | fi |
| 409 | AM_CONDITIONAL(BUILD_SIMPLE_DMABUF_V4L_CLIENT, test "x$enable_simple_dmabuf_v4l_client" = "xyes") |
| 410 | |
Kristian Høgsberg | 60c1508 | 2011-04-26 11:47:00 -0400 | [diff] [blame] | 411 | AC_ARG_ENABLE(clients, [ --enable-clients],, enable_clients=yes) |
Eric Anholt | 6f82cf5 | 2012-02-09 08:36:03 -0800 | [diff] [blame] | 412 | AM_CONDITIONAL(BUILD_CLIENTS, test x$enable_clients = xyes) |
Emmanuel Gil Peyrot | 226408d | 2016-12-04 21:34:56 +0000 | [diff] [blame] | 413 | have_cairo_egl=no |
Eric Anholt | 6f82cf5 | 2012-02-09 08:36:03 -0800 | [diff] [blame] | 414 | if test x$enable_clients = xyes; then |
Kristian Høgsberg | 60c1508 | 2011-04-26 11:47:00 -0400 | [diff] [blame] | 415 | AC_DEFINE([BUILD_CLIENTS], [1], [Build the Wayland clients]) |
| 416 | |
Bryce Harrington | 46f1f05 | 2016-05-11 13:18:59 -0700 | [diff] [blame] | 417 | PKG_CHECK_MODULES(CLIENT, [wayland-client >= $WAYLAND_PREREQ_VERSION cairo >= 1.10.0 xkbcommon wayland-cursor]) |
Armin K | a94e285 | 2013-06-04 13:05:22 +0200 | [diff] [blame] | 418 | PKG_CHECK_MODULES(SERVER, [wayland-server]) |
Bryce Harrington | 46f1f05 | 2016-05-11 13:18:59 -0700 | [diff] [blame] | 419 | PKG_CHECK_MODULES(WESTON_INFO, [wayland-client >= $WAYLAND_PREREQ_VERSION]) |
Kristian Høgsberg | 60c1508 | 2011-04-26 11:47:00 -0400 | [diff] [blame] | 420 | |
Rob Bradford | 4c1a9bc | 2013-08-09 16:52:46 +0100 | [diff] [blame] | 421 | # Only check for cairo-egl if a GL or GLES renderer requested |
| 422 | AS_IF([test "x$cairo_modules" = "xcairo-gl" -o "x$cairo_modules" = "xcairo-glesv2"], [ |
Ucan, Emre (ADITG/SW1) | 7d967da | 2015-11-18 10:23:50 +0000 | [diff] [blame] | 423 | PKG_CHECK_MODULES(CAIRO_EGL, [wayland-egl egl cairo-egl >= 1.11.3 $cairo_modules], |
Rob Bradford | 4c1a9bc | 2013-08-09 16:52:46 +0100 | [diff] [blame] | 424 | [have_cairo_egl=yes], [have_cairo_egl=no]) |
| 425 | AS_IF([test "x$have_cairo_egl" = "xyes"], |
| 426 | [AC_DEFINE([HAVE_CAIRO_EGL], [1], [Have cairo-egl])], |
Armin K | 0a8461b | 2013-08-14 03:13:53 +0200 | [diff] [blame] | 427 | [AC_ERROR([cairo-egl not used because $CAIRO_EGL_PKG_ERRORS])])], |
| 428 | [have_cairo_egl=no]) |
Rob Bradford | 4c1a9bc | 2013-08-09 16:52:46 +0100 | [diff] [blame] | 429 | |
Quentin Glidic | db776db | 2016-06-23 21:00:31 +0200 | [diff] [blame] | 430 | PKG_CHECK_MODULES(PANGO, [pangocairo pango glib-2.0 >= 2.36], [have_pango=yes], [have_pango=no]) |
Kristian Høgsberg | 60c1508 | 2011-04-26 11:47:00 -0400 | [diff] [blame] | 431 | fi |
| 432 | |
Louis-Francis Ratté-Boulianne | 6cd1de3 | 2013-05-22 18:03:11 +0300 | [diff] [blame] | 433 | AC_ARG_ENABLE(resize-optimization, |
| 434 | AS_HELP_STRING([--disable-resize-optimization], |
| 435 | [disable resize optimization allocating a big buffer in toytoolkit]),, |
| 436 | enable_resize_optimization=yes) |
| 437 | AS_IF([test "x$enable_resize_optimization" = "xyes"], |
| 438 | [AC_DEFINE([USE_RESIZE_POOL], [1], [Use resize memory pool as a performance optimization])]) |
| 439 | |
Benjamin Franzke | bfeda13 | 2012-01-30 14:04:04 +0100 | [diff] [blame] | 440 | AC_ARG_ENABLE(weston-launch, [ --enable-weston-launch],, enable_weston_launch=yes) |
Murray Calavera | 3123c81 | 2016-09-29 21:24:30 +0100 | [diff] [blame] | 441 | AM_CONDITIONAL(BUILD_WESTON_LAUNCH, test x$enable_weston_launch = xyes) |
| 442 | if test x$enable_weston_launch = xyes; then |
Quentin Glidic | 9992bdc | 2016-04-23 12:02:58 +0200 | [diff] [blame] | 443 | WESTON_SEARCH_LIBS([PAM], [pam], [pam_open_session], [have_pam=yes], [have_pam=no]) |
Murray Calavera | 3123c81 | 2016-09-29 21:24:30 +0100 | [diff] [blame] | 444 | if test x$have_pam = xno; then |
Benjamin Franzke | bfeda13 | 2012-01-30 14:04:04 +0100 | [diff] [blame] | 445 | AC_ERROR([weston-launch requires pam]) |
| 446 | fi |
Benjamin Franzke | bfeda13 | 2012-01-30 14:04:04 +0100 | [diff] [blame] | 447 | fi |
| 448 | |
Jan Arne Petersen | 0a1cf39 | 2013-01-16 21:26:42 +0100 | [diff] [blame] | 449 | AM_CONDITIONAL(HAVE_PANGO, test "x$have_pango" = "xyes") |
| 450 | |
Armin K | a94e285 | 2013-06-04 13:05:22 +0200 | [diff] [blame] | 451 | AM_CONDITIONAL(HAVE_CAIRO_GLESV2, |
| 452 | [test "x$have_cairo_egl" = "xyes" -a "x$cairo_modules" = "xcairo-glesv2" -a "x$enable_egl" = "xyes"]) |
| 453 | |
Pekka Paalanen | 51d2195 | 2012-01-31 16:35:18 +0200 | [diff] [blame] | 454 | AM_CONDITIONAL(BUILD_FULL_GL_CLIENTS, |
Vasily Khoruzhick | 1bfe2e6 | 2013-01-08 19:09:02 +0300 | [diff] [blame] | 455 | test x$cairo_modules = "xcairo-gl" -a "x$have_cairo_egl" = "xyes" -a "x$enable_egl" = "xyes") |
Pekka Paalanen | 51d2195 | 2012-01-31 16:35:18 +0200 | [diff] [blame] | 456 | |
Pekka Paalanen | 7ff7a80 | 2013-04-25 13:57:50 +0300 | [diff] [blame] | 457 | AM_CONDITIONAL(BUILD_SUBSURFACES_CLIENT, |
| 458 | [test '(' "x$have_cairo_egl" != "xyes" -o "x$cairo_modules" = "xcairo-glesv2" ')' -a "x$enable_simple_egl_clients" = "xyes"]) |
| 459 | |
Kristian Høgsberg | 1c56218 | 2011-05-02 22:09:20 -0400 | [diff] [blame] | 460 | AM_CONDITIONAL(ENABLE_DESKTOP_SHELL, true) |
| 461 | |
Jason Ekstrand | 946a948 | 2014-04-02 19:53:47 -0500 | [diff] [blame] | 462 | AC_ARG_ENABLE(fullscreen-shell, |
| 463 | AS_HELP_STRING([--disable-fullscreen-shell], |
| 464 | [do not build fullscreen-shell server plugin]),, |
| 465 | enable_fullscreen_shell=yes) |
| 466 | AM_CONDITIONAL(ENABLE_FULLSCREEN_SHELL, |
| 467 | test "x$enable_fullscreen_shell" = "xyes") |
| 468 | |
Richard Hughes | be7c4dd | 2013-05-11 09:48:22 +0100 | [diff] [blame] | 469 | # CMS modules |
| 470 | AC_ARG_ENABLE(colord, |
| 471 | AS_HELP_STRING([--disable-colord], |
| 472 | [do not build colord CMS support]),, |
Armin K | 49c36c6 | 2013-05-30 15:16:40 +0200 | [diff] [blame] | 473 | enable_colord=auto) |
Emmanuel Gil Peyrot | 226408d | 2016-12-04 21:34:56 +0000 | [diff] [blame] | 474 | have_colord=no |
Armin K | 49c36c6 | 2013-05-30 15:16:40 +0200 | [diff] [blame] | 475 | if test "x$enable_colord" != "xno"; then |
| 476 | PKG_CHECK_MODULES(COLORD, |
| 477 | colord >= 0.1.27, |
| 478 | have_colord=yes, |
| 479 | have_colord=no) |
| 480 | if test "x$have_colord" = "xno" -a "x$enable_colord" = "xyes"; then |
| 481 | AC_MSG_ERROR([colord support explicitly requested, but colord couldn't be found]) |
| 482 | fi |
| 483 | if test "x$have_colord" = "xyes"; then |
| 484 | enable_colord=yes |
| 485 | fi |
Richard Hughes | be7c4dd | 2013-05-11 09:48:22 +0100 | [diff] [blame] | 486 | fi |
Yanko Kaneti | 9b78adf | 2013-07-10 12:01:36 -0400 | [diff] [blame] | 487 | AM_CONDITIONAL(ENABLE_COLORD, test "x$enable_colord" = "xyes") |
Kristian Høgsberg | 61cfa66 | 2012-05-26 13:19:22 -0400 | [diff] [blame] | 488 | |
David Herrmann | 59ab900 | 2013-10-22 00:28:06 +0200 | [diff] [blame] | 489 | # dbus support |
| 490 | AC_ARG_ENABLE(dbus, |
| 491 | AS_HELP_STRING([--disable-dbus], |
| 492 | [do not build with dbus support]),, |
| 493 | enable_dbus=auto) |
| 494 | if test "x$enable_dbus" != "xno"; then |
| 495 | PKG_CHECK_MODULES(DBUS, |
| 496 | dbus-1 >= 1.6, |
| 497 | have_dbus=yes, |
| 498 | have_dbus=no) |
| 499 | if test "x$have_dbus" = "xno" -a "x$enable_dbus" = "xyes"; then |
| 500 | AC_MSG_ERROR([dbus support explicitly requested, but libdbus couldn't be found]) |
| 501 | fi |
| 502 | if test "x$have_dbus" = "xyes"; then |
| 503 | enable_dbus=yes |
| 504 | AC_DEFINE([HAVE_DBUS], [1], [Build with dbus support]) |
| 505 | else |
| 506 | enable_dbus=no |
| 507 | fi |
| 508 | fi |
| 509 | AM_CONDITIONAL(ENABLE_DBUS, test "x$enable_dbus" = "xyes") |
| 510 | |
Manuel Bachmann | f989c38 | 2015-11-04 12:13:08 +0100 | [diff] [blame] | 511 | # systemd-login support |
| 512 | AC_ARG_ENABLE(systemd-login, |
| 513 | AS_HELP_STRING([--enable-systemd-login], |
| 514 | [Enable logind support]),, |
| 515 | enable_systemd_login=auto) |
| 516 | if test x$enable_systemd_login != xno -a x$have_dbus != xno; then |
| 517 | PKG_CHECK_MODULES(SYSTEMD_LOGIN, |
| 518 | [libsystemd >= 209], |
| 519 | [have_systemd_login_209=yes;have_systemd_login=yes], |
| 520 | [have_systemd_login_209=no;have_systemd_login=no]) |
| 521 | |
| 522 | # Older versions of systemd package systemd-login separately. Fall back on that |
| 523 | AS_IF([test x$have_systemd_login != xyes],[ |
| 524 | PKG_CHECK_MODULES(SYSTEMD_LOGIN, |
| 525 | [libsystemd-login >= 198], |
| 526 | [have_systemd_login=yes], |
| 527 | [have_systemd_login=no]) |
| 528 | ]) |
| 529 | else |
| 530 | have_systemd_login=no |
| 531 | fi |
| 532 | |
| 533 | if test "x$have_systemd_login" = "xno" -a "x$enable_systemd_login" = "xyes"; then |
| 534 | AC_MSG_ERROR([systemd-login support explicitly enabled, but can't find libsystemd>=209, libsystemd-login or dbus]) |
| 535 | fi |
| 536 | |
| 537 | AS_IF([test "x$have_systemd_login" = "xyes"], |
| 538 | [AC_DEFINE([HAVE_SYSTEMD_LOGIN], [1], [Have systemd-login])]) |
| 539 | AM_CONDITIONAL(HAVE_SYSTEMD_LOGIN, test "x$have_systemd_login" = "xyes") |
| 540 | |
| 541 | AS_IF([test "x$have_systemd_login_209" = "xyes"], |
| 542 | [AC_DEFINE([HAVE_SYSTEMD_LOGIN_209], [1], [Have systemd-login >= 209])]) |
| 543 | |
| 544 | |
Jon A. Cruz | 646aef5 | 2015-07-15 19:22:41 -0700 | [diff] [blame] | 545 | # Note that other features might want libxml2, or this feature might use |
| 546 | # alternative xml libraries at some point. Therefore the feature and |
| 547 | # pre-requisite concepts are split. |
| 548 | AC_ARG_ENABLE(junit_xml, |
| 549 | AS_HELP_STRING([--disable-junit-xml], |
| 550 | [do not build with JUnit XML output]),, |
| 551 | enable_junit_xml=auto) |
| 552 | if test "x$enable_junit_xml" != "xno"; then |
| 553 | PKG_CHECK_MODULES(LIBXML2, |
| 554 | [libxml-2.0 >= 2.6], |
| 555 | have_libxml2=yes, |
| 556 | have_libxml2=no) |
| 557 | if test "x$have_libxml2" = "xno" -a "x$enable_junit_xml" = "xyes"; then |
| 558 | AC_MSG_ERROR([JUnit XML support explicitly requested, but libxml2 couldn't be found]) |
| 559 | fi |
| 560 | if test "x$have_libxml2" = "xyes"; then |
| 561 | enable_junit_xml=yes |
| 562 | AC_DEFINE(ENABLE_JUNIT_XML, [1], [Build Weston with JUnit output support]) |
| 563 | else |
| 564 | enable_junit_xml=no |
| 565 | fi |
| 566 | fi |
| 567 | AM_CONDITIONAL(ENABLE_JUNIT_XML, test "x$enable_junit_xml" = "xyes") |
| 568 | |
Nobuhiko Tanibata | 6f9df65 | 2014-11-27 13:22:00 +0900 | [diff] [blame] | 569 | # ivi-shell support |
| 570 | AC_ARG_ENABLE(ivi-shell, |
| 571 | AS_HELP_STRING([--disable-ivi-shell], |
| 572 | [do not build ivi-shell server plugin and client]),, |
| 573 | enable_ivi_shell=yes) |
| 574 | AM_CONDITIONAL(ENABLE_IVI_SHELL, test "x$enable_ivi_shell" = "xyes") |
| 575 | |
Kristian Høgsberg | 61cfa66 | 2012-05-26 13:19:22 -0400 | [diff] [blame] | 576 | AC_ARG_ENABLE(wcap-tools, [ --disable-wcap-tools],, enable_wcap_tools=yes) |
| 577 | AM_CONDITIONAL(BUILD_WCAP_TOOLS, test x$enable_wcap_tools = xyes) |
| 578 | if test x$enable_wcap_tools = xyes; then |
| 579 | AC_DEFINE([BUILD_WCAP_TOOLS], [1], [Build the wcap tools]) |
Kristian Høgsberg | 8d25a5a | 2012-07-20 18:05:10 -0400 | [diff] [blame] | 580 | PKG_CHECK_MODULES(WCAP, [cairo]) |
Kristian Høgsberg | 61cfa66 | 2012-05-26 13:19:22 -0400 | [diff] [blame] | 581 | WCAP_LIBS="$WCAP_LIBS -lm" |
| 582 | fi |
| 583 | |
Pekka Paalanen | 4b14159 | 2012-08-03 14:39:16 +0300 | [diff] [blame] | 584 | PKG_CHECK_MODULES(SETBACKLIGHT, [libudev libdrm], enable_setbacklight=yes, enable_setbacklight=no) |
| 585 | AM_CONDITIONAL(BUILD_SETBACKLIGHT, test "x$enable_setbacklight" = "xyes") |
Kristian Høgsberg | 61cfa66 | 2012-05-26 13:19:22 -0400 | [diff] [blame] | 586 | |
nobled | 48f975d | 2011-01-28 13:47:21 +0000 | [diff] [blame] | 587 | if test "x$GCC" = "xyes"; then |
Pekka Paalanen | a95efd3 | 2013-01-18 12:11:10 +0200 | [diff] [blame] | 588 | GCC_CFLAGS="-Wall -Wextra -Wno-unused-parameter \ |
Daniel Stone | ad0241d | 2016-06-18 16:04:30 +1000 | [diff] [blame] | 589 | -Wno-shift-negative-value -Wno-missing-field-initializers \ |
| 590 | -g -fvisibility=hidden \ |
Kristian Høgsberg | 6fd73cd | 2014-02-01 11:02:41 -0800 | [diff] [blame] | 591 | -Wstrict-prototypes -Wmissing-prototypes -Wsign-compare" |
Kristian Høgsberg | d4de54e | 2008-12-04 22:48:50 -0500 | [diff] [blame] | 592 | fi |
| 593 | AC_SUBST(GCC_CFLAGS) |
| 594 | |
Armin K | 49c36c6 | 2013-05-30 15:16:40 +0200 | [diff] [blame] | 595 | AC_ARG_ENABLE(libunwind, |
| 596 | AS_HELP_STRING([--disable-libunwind], |
| 597 | [Disable libunwind usage for backtraces]),, |
| 598 | enable_libunwind=auto) |
Quentin Glidic | 5daccc3 | 2013-04-03 20:19:45 +0200 | [diff] [blame] | 599 | AM_CONDITIONAL(HAVE_LIBUNWIND, [test "x$enable_libunwind" = xyes]) |
Emmanuel Gil Peyrot | 226408d | 2016-12-04 21:34:56 +0000 | [diff] [blame] | 600 | have_libunwind=no |
Armin K | 49c36c6 | 2013-05-30 15:16:40 +0200 | [diff] [blame] | 601 | if test "x$enable_libunwind" != "xno"; then |
| 602 | PKG_CHECK_MODULES(LIBUNWIND, |
| 603 | libunwind, |
| 604 | have_libunwind=yes, |
| 605 | have_libunwind=no) |
| 606 | if test "x$have_libunwind" = "xno" -a "x$enable_libunwind" = "xyes"; then |
| 607 | AC_MSG_ERROR([libunwind support explicitly requested, but libunwind couldn't be found]) |
| 608 | fi |
| 609 | if test "x$have_libunwind" = "xyes"; then |
| 610 | enable_libunwind=yes |
| 611 | AC_DEFINE(HAVE_LIBUNWIND, 1, [Have libunwind support]) |
| 612 | fi |
| 613 | fi |
| 614 | |
Marcin Slusarz | 554a0da | 2013-02-18 13:27:22 -0500 | [diff] [blame] | 615 | |
Pekka Paalanen | a51e6fa | 2012-11-07 12:25:12 +0200 | [diff] [blame] | 616 | if test "x$WESTON_NATIVE_BACKEND" = "x"; then |
| 617 | WESTON_NATIVE_BACKEND="drm-backend.so" |
| 618 | fi |
| 619 | AC_MSG_NOTICE([Weston's native backend: $WESTON_NATIVE_BACKEND]) |
| 620 | AC_DEFINE_UNQUOTED([WESTON_NATIVE_BACKEND], ["$WESTON_NATIVE_BACKEND"], |
| 621 | [The default backend to load, if not wayland nor x11.]) |
| 622 | |
Emilio Pozuelo Monfort | 8a81b83 | 2013-12-02 12:53:32 +0100 | [diff] [blame] | 623 | if test "x$WESTON_SHELL_CLIENT" = "x"; then |
| 624 | WESTON_SHELL_CLIENT="weston-desktop-shell" |
| 625 | fi |
| 626 | AC_MSG_NOTICE([Weston's default desktop shell client: $WESTON_SHELL_CLIENT]) |
| 627 | AC_DEFINE_UNQUOTED([WESTON_SHELL_CLIENT], ["$WESTON_SHELL_CLIENT"], |
| 628 | [The default desktop shell client to load.]) |
| 629 | |
Kristian Høgsberg | ea520d5 | 2014-01-01 12:47:40 -0800 | [diff] [blame] | 630 | AC_ARG_ENABLE(demo-clients-install, |
| 631 | AS_HELP_STRING([--enable-demo-clients-install], |
| 632 | [Install demo clients built with weston]),, |
Ricardo Vieira | 14613ba | 2014-01-02 15:31:14 -0800 | [diff] [blame] | 633 | enable_demo_clients_install=no) |
| 634 | AM_CONDITIONAL(INSTALL_DEMO_CLIENTS, [test "x$enable_demo_clients_install" = "xyes"]) |
Armin K | aac6021 | 2013-07-14 17:26:23 +0200 | [diff] [blame] | 635 | |
Jussi Kukkonen | 3375cca | 2015-11-27 16:37:35 +0200 | [diff] [blame] | 636 | AC_ARG_ENABLE(lcms, |
| 637 | AS_HELP_STRING([--disable-lcms], |
| 638 | [Disable lcms support]),, |
| 639 | enable_lcms=auto) |
Emmanuel Gil Peyrot | 226408d | 2016-12-04 21:34:56 +0000 | [diff] [blame] | 640 | have_lcms=no |
Jussi Kukkonen | 3375cca | 2015-11-27 16:37:35 +0200 | [diff] [blame] | 641 | if test "x$enable_lcms" != "xno"; then |
| 642 | PKG_CHECK_MODULES(LCMS, |
| 643 | lcms2, |
| 644 | have_lcms=yes, |
| 645 | have_lcms=no) |
| 646 | if test "x$have_lcms" = "xno" -a "x$enable_lcms" = "xyes"; then |
| 647 | AC_MSG_ERROR([lcms support explicitly requested, but lcms couldn't be found]) |
| 648 | fi |
| 649 | if test "x$have_lcms" = "xyes"; then |
| 650 | enable_lcms=yes |
| 651 | AC_DEFINE(HAVE_LCMS, 1, [Have lcms support]) |
| 652 | fi |
Richard Hughes | b24e48e | 2013-05-09 20:31:09 +0100 | [diff] [blame] | 653 | fi |
Jussi Kukkonen | 3375cca | 2015-11-27 16:37:35 +0200 | [diff] [blame] | 654 | AM_CONDITIONAL(HAVE_LCMS, [test "x$enable_lcms" = xyes]) |
Richard Hughes | b24e48e | 2013-05-09 20:31:09 +0100 | [diff] [blame] | 655 | |
Quentin Glidic | 9f43cb4 | 2013-08-24 20:36:10 +0200 | [diff] [blame] | 656 | AC_PATH_PROG([wayland_scanner], [wayland-scanner]) |
| 657 | if test x$wayland_scanner = x; then |
Emil Velikov | 32318a5 | 2015-02-17 15:13:32 +0000 | [diff] [blame] | 658 | PKG_CHECK_MODULES(WAYLAND_SCANNER, [wayland-scanner]) |
| 659 | wayland_scanner=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner` |
Quentin Glidic | 9f43cb4 | 2013-08-24 20:36:10 +0200 | [diff] [blame] | 660 | fi |
Kristian Høgsberg | b2d7185 | 2011-02-14 22:13:33 -0500 | [diff] [blame] | 661 | |
Egor Starkov | 7ce2e97 | 2015-09-25 18:00:27 +0300 | [diff] [blame] | 662 | AC_ARG_ENABLE(systemd_notify, |
| 663 | AS_HELP_STRING([--enable-systemd-notify], |
| 664 | [Enables systemd notifications to |
| 665 | notify systemd about weston state |
Friedrich, Eugen (ADITG/SW1) | 265aeb3 | 2016-04-05 20:43:29 +0000 | [diff] [blame] | 666 | and update watchdog. |
| 667 | Also sockets provided by systemd |
| 668 | in case of socket-base activation |
| 669 | are added to wayland display]),, |
Egor Starkov | 7ce2e97 | 2015-09-25 18:00:27 +0300 | [diff] [blame] | 670 | enable_systemd_notify=no) |
| 671 | AM_CONDITIONAL(SYSTEMD_NOTIFY_SUPPORT, test x$enable_systemd_notify = xyes) |
| 672 | if test "x$enable_systemd_notify" = "xyes"; then |
| 673 | AC_DEFINE([SYSTEMD_NOTIFY_SUPPORT], [1], [Build the systemd sd_notify support]) |
| 674 | PKG_CHECK_MODULES(SYSTEMD_DAEMON, [libsystemd]) |
| 675 | fi |
| 676 | |
Pekka Paalanen | b5e3ea2 | 2016-06-03 17:12:10 +0300 | [diff] [blame] | 677 | AC_CONFIG_FILES([Makefile libweston/version.h compositor/weston.pc]) |
Kristian Høgsberg | 0aa19e9 | 2014-01-31 16:33:48 -0800 | [diff] [blame] | 678 | |
Giulio Camuffo | 9e44598 | 2016-06-02 21:48:15 +0300 | [diff] [blame] | 679 | # AC_CONFIG_FILES needs the full name when running autoconf, so we need to use |
| 680 | # libweston_abi_version here, and outside [] because of m4 quoting rules |
Emil Velikov | 7fe47f3 | 2016-07-22 14:51:51 +0100 | [diff] [blame] | 681 | AC_CONFIG_FILES([libweston/libweston-]libweston_major_version[.pc:libweston/libweston.pc.in]) |
Reynaldo H. Verdejo Pinochet | 71c4f70 | 2017-11-03 12:48:31 -0700 | [diff] [blame] | 682 | AC_CONFIG_FILES([libweston/libweston-]libweston_major_version[-uninstalled.pc:libweston/libweston-uninstalled.pc.in]) |
Quentin Glidic | 248dd10 | 2016-08-12 10:41:34 +0200 | [diff] [blame] | 683 | AC_CONFIG_FILES([libweston-desktop/libweston-desktop-]libweston_major_version[.pc:libweston-desktop/libweston-desktop.pc.in]) |
Reynaldo H. Verdejo Pinochet | 71c4f70 | 2017-11-03 12:48:31 -0700 | [diff] [blame] | 684 | AC_CONFIG_FILES([libweston-desktop/libweston-desktop-]libweston_major_version[-uninstalled.pc:libweston-desktop/libweston-desktop-uninstalled.pc.in]) |
Giulio Camuffo | 9e44598 | 2016-06-02 21:48:15 +0300 | [diff] [blame] | 685 | |
Kristian Høgsberg | 0aa19e9 | 2014-01-31 16:33:48 -0800 | [diff] [blame] | 686 | AM_CONDITIONAL([HAVE_GIT_REPO], [test -f $srcdir/.git/logs/HEAD]) |
| 687 | |
Kristian Høgsberg | 4a8767b | 2008-12-10 13:44:23 -0500 | [diff] [blame] | 688 | AC_OUTPUT |
Armin K | 0a8461b | 2013-08-14 03:13:53 +0200 | [diff] [blame] | 689 | |
| 690 | AC_MSG_RESULT([ |
| 691 | Native Backend ${WESTON_NATIVE_BACKEND} |
| 692 | setuid Install ${enable_setuid_install} |
| 693 | |
| 694 | Cairo Renderer ${with_cairo} |
| 695 | EGL ${enable_egl} |
Jonas Ådahl | b8e62d9 | 2013-10-25 23:18:02 +0200 | [diff] [blame] | 696 | xcb_xkb ${have_xcb_xkb} |
Armin K | 0a8461b | 2013-08-14 03:13:53 +0200 | [diff] [blame] | 697 | XWayland ${enable_xwayland} |
David Herrmann | 59ab900 | 2013-10-22 00:28:06 +0200 | [diff] [blame] | 698 | dbus ${enable_dbus} |
Armin K | 0a8461b | 2013-08-14 03:13:53 +0200 | [diff] [blame] | 699 | |
Nobuhiko Tanibata | 6f9df65 | 2014-11-27 13:22:00 +0900 | [diff] [blame] | 700 | ivi-shell ${enable_ivi_shell} |
| 701 | |
Armin K | 0a8461b | 2013-08-14 03:13:53 +0200 | [diff] [blame] | 702 | Build wcap utility ${enable_wcap_tools} |
Jason Ekstrand | 946a948 | 2014-04-02 19:53:47 -0500 | [diff] [blame] | 703 | Build Fullscreen Shell ${enable_fullscreen_shell} |
Jon A. Cruz | 179c186 | 2015-07-15 19:22:43 -0700 | [diff] [blame] | 704 | Enable developer documentation ${enable_devdocs} |
Armin K | 0a8461b | 2013-08-14 03:13:53 +0200 | [diff] [blame] | 705 | |
| 706 | weston-launch utility ${enable_weston_launch} |
David Herrmann | cc5b2ed | 2013-10-22 00:28:09 +0200 | [diff] [blame] | 707 | systemd-login support ${have_systemd_login} |
Egor Starkov | 7ce2e97 | 2015-09-25 18:00:27 +0300 | [diff] [blame] | 708 | systemd notify support ${enable_systemd_notify} |
Armin K | 0a8461b | 2013-08-14 03:13:53 +0200 | [diff] [blame] | 709 | |
| 710 | DRM Compositor ${enable_drm_compositor} |
| 711 | X11 Compositor ${enable_x11_compositor} |
| 712 | Wayland Compositor ${enable_wayland_compositor} |
| 713 | Headless Compositor ${enable_headless_compositor} |
Armin K | 0a8461b | 2013-08-14 03:13:53 +0200 | [diff] [blame] | 714 | FBDEV Compositor ${enable_fbdev_compositor} |
| 715 | RDP Compositor ${enable_rdp_compositor} |
Jason Ekstrand | 47928d8 | 2014-04-02 19:54:01 -0500 | [diff] [blame] | 716 | Screen Sharing ${enable_screen_sharing} |
Jon A. Cruz | 646aef5 | 2015-07-15 19:22:41 -0700 | [diff] [blame] | 717 | JUnit XML output ${enable_junit_xml} |
Armin K | 0a8461b | 2013-08-14 03:13:53 +0200 | [diff] [blame] | 718 | |
Armin K | 0a8461b | 2013-08-14 03:13:53 +0200 | [diff] [blame] | 719 | Build Clients ${enable_clients} |
| 720 | Build EGL Clients ${have_cairo_egl} |
| 721 | Build Simple Clients ${enable_simple_clients} |
| 722 | Build Simple EGL Clients ${enable_simple_egl_clients} |
| 723 | |
Ricardo Vieira | 14613ba | 2014-01-02 15:31:14 -0800 | [diff] [blame] | 724 | Install Demo Clients ${enable_demo_clients_install} |
Armin K | 0a8461b | 2013-08-14 03:13:53 +0200 | [diff] [blame] | 725 | |
| 726 | Colord Support ${have_colord} |
Armin K | 0a8461b | 2013-08-14 03:13:53 +0200 | [diff] [blame] | 727 | LCMS2 Support ${have_lcms} |
Emmanuel Gil Peyrot | 66e1614 | 2016-02-16 01:57:52 +0000 | [diff] [blame] | 728 | libjpeg Support ${have_jpeglib} |
Armin K | 0a8461b | 2013-08-14 03:13:53 +0200 | [diff] [blame] | 729 | libwebp Support ${have_webp} |
| 730 | libunwind Support ${have_libunwind} |
Ander Conselvan de Oliveira | 6aae4d3 | 2013-08-23 17:15:48 +0300 | [diff] [blame] | 731 | VA H.264 encoding Support ${have_libva} |
Armin K | 0a8461b | 2013-08-14 03:13:53 +0200 | [diff] [blame] | 732 | ]) |