summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac27
1 files changed, 27 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 49c7928..1873f02 100644
--- a/configure.ac
+++ b/configure.ac
@@ -93,6 +93,12 @@ AC_SUBST(gl_cocoa_libs)
93EXPEDITE_CHECK_ENGINE([software-16-wince], [Software 16 bits WinCE], "yes", [wince_16_libs="-laygshell"]) 93EXPEDITE_CHECK_ENGINE([software-16-wince], [Software 16 bits WinCE], "yes", [wince_16_libs="-laygshell"])
94AC_SUBST(wince_16_libs) 94AC_SUBST(wince_16_libs)
95 95
96# Wayland EGL
97EXPEDITE_CHECK_ENGINE([wayland-egl], [Wayland EGL], "yes")
98
99# Wayland SHM
100EXPEDITE_CHECK_ENGINE([wayland-shm], [Wayland SHM], "yes")
101
96### Checks for programs 102### Checks for programs
97 103
98AC_ISC_POSIX 104AC_ISC_POSIX
@@ -181,6 +187,25 @@ if test "x$have_directfb" = "xyes"; then
181fi 187fi
182AM_CONDITIONAL(BUILD_DIRECTFB, test "x$have_directfb" = "xyes") 188AM_CONDITIONAL(BUILD_DIRECTFB, test "x$have_directfb" = "xyes")
183 189
190# Wayland
191
192if test "x$want_wayland_egl" = "xyes" -o "x$want_wayland_shm" = "xyes"; then
193 PKG_CHECK_MODULES([WAYLAND_CLIENT], [wayland-client], [have_wl="yes"], [have_wl="no"])
194 AM_CONDITIONAL(BUILD_WAYLAND, test "x$have_wl" = "xyes")
195 AM_CONDITIONAL(BUILD_WAYLAND_SHM, test "x$have_wl" = "xyes")
196 if test "x$have_wl" = "xyes"; then
197 AC_DEFINE(BUILD_WAYLAND, 1, [build wayland support])
198 AC_DEFINE(BUILD_WAYLAND_SHM, 1, [build wayland SHM support])
199 fi
200
201 if test "x$have_wl" = "xyes" -a "x$want_wayland_egl" = "xyes"; then
202 PKG_CHECK_MODULES([WAYLAND_EGL], [wayland-egl], [have_wl_egl="yes"], [have_wl_egl="no"])
203 AM_CONDITIONAL(BUILD_WAYLAND_EGL, test "x$have_wl_egl" = "xyes")
204 if test "x$have_wl_egl" = "xyes"; then
205 AC_DEFINE(BUILD_WAYLAND_EGL, 1, [build wayland EGL support])
206 fi
207 fi
208fi
184 209
185### Checks for header files 210### Checks for header files
186 211
@@ -267,6 +292,8 @@ echo " FB...........................: ${have_fb}"
267echo " DirectFB.....................: ${have_directfb}" 292echo " DirectFB.....................: ${have_directfb}"
268echo " PSL1GHT......................: ${have_psl1ght}" 293echo " PSL1GHT......................: ${have_psl1ght}"
269echo " Software WinCE 16 bits.......: ${have_software_16_wince}" 294echo " Software WinCE 16 bits.......: ${have_software_16_wince}"
295echo " Wayland EGL..................: ${have_wl}"
296echo " Wayland SHM..................: ${have_wl_egl}"
270echo 297echo
271echo " Installation:" 298echo " Installation:"
272echo " prefix.......................: ${prefix}" 299echo " prefix.......................: ${prefix}"