0004-build-pcre.m4-fix-build-without-pcre.patch 907 B

1234567891011121314151617181920212223242526272829
  1. From af96f4fe916adc7dc6d649a07c10b45c978d31a1 Mon Sep 17 00:00:00 2001
  2. From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  3. Date: Wed, 27 Jul 2022 14:17:20 +0200
  4. Subject: [PATCH] build/pcre.m4: fix build without pcre
  5. Don't raise an error if pcre is disabled now that pcre2 is supported
  6. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  7. [Upstream status: not sent (no feedback on
  8. https://github.com/SpiderLabs/ModSecurity/pull/2596)]
  9. ---
  10. build/pcre.m4 | 1 -
  11. 1 file changed, 1 deletion(-)
  12. diff --git a/build/pcre.m4 b/build/pcre.m4
  13. index f6c9ae18..3e40f5c9 100644
  14. --- a/build/pcre.m4
  15. +++ b/build/pcre.m4
  16. @@ -99,7 +99,6 @@ AC_SUBST(PCRE_LD_PATH)
  17. if test -z "${PCRE_VERSION}"; then
  18. AC_MSG_NOTICE([*** pcre library not found.])
  19. - ifelse([$2], , AC_MSG_ERROR([pcre library is required]), $2)
  20. else
  21. AC_MSG_NOTICE([using pcre v${PCRE_VERSION}])
  22. ifelse([$1], , , $1)
  23. --
  24. 2.35.1