Bug 9687 - fontconfig not enabled because pkg-config is out of date
Summary: fontconfig not enabled because pkg-config is out of date
Status: RESOLVED FIXED
Alias: None
Product: cairo
Classification: Unclassified
Component: freetype font backend (show other bugs)
Version: 1.2.6
Hardware: Other Linux (All)
: high normal
Assignee: Owen Taylor
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-17 03:16 UTC by Duncan Gibson
Modified: 2007-03-08 08:54 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Duncan Gibson 2007-01-17 03:16:31 UTC
On CentOS 4.4 (final), the default pkg-config is version 0.15.0

The configure script for cairo-1.2.6 does not report any explicit
requirement for pkg-config, but does use the following test when
checking for fontconfig and freetype:

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then

when this silently fails, configure evenually reports that it
can't find fontconfig, and fails.

configure --disable-png --enable-freetype=yes
eventually gives:
    checking for cairo's FreeType font backend... 
    checking for FONTCONFIG... checking whether cairo's FreeType font backend
could be enabled... no (requires fontconfig
    configure: error: requested FreeType font backend could not be enabled

The --disable-png is needed to avoid another error related to pkg-config:
    checking for cairo's PNG backend... 
    ./configure: line 24790: --exists: command not found

There is a test for pkg-config minimum version of 0.19 elsewhere in the
configure script, but this is conditional code which isn't always called.

It would be useful if the configure script could explicitly test for the
minimum required version of pkg-config in all cases, and report appropriately.
Comment 1 Behdad Esfahbod 2007-03-08 08:54:44 UTC
Fixed in 1.4.0.


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.