Skip to content

Commit

Permalink
Merge pull request e2guardian#798 from sunweaver/pr/pcre2
Browse files Browse the repository at this point in the history
PCRE support: Build against pcre2 rather than deprecated pcre shared …
  • Loading branch information
philipianpearce authored Feb 12, 2024
2 parents ecd2754 + e0ba4e4 commit 998a01d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,8 @@ AC_MSG_RESULT(yes)
)

if test "x$pcre" = "xtrue"; then
PKG_CHECK_MODULES([PCRE],[libpcre >= 6.0])
PKG_CHECK_MODULES([PCRE],[libpcre2-posix >= 10.42])
AC_DEFINE([HAVE_PCRE],[],[Define to enable PCRE support])
PCRE_LIBS="-lpcreposix ${PCRE_LIBS}"
else
AC_CHECK_FUNCS([regcomp])
fi
Expand Down
2 changes: 1 addition & 1 deletion src/RegExp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include <sys/types.h> // needed for size_t used in regex.h

#ifdef HAVE_PCRE
#include <pcreposix.h>
#include <pcre2posix.h>
#else
#include <regex.h>
#endif
Expand Down

0 comments on commit 998a01d

Please sign in to comment.