--- old/common/autoconf/libraries.m4 2016-07-01 17:48:44.975938012 +0200 +++ new/common/autoconf/libraries.m4 2016-07-01 17:48:44.895934628 +0200 @@ -59,11 +59,9 @@ NEEDS_LIB_CUPS=true fi - # Check if freetype is needed - if test "x$OPENJDK" = "xtrue"; then + # A custom hook may have set this already + if test "x$NEEDS_LIB_FREETYPE" = "x"; then NEEDS_LIB_FREETYPE=true - else - NEEDS_LIB_FREETYPE=false fi # Check if alsa is needed