Bug 9394

Summary: ./configure doesn't find libpng12 even though it's installed
Product: cairo Reporter: tink <andrej.groups>
Component: generalAssignee: Carl Worth <cworth>
Status: RESOLVED FIXED QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: normal    
Priority: high    
Version: 1.2.6   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description tink 2006-12-19 12:30:20 UTC
checking whether cairo's Microsoft Windows font backend could be enabled... no
(requires a Win32 platform)
checking for cairo's PNG backend... 
./configure: line 24790: --exists: command not found
./configure: line 24790: --exists: command not found
./configure: line 24790: --exists: command not found
configure: WARNING: Could not find libpng in the pkg-config search path
checking whether cairo's PNG backend could be enabled... no
configure: error: requested PNG backend could not be enabled

But:
$ pkg-config --exists libpng12
$ echo $?
0
$ 

The problem persists even with
$ export PKG_CONFIG=`which pkg-config`
$ echo $PKG_CONFIG                                                             
                                             
/usr/bin/pkg-config
$ 

This is all on Slackware 10.2,
$ gcc -v                                                                       
                                             
Reading specs from /usr/lib/gcc-lib/i486-slackware-linux/3.3.6/specs
Configured with: ../gcc-3.3.6/configure --prefix=/usr --enable-shared
--enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld
--verbose --target=i486-slackware-linux --host=i486-slackware-linux
Thread model: posix
gcc version 3.3.6

The libpng came with slack:
/var/log/packages/libpng-1.2.14-i486-1_slack10.2


Cheers,
Andrej
Comment 1 Behdad Esfahbod 2006-12-19 12:44:29 UTC
You have an old version of pkg-config.  Which version is it?
Comment 2 Behdad Esfahbod 2007-01-03 01:16:33 UTC
This is fixed in master.  Will be in the next 1.2.x release if any.
Comment 3 Chris Wilson 2008-10-10 04:47:46 UTC
New version of stable released with fix.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.