mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-03 21:48:24 +02:00
[build] Require fontconfig >= 2.2.95 if we're using it at all.
We require at least fontconfig 2.2.95 when we're using fontconfig because we depend on the FcResultOutOfMemory error code introduced in that version.
This commit is contained in:
parent
84e587bbfa
commit
d9b5a98a78
1 changed files with 2 additions and 1 deletions
|
|
@ -302,10 +302,11 @@ CAIRO_ENABLE_FONT_BACKEND(ft, FreeType, auto, [
|
|||
ft_LIBS="$FREETYPE_LIBS"
|
||||
])
|
||||
|
||||
FONTCONFIG_MIN_VERSION=2.2.95
|
||||
CAIRO_ENABLE_FONT_BACKEND(fc, Fontconfig, auto, [
|
||||
use_fc=$use_ft
|
||||
if test "x$use_fc" = "xyes"; then
|
||||
fc_REQUIRES="fontconfig"
|
||||
fc_REQUIRES="fontconfig >= $FONTCONFIG_MIN_VERSION"
|
||||
PKG_CHECK_MODULES(FONTCONFIG, $fc_REQUIRES,,
|
||||
[AC_MSG_RESULT(no); use_fc="no (requires $fc_REQUIRES)"])
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue