| author | nobled <nobled@dreamwidth.org> | 2011-02-14 17:46:34 (GMT) |
|---|---|---|
| committer | nobled <nobled@dreamwidth.org> | 2011-02-14 19:13:10 (GMT) |
| commit | 6ee55a29e8a3eee2721ef203f3063073087a4ad1 (patch) (side-by-side diff) | |
| tree | 0cbd23736e6429292e41db24b297ab53d541d14b | |
| parent | 6085d2b5d09e5a48b9985bc7f62a31bee763ed08 (diff) | |
| download | clayland-6ee55a29e8a3eee2721ef203f3063073087a4ad1.zip clayland-6ee55a29e8a3eee2721ef203f3063073087a4ad1.tar.gz | |
add configure option --with-backend
| -rw-r--r-- | configure.ac | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index a222103..97a9d79 100644 --- a/configure.ac +++ b/configure.ac @@ -12,14 +12,39 @@ PKG_PROG_PKG_CONFIG() clayland_deps="wayland-server clutter-1.0" x11_deps="clutter-x11-1.0 clutter-egl-1.0 x11-xcb xcb-dri2" +clutter_backend="auto" +AC_ARG_WITH([backend], + [AC_HELP_STRING([--with-backend=@<:@x11-egl,generic,auto@:>@], + [Select Clutter backend - determines whether DRM buffers are possible])], + [clutter_backend=$with_backend]) + PKG_CHECK_EXISTS([$x11_deps],[ have_x11=yes - clutter_backend="x11-egl" ],[ have_x11=no - clutter_backend="generic" ]) +case "$clutter_backend" in +x11-egl) + if test "x$have_x11" != "xyes"; then + AC_MSG_ERROR([Can't build x11-egl backend: missing dependencies]) + fi + ;; +generic) + have_x11=no + ;; +auto) + if test "x$have_x11" = "xyes"; then + clutter_backend="x11-egl" + else + clutter_backend="generic" + fi + ;; +*) + AC_MSG_ERROR([Invalid backend selected]) + ;; +esac + have_drm=$have_x11 AM_CONDITIONAL(HAVE_X11, test "x$have_x11" = "xyes") |
