PDNS_CHECK_SQLITE3
AM_CONDITIONAL([SQLITE3], [test "x$needsqlite3" = "xyes"])
-PDNS_CHECK_RE2
-
for a in $modules; do
AC_MSG_CHECKING([whether we can build module "${a}"])
if [[ -d "$srcdir/modules/${a}backend" ]]; then
+++ /dev/null
-AC_DEFUN([PDNS_CHECK_RE2], [
- AC_MSG_CHECKING([if we should compile in libre2 for dnsdist])
- AC_ARG_ENABLE([re2], [AS_HELP_STRING([--enable-re2],[enable libre2 @<:@default=no@:>@])],
- [enable_re2=$enableval],
- [enable_re2=no]
- )
- AC_MSG_RESULT([$enable_re2])
- AS_IF([test "x$enable_re2" = "xyes"], [
- PKG_CHECK_MODULES([RE2], [re2], [HAVE_RE2=1], [AC_MSG_ERROR([Could not find libre2])])
- ], [HAVE_RE2=0])
- AM_CONDITIONAL([HAVE_RE2], [test "$HAVE_RE2" -eq 1])
- AS_IF([test "$HAVE_RE2" -eq 1], [AC_DEFINE([HAVE_RE2], [1], [Define if using RE2.])])
-])
AM_CPPFLAGS += $(SQLITE3_CFLAGS)
endif
-if HAVE_RE2
-AM_CPPFLAGS += $(RE2_CFLAGS)
-endif
-
if LUA
AM_CPPFLAGS +=$(LUA_CFLAGS)
endif
+++ /dev/null
-../../../m4/pdns_check_re2.m4
\ No newline at end of file
--- /dev/null
+AC_DEFUN([PDNS_CHECK_RE2], [
+ AC_MSG_CHECKING([if we should compile in libre2 for dnsdist])
+ AC_ARG_ENABLE([re2], [AS_HELP_STRING([--enable-re2],[enable libre2 @<:@default=no@:>@])],
+ [enable_re2=$enableval],
+ [enable_re2=no]
+ )
+ AC_MSG_RESULT([$enable_re2])
+ AS_IF([test "x$enable_re2" = "xyes"], [
+ PKG_CHECK_MODULES([RE2], [re2], [HAVE_RE2=1], [AC_MSG_ERROR([Could not find libre2])])
+ ], [HAVE_RE2=0])
+ AM_CONDITIONAL([HAVE_RE2], [test "$HAVE_RE2" -eq 1])
+ AS_IF([test "$HAVE_RE2" -eq 1], [AC_DEFINE([HAVE_RE2], [1], [Define if using RE2.])])
+])