autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AM_CONDITIONAL seems failure, help


From: Allan Clark
Subject: Re: AM_CONDITIONAL seems failure, help
Date: Fri, 9 Oct 2009 13:19:29 +0100

On Fri, Oct 9, 2009 at 09:34, 张亚霏 <address@hidden> 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([
> #include <pcrecpp.h>
> ],
> [build_pcrecpp=true; AC_MSG_RESULT(yes)],
> [build_pcrecpp=false; AC_MSG_RESULT(no)]
> )
> AM_CONDITIONAL([BUILD_PCRECPP],[test "$build_pcrecpp"="true"])
>
>
> AC_CHECK_LIB([iconv], [libiconv_open],
> [build_libiconv=yes],
> [build_libiconv=no])
> AM_CONDITIONAL([BUILD_LIBICONV],[test "$build_libiconv"="yes"])
> ...
> AC_CONFIG_FILES([Makefile \
> other/Makefile \
> performance/Makefile \
> posix/Makefile \
> stdc/Makefile])
> AC_OUTPUT
>
>
> ./configure outputs:
> ...
> checking for pcre_compile in -lpcre... no
>

try checking the result with:

grep build_pcre ./config.status

it's a bit more deterministic than checking your Makefiles, which may
involve other typos and errors.

-- 
address@hidden  "金鱼" http://linkedin.com/in/goldfish
please, no proprietary attachments (http://tinyurl.com/cbgq)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]