Revision 18224,
960 bytes
checked in by ghudson, 22 years ago
(diff) |
This commit was generated by cvs2svn to compensate for changes in r18223,
which included commits to RCS files with non-trunk default branches.
|
Line | |
---|
1 | pkg-config is a script to make putting together all the build |
---|
2 | flags when compiling/linking a lot easier. |
---|
3 | |
---|
4 | Report bugs at http://bugzilla.gnome.org (pkg-config is in no way |
---|
5 | gnome-specific but gnome.org was a convenient bug tracker). |
---|
6 | |
---|
7 | To use pkg-config, do something like the following in your configure.in |
---|
8 | |
---|
9 | PKG_CHECK_MODULES(GNOME, gtk > 1.2.8 gnomeui >= 1.2.0) |
---|
10 | AC_SUBST(GNOME_CFLAGS) |
---|
11 | AC_SUBST(GNOME_LIBS) |
---|
12 | |
---|
13 | This puts the neccesary include flags to compile/link something against |
---|
14 | libgnomeui and all its dependencies in $(GNOME_CFLAGS), and the -L/-l flags |
---|
15 | for linking in $(GNOME_LIBS) |
---|
16 | |
---|
17 | The "gtk > 1.2.8" part is only neccesary if you want to specifically check |
---|
18 | if libgtk is version 1.2.8 or higher. Otherwise, the flags for gtk |
---|
19 | will be included automatically, since libgnomeui depends on gtk. |
---|
20 | So you could just say: |
---|
21 | |
---|
22 | PKG_CHECK_MODULES(GNOME, gnomeui) |
---|
23 | |
---|
24 | for any version of gnomeui. |
---|
25 | |
---|
26 | For more info, there's even a man page, try 'man pkg-config' |
---|
27 | |
---|
28 | |
---|
Note: See
TracBrowser
for help on using the repository browser.