Author: hp
Date: 2001-06-05 17:00:58 GMT
updates
This commit is contained in:
Arch Librarian 2005-07-14 13:04:06 +00:00
parent a7efbcc46a
commit 6725d8ee36
3 changed files with 15 additions and 3 deletions

View file

@ -2,6 +2,8 @@
* pkg.m4: remove unrelated macros
* README, AUTHORS: updates
2001-05-20 Havoc Pennington <hp@pobox.com>
* configure.in: revert package name change, just screwing things up.

14
README
View file

@ -3,7 +3,7 @@ flags when compiling/linking a lot easier.
to use it, do something like the following in your configure.in
PKG_CHECK_MODULES(GNOME, gtk:1.2.8, gnomeui)
PKG_CHECK_MODULES(GNOME, gtk > 1.2.8 gnomeui >= 1.2.0)
AC_SUBST(GNOME_CFLAGS)
AC_SUBST(GNOME_LIBS)
@ -11,7 +11,15 @@ This puts the neccesary include flags to compile/link something against
libgnomeui and all its dependencies in $(GNOME_CFLAGS), and the -L/-l flags
for linking in $(GNOME_LIBS)
The gtk:1.2.8 part is only neccesary if you want to specifically check
if libgtk is version 1.2.8 or higher. otherwise, the flags for gtk
The "gtk > 1.2.8" part is only neccesary if you want to specifically check
if libgtk is version 1.2.8 or higher. Otherwise, the flags for gtk
will be included automatically, since libgnomeui depends on gtk.
So you could just say:
PKG_CHECK_MODULES(GNOME, gnomeui)
for any version of gnomeui.
For more info, there's even a man page, try 'man pkg-config'

2
pkg.m4
View file

@ -48,3 +48,5 @@ AC_DEFUN(PKG_CHECK_MODULES,
ifelse([$4], , AC_MSG_ERROR([Library requirements ($2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.]), [$4])
fi
])