[clutter] build: Detect the appropriate default flavour



commit ab89f9b9e820a5d81d9f392f852397906d6098b9
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Wed Jul 13 14:20:47 2011 +0100

    build: Detect the appropriate default flavour
    
    If we're building on/for Windows, set 'win32' as the default flavour; if
    we're building on OS X, set 'osx' as the default flavour. For everything
    else, use 'glx'.

 configure.ac |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 1179b30..e93fd0f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -94,6 +94,9 @@ AS_CASE([$host],
 AC_MSG_RESULT([$platform_win32])
 AM_CONDITIONAL(OS_WIN32, [test "$platform_win32" = "yes"])
 
+AC_CHECK_HEADER([OpenGL/gl.h], [platform_quartz=yes], [platform_quartz=no])
+AM_CONDITIONAL(OS_QUARTZ, [test "$platform_quartz" = "yes"])
+
 AC_SUBST(CLUTTER_LT_VERSION)
 AC_SUBST(CLUTTER_LT_LDFLAGS)
 
@@ -167,7 +170,10 @@ AC_SUBST(CLUTTER_LINK_FLAGS)
 dnl ========================================================================
 
 # defaults
-CLUTTER_FLAVOUR=glx
+AS_IF([test "x$platform_win32" = "xyes"],  [CLUTTER_FLAVOUR=win32],
+      [test "x$platform_quartz" = "xyes"], [CLUTTER_FLAVOUR=osx],
+      [CLUTTER_FLAVOUR=glx])
+
 FLAVOUR_LIBS=""
 FLAVOUR_CFLAGS=""
 CLUTTER_WINSYS_BASE=



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]