mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
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'.
This commit is contained in:
parent
9a3b97b55e
commit
ab89f9b9e8
@ -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=
|
||||
|
Loading…
Reference in New Issue
Block a user