From af294aafe600145a2d891ad9a0ba5418f6583cc6 Mon Sep 17 00:00:00 2001 From: Robert Bragg Date: Tue, 6 Dec 2011 21:53:57 +0000 Subject: [PATCH] Add public CLUTTER_HAS_WAYLAND_COMPOSITOR_SUPPORT define When clutter has been built with Wayland compositor support then we now expose a public CLUTTER_HAS_WAYLAND_COMPOSITOR_SUPPORT define so that applications can #ifdef code that depends on the api that this feature implies. Reviewed-by: Emmanuele Bassi --- configure.ac | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 15637d678..977fe4d8d 100644 --- a/configure.ac +++ b/configure.ac @@ -193,6 +193,7 @@ FLAVOUR_LIBS="" FLAVOUR_CFLAGS="" CLUTTER_BACKENDS="" CLUTTER_INPUT_BACKENDS="" +CLUTTER_CONFIG_DEFINES= experimental_backend=no experimental_input_backend=no @@ -335,6 +336,8 @@ AS_IF([test "x$enable_wayland_compositor" = "xyes"], PKG_CHECK_EXISTS([wayland-server], [BACKEND_PC_FILES="$BACKEND_PC_FILES wayland-server"], []) SUPPORT_WAYLAND_COMPOSITOR=1 + CLUTTER_CONFIG_DEFINES="$CLUTTER_CONFIG_DEFINES +#define CLUTTER_HAS_WAYLAND_COMPOSITOR_SUPPORT 1" AC_DEFINE([HAVE_CLUTTER_WAYLAND_COMPOSITOR], [1], [Have wayland compositor support]) ]) AM_CONDITIONAL(SUPPORT_WAYLAND_COMPOSITOR, [test "x$SUPPORT_WAYLAND_COMPOSITOR" = "x1"]) @@ -508,8 +511,6 @@ AC_CACHE_SAVE dnl === Clutter configuration ================================================= -CLUTTER_CONFIG_DEFINES= - # windowing systems AS_IF([test "x$SUPPORT_X11" = "x1"], [CLUTTER_CONFIG_DEFINES="$CLUTTER_CONFIG_DEFINES