source: trunk/third/pkgconfig/README @ 18224

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 
1pkg-config is a script to make putting together all the build
2flags when compiling/linking a lot easier.
3
4Report bugs at http://bugzilla.gnome.org (pkg-config is in no way
5gnome-specific but gnome.org was a convenient bug tracker).
6
7To 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
13This puts the neccesary include flags to compile/link something against
14libgnomeui and all its dependencies in $(GNOME_CFLAGS), and the -L/-l flags
15for linking in $(GNOME_LIBS)
16
17The "gtk > 1.2.8" part is only neccesary if you want to specifically check
18if libgtk is version 1.2.8 or higher. Otherwise, the flags for gtk
19will be included automatically, since libgnomeui depends on gtk.
20So you could just say:
21
22     PKG_CHECK_MODULES(GNOME, gnomeui)
23
24for any version of gnomeui.
25
26For more info, there's even a man page, try 'man pkg-config'
27
28
Note: See TracBrowser for help on using the repository browser.