common/autoconf/libraries.m4
changeset 39384 adde8cb7d01b
parent 39194 d56b54bc6437
child 41046 bee72dd4067b
--- a/common/autoconf/libraries.m4	Thu Jul 07 18:34:58 2016 +0000
+++ b/common/autoconf/libraries.m4	Fri Jul 08 08:55:54 2016 +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