我在configure.ac文件中有以下内容:
AC_CHECK_PROGS(MAKE,$MAKE make gmake,error)
if test "x$MAKE" = "xerror" ;then
AC_MSG_ERROR([cannot find a make command])
fi
这个问题在我们的项目中存在很长时间了,但在某些设置中,我会收到这个错误:
configure.ac:45: error: possibly undefined macro: AC_MSG_ERROR
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
最近添加的这些行:
AC_CONFIG_MACRO_DIR([m4])
LT_INIT
有谁能解释一下这个错误是什么原因,并且如何追踪问题?
编辑:添加有关差异的详细信息。
正常工作的框:
uname -a Linux host1 2.6.38-13-generic #53-Ubuntu SMP Mon Nov 28 19:33:45 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
automake: 1.11.1
autoconf: 2.67
m4: 1.4.14
libtoolize: 2.2.6b
无法使用的盒子:
Linux host2 2.6.32-35-generic-pae #78-Ubuntu SMP Tue Oct 11 17:01:12 UTC 2011 i686 GNU/Linux
automake: 1.11.1
autoconf: 2.65
m4: 1.4.13
libtoolize: 2.2.6b
最新编辑:只有32位机器会遇到这个问题。
更新:我能够在一台安装有autoconf 2.67
、automake 1.11.1
、libtool 2.2.6b
和m4 1.4.14
的CentOS机器上重现这个问题。这只是32位机器的一个错误吗?