From: David Lamparter Date: Wed, 31 May 2017 14:24:04 +0000 (+0200) Subject: build: fix pcreposix check X-Git-Tag: reindent-master-before~92^2~1^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=ad9a08250169daeb163a951c491cdc740afda34c;p=mirror%2Ffrr.git build: fix pcreposix check pcreposix_regexec doesn't exist (anymore?), it's just regexec. Also, if the user specifies --enable-pcreposix, not finding it is a fatal error. Signed-off-by: David Lamparter --- diff --git a/configure.ac b/configure.ac index 9b4af1f2bf..9b0f627362 100755 --- a/configure.ac +++ b/configure.ac @@ -1271,8 +1271,9 @@ dnl --------------------------- dnl check system has PCRE regexp dnl --------------------------- if test "x$enable_pcreposix" = "xyes"; then - AC_CHECK_LIB(pcreposix, pcreposix_regexec, ,[enable_pcreposix=no - AC_MSG_WARN([*** falling back to other regex library ***]) ]) + AC_CHECK_LIB(pcreposix, regexec, [], [ + AC_MSG_ERROR([--enable-pcreposix given but unable to find libpcreposix]) + ]) fi AC_SUBST(HAVE_LIBPCREPOSIX)