RPM Package Manager, CVS Repository http://rpm5.org/cvs/ ____________________________________________________________________________
Server: rpm5.org Name: Ralf S. Engelschall Root: /v/rpm/cvs Email: [EMAIL PROTECTED] Module: rpm Date: 01-Nov-2007 23:12:40 Branch: HEAD Handle: 2007110122124000 Modified files: rpm configure.ac Log: ok, third attempt: this time really check whether PCRE POSIX API can be *used* Summary: Revision Changes Path 2.246 +10 -5 rpm/configure.ac ____________________________________________________________________________ patch -p0 <<'@@ .' Index: rpm/configure.ac ============================================================================ $ cvs diff -u -r2.245 -r2.246 configure.ac --- rpm/configure.ac 1 Nov 2007 19:22:53 -0000 2.245 +++ rpm/configure.ac 1 Nov 2007 22:12:40 -0000 2.246 @@ -973,12 +973,17 @@ [PCRE], [pcre], [pcre], [pcre_compile], [pcre.h], [no,external:none], [], - [ AC_CHECK_HEADERS(pcreposix.h, [ - AC_CHECK_LIB(pcreposix, regcomp, [ - AC_DEFINE(WITH_PCRE_POSIX, 1, [Define as 1 if PCRE's POSIX API is available]) - LIBS="-lpcreposix $LIBS" - ]) + [ dnl # make sure PCRE POSIX API can be really _USED_ by RPM + LIBS_SAVED="$LIBS" + LIBS="-lpcreposix $LIBS" + AC_LINK_IFELSE([ + AC_LANG_PROGRAM([#include <pcreposix.h>], [(void)regcomp(0, 0, 0)]) + ], [ + AC_DEFINE(WITH_PCRE_POSIX, 1, [Define as 1 if PCRE's POSIX API is available]) + ], [ + LIBS="$LIBS_SAVED" ]) + dnl # enable PCRE native API support for embedded Lua if test ".$WITH_LUA" = .yes; then WITH_LUA_SUBDIR_DEF="$WITH_LUA_SUBDIR_DEF -DLUA_USE_PCRE" fi @@ . ______________________________________________________________________ RPM Package Manager http://rpm5.org CVS Sources Repository rpm-cvs@rpm5.org