hi all:
I write these lines in configure.in:
AC_CHECK_LIB([pcre], [pcre_compile],
[build_pcre=true],
[build_pcre=false])
AM_CONDITIONAL([BUILD_PCRE],[test $build_pcre = true])
AC_MSG_CHECKING(pcrecpp)
AC_COMPILE_IFELSE([
#include pcrecpp.h
],
[build_pcrecpp=true; AC_MSG_RESULT(yes)],
В Fri, 09 Oct 2009 16:34:38 +0800, 张亚霏 написа:
AM_CONDITIONAL([BUILD_PCRECPP],[test $build_pcrecpp=true])
Put spaces around `=' (also for the BUILD_LIBICONV conditional).
The test for pcrecpp has to be performed with a C++ compiler, otherwise
the conditional will always be false. (You can
On Fri, Oct 9, 2009 at 09:34, 张亚霏 zhangyafeik...@gmail.com wrote:
hi all:
I write these lines in configure.in:
AC_CHECK_LIB([pcre], [pcre_compile],
[build_pcre=true],
[build_pcre=false])
AM_CONDITIONAL([BUILD_PCRE],[test $build_pcre = true])
AC_MSG_CHECKING(pcrecpp)
AC_COMPILE_IFELSE([