如何修复 autoconf 错误:possibly undefined macro: AM_INIT_AUTOMAKE
问题
运行 autoconf 时,你看到如下错误消息
autoconf_error_log.txt
configure.ac:15: error: possibly undefined macro: AM_INIT_AUTOMAKE
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:29: error: possibly undefined macro: AC_PROG_LIBTOOL
configure.ac:36: error: possibly undefined macro: AC_MSG_ERROR
configure.ac:38: error: possibly undefined macro: AM_CONDITIONAL
configure.ac:55: error: possibly undefined macro: AC_CHECK_PTHREAD_SETNAME_NP解决方案
在运行 autoconf 之前,你需要运行 aclocal 生成 aclocal.m4 文件。
run_aclocal.sh
aclocal之后,你可以再次运行 autoconf,错误应该消失。
Check out similar posts by category:
Build Systems
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow