problem with autoconf && PKG_CHECK_MODULES

Matthias Apitz matthias.apitz at
Tue Apr 1 17:21:42 UTC 2008


The SVN trunk of OPAC is using 'autoconf' for creating 'configure' and

it seems that it can't expand PKG_CHECK_MODULES(...) in and
I have investigated that:

I have installed on my 7.0R box:

# pkg_info | fgrep pkg-config-0.22_1
pkg-config-0.22_1   A utility to retrieve information about installed libraries

and this packages provides the following files:

# pkg_info -L pkg-config-0.22_1
Information for pkg-config-0.22_1:


the file /usr/local/share/aclocal/pkg.m4 contains the definition of

# fgrep PKG_CHECK_MODULES /usr/local/share/aclocal/pkg.m4
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
# Similar to PKG_CHECK_MODULES, make sure that the first instance of
# this or PKG_CHECK_MODULES is called, or make sure to call
# PKG_CHECK_MODULES might not happen, you should be sure to include an

autoconf is /usr/local/bin/autoconf and in real through the wrapper:
+ exec /usr/local/bin/autoconf-2.61

which does not read /usr/local/share/aclocal/pkg.m4 as I've proofed
with 'ls -lu /usr/local/share/aclocal/pkg.m4'
that's why PKG_CHECK_MODULES is not expanded by autoconf and the result
is an error in running configure;

any ideas?

Matthias Apitz
Manager Technical Support - OCLC GmbH
Gruenwalder Weg 28g - 82041 Oberhaching - Germany
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e <matthias.apitz at> - w
Don't top-post, read RFC1855
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on Usenet and in e-mail?

More information about the freebsd-questions mailing list