Your autotools probably can't see certain m4 macros. I had the exact same error message as you. The problem in my case was that the macros for pkg-config could not be found. So I added "-I /opt/pkg-config/share/aclocal" (pkg-config is installed under /opt/pkg-config on my system) to the co...