1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../general.ent">
8 <sect1 id="ch-system-pkgconfig" role="wrap">
9 <?dbhtml filename="pkg-config.html"?>
11 <sect1info condition="script">
12 <productname>pkgconfig</productname>
13 <productnumber>&pkgconfig-version;</productnumber>
14 <address>&pkgconfig-url;</address>
17 <title>Pkg-config-&pkgconfig-version;</title>
19 <indexterm zone="ch-system-pkgconfig">
20 <primary sortas="a-pkgconfig">Pkgconfig</primary>
23 <sect2 role="package">
26 <para> The pkg-config package contains a tool for passing the include path
27 and/or library paths to build tools during the configure and make file
31 <segtitle>&buildtime;</segtitle>
32 <segtitle>&diskspace;</segtitle>
35 <seg>&pkgconfig-ch6-sbu;</seg>
36 <seg>&pkgconfig-ch6-du;</seg>
42 <sect2 role="installation">
43 <title>Installation of Pkg-config</title>
45 <para>Prepare Pkg-config for compilation:</para>
47 <screen><userinput remap="configure">./configure --prefix=/usr \
48 --with-internal-glib \
49 --disable-compile-warnings \
51 --docdir=/usr/share/doc/pkg-config-&pkgconfig-version;</userinput></screen>
54 <title>The meaning of the new configure options:</title>
57 <term><parameter>--with-internal-glib</parameter></term>
59 <para>This will allow pkg-config to use its internal version of
60 Glib because an external version is not available in LFS.</para>
65 <term><parameter>--disable-compile-warnings</parameter></term>
67 <para>This option prevents the build system from using
68 compiler flags which cause build failure when building
74 <term><parameter>--disable-host-tool</parameter></term>
76 <para>This option disables the creation of an undesired hard link
77 to the pkg-config program.</para>
85 <para>Compile the package:</para>
87 <screen><userinput remap="make">make</userinput></screen>
89 <para>To test the results, issue:</para>
91 <screen><userinput remap="test">make check</userinput></screen>
93 <para>Install the package:</para>
95 <screen><userinput remap="install">make install</userinput></screen>
99 <sect2 id="contents-pkgconfig" role="content">
100 <title>Contents of Pkg-config</title>
103 <segtitle>Installed program</segtitle>
104 <segtitle>Installed directory</segtitle>
107 <seg>pkg-config</seg>
108 <seg>/usr/share/doc/pkg-config-&pkgconfig-version;</seg>
113 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
114 <?dbfo list-presentation="list"?>
115 <?dbhtml list-presentation="table"?>
117 <varlistentry id="pkgconfig">
118 <!-- Don't remove the extra space, it prevents a FOP warning. -->
119 <term><command>pkg-config </command></term>
121 <para>returns meta information for the specified library or package
123 <indexterm zone="ch-system-pkgconfig pkgconfig">
124 <primary sortas="b-pkgconfig">pkg-config</primary>