While running autogen.sh
on a newly intalled debian 11.2 system, I got the following error:
0libtoolize: copying file 'build-aux/m4/lt~obsolete.m4'
1configure.ac:16: error: possibly undefined macro: AC_MSG_ERROR
2 If this token and others are legitimate, please use m4_pattern_allow.
3 See the Autoconf documentation.
4configure.ac:261: error: possibly undefined macro: AC_DEFINE
5configure.ac:662: error: possibly undefined macro: AC_MSG_WARN
6autoreconf: /usr/bin/autoconf failed with exit status: 1
The problem turned out to be that the pkg-config
package was missing (autoconf automake libtool
were installed). I could not guess this from the error message. It might make sense to add an explicit check to give a more specific error.