Commit a012540d authored by Uli Schlachter's avatar Uli Schlachter
Browse files

autoconf: Reject --enable-xml --disable-png

The xml surface depends on png. Before this commit, configuring with
autogen.sh --disable-png --disable-svg --enable-xml resulted in a
failing build:

src/cairo-xml-surface.c: In function ‘_cairo_xml_emit_image’:
src/cairo-xml-surface.c:673:14: error: implicit declaration of function
‘cairo_surface_write_to_png_stream’

After this commit, configure instead rejects this combination with:

checking whether cairo's xml surface backend feature could be enabled... no (requires --enable-png)
configure: error:  xml surface backend feature could not be enabled

Noticed-at: cairo/cairo!67 (comment 644347)

Signed-off-by: Uli Schlachter's avatarUli Schlachter <psychon@znc.in>
parent 7b258a2f
......@@ -715,8 +715,12 @@ CAIRO_ENABLE_SURFACE_BACKEND(recording, recording, always)
CAIRO_ENABLE_SURFACE_BACKEND(observer, observer, always)
CAIRO_ENABLE_SURFACE_BACKEND(tee, tee, no)
CAIRO_ENABLE_SURFACE_BACKEND(xml, xml, no, [
use_xml=$have_libz
xml_NONPKGCONFIG_LIBS=-lz
if test "x$use_png" != "xyes"; then
use_xml="no (requires --enable-png)"
else
use_xml=$have_libz
xml_NONPKGCONFIG_LIBS=-lz
fi
])
dnl ===========================================================================
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment