From 8b7816ea38a1869e7de94341e3ea9e1eebb8eb4f Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Mon, 22 Apr 2019 13:08:30 +0000 Subject: [PATCH 4/5] util: don't build cairo-sphinx unless PNG enabled cairo-sphinx won't build without libpng, because cairo_surface_write_to_png won't be defined. --- util/Makefile.am | 2 ++ 1 file changed, 2 insertions(+) diff --git a/util/Makefile.am b/util/Makefile.am index 82d0a804c..119b59f48 100644 --- a/util/Makefile.am +++ b/util/Makefile.am @@ -25,11 +25,13 @@ if BUILD_SPHINX if CAIRO_HAS_DLSYM if CAIRO_HAS_SCRIPT_SURFACE if CAIRO_HAS_TEE_SURFACE +if CAIRO_HAS_PNG_FUNCTIONS SUBDIRS += cairo-sphinx endif endif endif endif +endif AM_CPPFLAGS = -I$(top_srcdir)/src \ -I$(top_builddir)/src \ -- 2.19.2