]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
move re2 m4, only dnsdist uses it
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Mon, 15 Feb 2016 13:49:35 +0000 (14:49 +0100)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Mon, 15 Feb 2016 13:54:58 +0000 (14:54 +0100)
configure.ac
m4/pdns_check_re2.m4 [deleted file]
pdns/Makefile.am
pdns/dnsdistdist/m4/pdns_check_re2.m4 [changed from symlink to file mode: 0644]

index b29b3ec569be518600569d75dab9cabad0daeb5f..7c74206f564fd033564ef7c2fac11664f73ddb27 100644 (file)
@@ -254,8 +254,6 @@ AM_CONDITIONAL([LDAP],[test "x$needldap" = "xyes"])
 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
diff --git a/m4/pdns_check_re2.m4 b/m4/pdns_check_re2.m4
deleted file mode 100644 (file)
index cfa6fb4..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-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.])])
-])
index 2124caaf37ff3e49d0f5c81dfa0b473130c31547..fd23dcd9d5b6be49073315963bf22f55a902d902 100644 (file)
@@ -29,10 +29,6 @@ if SQLITE3
 AM_CPPFLAGS += $(SQLITE3_CFLAGS)
 endif
 
-if HAVE_RE2
-AM_CPPFLAGS += $(RE2_CFLAGS)
-endif
-
 if LUA
 AM_CPPFLAGS +=$(LUA_CFLAGS)
 endif
deleted file mode 120000 (symlink)
index 60ec5f937e34f6a3d0dae1c08539617979bdfde9..0000000000000000000000000000000000000000
+++ /dev/null
@@ -1 +0,0 @@
-../../../m4/pdns_check_re2.m4
\ No newline at end of file
new file mode 100644 (file)
index 0000000000000000000000000000000000000000..e4a8c9ff63d81acb4a972e268ed6f3e9301b5e56
--- /dev/null
@@ -0,0 +1,13 @@
+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.])])
+])