[clutter/clutter-1.18] Check for cairo_surface_set_device_scale()
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter/clutter-1.18] Check for cairo_surface_set_device_scale()
- Date: Thu, 23 Jan 2014 12:48:12 +0000 (UTC)
commit b7b09bd0ce4c96972fb9570555cc24d219089f98
Author: Emmanuele Bassi <ebassi gnome org>
Date: Thu Jan 16 12:08:09 2014 +0000
Check for cairo_surface_set_device_scale()
Like gtk+, we don't want to bump the dependency of Clutter for that
function alone.
https://bugzilla.gnome.org/show_bug.cgi?id=705915
configure.ac | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 274fbf8..69f5abc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -139,7 +139,7 @@ m4_define([glib_req_version], [2.37.3])
m4_define([cogl_req_version], [1.17.1])
m4_define([json_glib_req_version], [0.12.0])
m4_define([atk_req_version], [2.5.3])
-m4_define([cairo_req_version], [1.10])
+m4_define([cairo_req_version], [1.12.0])
m4_define([pango_req_version], [1.30])
m4_define([gi_req_version], [0.9.5])
m4_define([uprof_req_version], [0.3])
@@ -793,6 +793,18 @@ AS_CASE([$enable_pixbuf],
AM_CONDITIONAL([PIXBUF_TESTS], [test "x$pixbuf_tests" = "xyes"])
+# Check for cairo_set_device_scale, as we don't want to depend hard on
+# this until there is a stable release with it
+saved_CFLAGS="$CFLAGS"
+saved_LIBS="$LIBS"
+CAIRO_CFLAGS=`$PKG_CONFIG --cflags cairo`
+CAIRO_LIBS=`$PKG_CONFIG --libs cairo`
+CFLAGS="$CFLAGS $CAIRO_CFLAGS"
+LIBS="$CAIRO_LIBS $LIBS"
+AC_CHECK_FUNCS(cairo_surface_set_device_scale)
+LIBS="$saved_LIBS"
+CFLAGS="$saved_CFLAGS"
+
dnl === Enable debug level ====================================================
m4_define([debug_default], [m4_if(m4_eval(clutter_minor_version % 2), [1], [yes], [minimum])])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]