problem with autoconf && PKG_CHECK_MODULES

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


Hello,

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

it seems that it can't expand PKG_CHECK_MODULES(...) in configure.ac 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:

Files:
/usr/local/man/man1/pkg-config.1.gz
/usr/local/bin/pkg-config
/usr/local/share/aclocal/pkg.m4

the file /usr/local/share/aclocal/pkg.m4 contains the definition of
PKG_CHECK_MODULES():

# 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(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
# PKG_CHECK_MODULES might not happen, you should be sure to include an
AC_DEFUN([PKG_CHECK_MODULES],
...

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
-- 
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 oclc.org> - w http://www.oclc.org/ http://www.UnixArea.de/
b http://gurucubano.blogspot.com/
Don't top-post, read RFC1855 http://www.faqs.org/rfcs/rfc1855.html
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