summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Lohmann [pl] <Philipp.Lohmann@Sun.COM>2009-11-12 17:24:00 +0100
committerPhilipp Lohmann [pl] <Philipp.Lohmann@Sun.COM>2009-11-12 17:24:00 +0100
commit3970dffa1d6d6d3977cf759d25432e885f11466a (patch)
tree2211ebba61f91ffea576e2f67260966d24450ee6
parentcd8eeaebf4eedf77e7a6b97e9f9266ea3b40cb84 (diff)
revert build breaker
-rw-r--r--configure.in17
1 files changed, 17 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 5c8d55947751..aff65d6d1583 100644
--- a/configure.in
+++ b/configure.in
@@ -3691,6 +3691,23 @@ fi
AC_SUBST(FREETYPE_CFLAGS)
AC_SUBST(FREETYPE_LIBS)
+dnl ===================================================================
+dnl Check whether freetype2 supports emboldening
+dnl ===================================================================
+if test "$test_freetype" = "yes"; then
+ save_CPPFLAGS="$CPPFLAGS"
+ save_LDFLAGS="$LDFLAGS"
+ save_LIBS="$LIBS"
+ CPPFLAGS="$CPPFLAGS $FREETYPE_CFLAGS"
+ LDFLAGS="$LDFLAGS $FREETYPE_LIBS"
+ AC_CHECK_LIB(freetype, FT_GlyphSlot_Embolden,
+ [USE_FT_EMBOLDEN="YES"], [USE_FT_EMBOLDEN="NO"], [])
+ LDFLAGS="$save_LDFLAGS"
+ CPPFLAGS="$save_CPPFLAGS"
+ LIBS="$save_LIBS"
+fi
+AC_SUBST(USE_FT_EMBOLDEN)
+
if test -n "$with_system_libxslt" -o -n "$with_system_libs" && \
test "$with_system_libxslt" != "no"; then
if test -z "$with_system_libxml" -a -z "$with_system_libs" || \