|
|
|
@ -145,8 +145,10 @@ AC_ARG_WITH(glib, |
|
|
|
|
[Use glib @<:@default=auto@:>@])],, |
|
|
|
|
[with_glib=auto]) |
|
|
|
|
have_glib=false |
|
|
|
|
GLIB_DEPS="glib-2.0 >= 2.16" |
|
|
|
|
AC_SUBST(GLIB_DEPS) |
|
|
|
|
if test "x$with_glib" = "xyes" -o "x$with_glib" = "xauto"; then |
|
|
|
|
PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.16, have_glib=true, :) |
|
|
|
|
PKG_CHECK_MODULES(GLIB, $GLIB_DEPS, have_glib=true, :) |
|
|
|
|
fi |
|
|
|
|
if test "x$with_glib" = "xyes" -a "x$have_glib" != "xtrue"; then |
|
|
|
|
AC_MSG_ERROR([glib support requested but glib-2.0 not found]) |
|
|
|
@ -296,8 +298,10 @@ AC_ARG_WITH(graphite2, |
|
|
|
|
[Use the graphite2 library @<:@default=no@:>@])],, |
|
|
|
|
[with_graphite2=no]) |
|
|
|
|
have_graphite2=false |
|
|
|
|
GRAPHITE2_DEPS="graphite2" |
|
|
|
|
AC_SUBST(GRAPHITE2_DEPS) |
|
|
|
|
if test "x$with_graphite2" = "xyes" -o "x$with_graphite2" = "xauto"; then |
|
|
|
|
PKG_CHECK_MODULES(GRAPHITE2, graphite2, have_graphite2=true, :) |
|
|
|
|
PKG_CHECK_MODULES(GRAPHITE2, $GRAPHITE2_DEPS, have_graphite2=true, :) |
|
|
|
|
fi |
|
|
|
|
if test "x$with_graphite2" = "xyes" -a "x$have_graphite2" != "xtrue"; then |
|
|
|
|
AC_MSG_ERROR([graphite2 support requested but libgraphite2 not found]) |
|
|
|
@ -314,9 +318,11 @@ AC_ARG_WITH(freetype, |
|
|
|
|
[Use the FreeType library @<:@default=auto@:>@])],, |
|
|
|
|
[with_freetype=auto]) |
|
|
|
|
have_freetype=false |
|
|
|
|
FREETYPE_DEPS="freetype2 >= 12.0.6" |
|
|
|
|
AC_SUBST(FREETYPE_DEPS) |
|
|
|
|
if test "x$with_freetype" = "xyes" -o "x$with_freetype" = "xauto"; then |
|
|
|
|
# See freetype/docs/VERSION.DLL; 12.0.6 means freetype-2.4.2 |
|
|
|
|
PKG_CHECK_MODULES(FREETYPE, freetype2 >= 12.0.6, have_freetype=true, :) |
|
|
|
|
PKG_CHECK_MODULES(FREETYPE, $FREETYPE_DEPS, have_freetype=true, :) |
|
|
|
|
fi |
|
|
|
|
if test "x$with_freetype" = "xyes" -a "x$have_freetype" != "xtrue"; then |
|
|
|
|
AC_MSG_ERROR([FreeType support requested but libfreetype2 not found]) |
|
|
|
|