--- config_office/configure.in
+++ config_office/configure.in
@@ -2693,6 +2693,27 @@
 AC_SUBST(LIBWPD_LIBS)
 
 dnl ===================================================================
+dnl Check whether freetype2 supports emboldening
+dnl ===================================================================
+if test "$SYSTEM_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"
+else
+    # It was added in freetype-2.1.10
+    USE_FT_EMBOLDEN="NO"
+    AC_MSG_WARN([Internal freetype2 does not support emboldening.])
+fi
+AC_SUBST(USE_FT_EMBOLDEN)
+
+dnl ===================================================================
 dnl Check for system libxml
 dnl ===================================================================
 AC_MSG_CHECKING([which libxml to use])


--- config_office/set_soenv.in
+++ config_office/set_soenv.in
@@ -1786,6 +1786,7 @@
 ToFile( "LIBWPD_CFLAGS",     "@LIBWPD_CFLAGS@",    "e" );
 ToFile( "LIBWPD_LIBS",       "@LIBWPD_LIBS@",      "e" );
 ToFile( "SYSTEM_LIBXML",     "@SYSTEM_LIBXML@",    "e" );
+ToFile( "USE_FT_EMBOLDEN",   "@USE_FT_EMBOLDEN@",  "e" );
 ToFile( "LIBXML_CFLAGS",     "@LIBXML_CFLAGS@",    "e" );
 ToFile( "LIBXML_LIBS",       "@LIBXML_LIBS@",      "e" );
 ToFile( "SYSTEM_EXPAT",      "@SYSTEM_EXPAT@",     "e" );

