On Fri, Oct 9, 2009 at 09:34, 张亚霏 <zhangyafeikimi@xxxxxxxxx> 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. -- allanc@xxxxxxxxxxxxxxxxxx "金鱼" http://linkedin.com/in/goldfish please, no proprietary attachments (http://tinyurl.com/cbgq) _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx http://lists.gnu.org/mailman/listinfo/autoconf