summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2010-10-25 11:40:03 -0400
committerKristian Høgsberg <krh@bitplanet.net>2010-10-25 11:40:03 -0400
commitd0c3b9da225b0e3bd5102c977a17e66af928ab02 (patch)
tree969e7149472569cc86b67a33db24025cfa643a72 /configure.ac
parent6866856dfda896fa657b0aac6e90d833c5bda744 (diff)
Fall back to cairo image backend and shm surface if we don't have cairo gl
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac7
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index fdfd61c..b510b51 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3,6 +3,7 @@ AM_INIT_AUTOMAKE([foreign dist-bzip2])
AC_PROG_CC
AC_PROG_LIBTOOL
AC_CONFIG_MACRO_DIR([m4])
+AC_CONFIG_HEADERS([config.h])
AM_SILENT_RULES([yes])
PKG_PROG_PKG_CONFIG()
@@ -10,8 +11,12 @@ PKG_CHECK_MODULES(FFI, [libffi])
PKG_CHECK_MODULES(COMPOSITOR,
[egl glesv2 gdk-pixbuf-2.0 libudev >= 136 libdrm >= 2.4.17] xcb-dri2 xcb-xfixes)
-PKG_CHECK_MODULES(CLIENT, [egl gl cairo-gl gdk-pixbuf-2.0 glib-2.0 gobject-2.0 xkbcommon libdrm])
+PKG_CHECK_MODULES(CLIENT, [egl gl cairo gdk-pixbuf-2.0 glib-2.0 gobject-2.0 xkbcommon libdrm])
PKG_CHECK_MODULES(POPPLER, [poppler-glib gdk-2.0])
+PKG_CHECK_MODULES(CAIRO_GL, [cairo-gl],
+ [have_cairo_gl=yes], [have_cairo_gl=no])
+AS_IF([test "x$have_cairo_gl" = "xyes"],
+ [AC_DEFINE([HAVE_CAIRO_GL], [1], [Have cairo-gl])])
if test $CC = gcc; then
GCC_CFLAGS="-Wall -g -Wstrict-prototypes -Wmissing-prototypes -fvisibility=hidden"