# # # patch "m4/pcre.m4" # from [8597a87059c5ad79d8d8e4b15a4b0b99bd4081c6] # to [5f81d646e630ac56e84b9651c4cd58dfbe0cd5b7] # ============================================================ --- m4/pcre.m4 8597a87059c5ad79d8d8e4b15a4b0b99bd4081c6 +++ m4/pcre.m4 5f81d646e630ac56e84b9651c4cd58dfbe0cd5b7 @@ -34,7 +34,7 @@ AC_DEFUN([MTN_FIND_PCRE], if test -n "${PCRE_CFLAGS+set}" || test -n "${PCRE_LIBS+set}"; then found_libpcre=yes else - PKG_CHECK_MODULES([PCRE], [libpcre], + PKG_CHECK_MODULES([PCRE], [libpcre >= 6.7], [found_libpcre=yes], [found_libpcre=no]) fi if test $found_libpcre = no; then @@ -75,7 +75,11 @@ AC_DEFUN([MTN_FIND_PCRE], AC_LINK_IFELSE([AC_LANG_PROGRAM( [#include ], [const char *e; + int dummy; int o; + /* Make sure some definitions are present. */ + dummy = PCRE_NEWLINE_CR; + dummy = PCRE_DUPNAMES; pcre *re = pcre_compile("foo", 0, &e, &o, 0);])], [ac_cv_lib_pcre_works=yes], [ac_cv_lib_pcre_works=no]) LIBS="$save_LIBS"