checking for cairo's Quartz font backend feature... checking whether cairo's Quartz font backend feature could be enabled... no (disabled, use --enable-quartz to enable) checking for cairo's Microsoft Windows surface backend feature... checking whether cairo's Microsoft Windows surface backend feature could be enabled... no (requires a Win32 platform) checking for cairo's Microsoft Windows font backend feature... checking whether cairo's Microsoft Windows font backend feature could be enabled... no (requires a Win32 platform) checking for cairo's PNG functions feature... configure: WARNING: Could not find libpng in the pkg-config search path checking whether cairo's PNG functions feature could be enabled... no configure: error: recommended PNG functions feature could not be enabled !!! Please attach the following file when seeking support: !!! /var/tmp/portage/x11-libs/cairo-1.8.8/work/cairo-1.8.8/config.log * ERROR: x11-libs/cairo-1.8.8 failed: * econf failed Reproducible: Always Steps to Reproduce: See URL for a patch.
Upstream git has a patch for this: http://cgit.freedesktop.org/cairo/patch/?id=0a5ec9802a39dee240a1a3476af1ef8a7db9b6b3
The new released cairo-1.8.10 compiles against >=libpng-1.4.0 without needing a patch.
trivial fix, missing libpng14 before libpng12 in configure.ac