编译最新的2.1.0版本,用默认的 ./configure编译
当make的时候,出现以下错误
root@debian:/tmp/log4cplus-2.1.0# make
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/bash '/tmp/log4cplus-2.1.0/missing' aclocal-1.16 -I m4
cd . && /bin/bash /tmp/log4cplus-2.1.0/missing automake-1.16 --foreign
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/bash '/tmp/log4cplus-2.1.0/missing' autoconf
configure.ac:453: error: possibly undefined macro: AC_CHECK_INCLUDES_DEFAULT
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
make: *** [Makefile:1635:configure] 错误 1
root@debian:/tmp/log4cplus-2.1.0#
解决办法 ,编译加m4_pattern_allow参数
即:./configure --enable-m4_pattern_allow
便能顺利编译安装