Configure: do not check for pcre1 if pcre2 requested

This commit is contained in:
Martin Vierula
2023-08-24 15:01:14 -07:00
parent 11f85b82e1
commit d4310f54cc

View File

@@ -21,6 +21,9 @@ AC_ARG_WITH(
[test_paths="${with_pcre}"],
[test_paths="/usr/local/libpcre /usr/local/pcre /usr/local /opt/libpcre /opt/pcre /opt /usr"])
if test "x${with_pcre2}" != "x" && test "x${with_pcre2}" != "xno"; then
AC_MSG_NOTICE([pcre2 specified; omitting check for pcre])
else
AC_MSG_CHECKING([for libpcre config script])
dnl # Determine pcre lib directory
@@ -86,4 +89,5 @@ else
AC_MSG_NOTICE([using pcre v${PCRE_VERSION}])
ifelse([$1], , , $1)
fi
fi
])