From 98540f9f0883ecc41d912db3eb8f00816fdbddb6 Mon Sep 17 00:00:00 2001 From: Thomas D Date: Fri, 13 Feb 2015 13:58:26 +0100 Subject: [PATCH] Add check for curl program When building "remote" module with unit tests enabled we need the curl program because the remotebacked testsuite uses the curl program. --- configure.ac | 4 ++++ m4/pdns_check_curl_program.m4 | 7 +++++++ 2 files changed, 11 insertions(+) create mode 100644 m4/pdns_check_curl_program.m4 diff --git a/configure.ac b/configure.ac index b89e6cac9e..cde58a67d7 100644 --- a/configure.ac +++ b/configure.ac @@ -269,6 +269,10 @@ for a in $modules $dynmodules; do PDNS_CHECK_OPENDBX ;; remote) + AS_IF([test "x$enable_unit_tests" = "xyes"], + [PDNS_CHECK_CURL_PROGRAM] + ) + have_remotebackend=yes ;; tinydns) diff --git a/m4/pdns_check_curl_program.m4 b/m4/pdns_check_curl_program.m4 new file mode 100644 index 0000000000..d6abe1c7d0 --- /dev/null +++ b/m4/pdns_check_curl_program.m4 @@ -0,0 +1,7 @@ +AC_DEFUN([PDNS_CHECK_CURL_PROGRAM], [ + AC_CHECK_PROG([CURL], [curl], [curl], [no]) + + AS_IF([test "x$CURL" = "xno"], [ + AC_MSG_ERROR([curl program is missing, required for running remotebackend unit tests]) + ]) +]) -- 2.47.2