From e906d2cbde5c1db4238660002f858111de8548c3 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Thu, 18 Aug 2011 15:32:29 +0100 Subject: [PATCH] build: Depend on pangoft2 on X11 We need the fontconfig API to reinitialize the fontmap caches whenever the system tells us that the user fonts have changed. --- configure.ac | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index e0bae747c..94f8ff84b 100644 --- a/configure.ac +++ b/configure.ac @@ -386,10 +386,21 @@ AS_CASE([$CLUTTER_FLAVOUR], CLUTTER_SONAME_INFIX=win32 ], - [AC_MSG_ERROR([Invalid backend for Clutter: use glx, osx, - win32, eglx or eglnative])] + [AC_MSG_ERROR([Invalid backend for Clutter])] ) +AS_IF([test "x$SUPPORT_X11" = "x1"], + [ + # we use fontconfig API and pango-fc when the fontconfig + # configuration changes + PKG_CHECK_EXISTS([pangoft2], + [ + AC_DEFINE([HAVE_PANGO_FT2], [1], [Supports PangoFt2]) + BACKEND_PC_FILES="$BACKEND_PC_FILES pangoft2" + ], + []) + ]) + AS_IF([test "x$SUPPORT_GLX" = "x1"], [ AC_DEFINE([HAVE_CLUTTER_GLX], [1], [Have the GLX backend])