manylinux
manylinux copied to clipboard
pkg-config macros not included in upgraded autotools-1.16 aclocal directory
Hello,
While using the manylinux images, I started getting errors like this during autoreconf -fiv:
configure.ac:1: error: possibly undefined macro: dnl
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:76: error: possibly undefined macro: AC_SEARCH_LIBS
configure:14375: error: *** pkg.m4 missing, please install pkg-config
configure:14376: error: possibly undefined macro: AS_VAR_SET
It appears that the pkgconfig package includes the following macro file for autotools:
# repoquery --list pkgconfig | grep m4
/usr/share/aclocal/pkg.m4
But the upgraded version of autotools stores its macros at /usr/local/share/aclocal-1.16/. The autoreconf will succeed if you first copy the pkg.m4 file into the proper directory:
# cp /usr/share/aclocal/pkg.m4 /usr/local/share/aclocal-1.16/
Maybe this should be done while building the image so that autotools works transparently with pkg-config?