When building "remote" module with unit tests enabled we need the curl program
because the remotebacked testsuite uses the curl program.
PDNS_CHECK_OPENDBX
;;
remote)
+ AS_IF([test "x$enable_unit_tests" = "xyes"],
+ [PDNS_CHECK_CURL_PROGRAM]
+ )
+
have_remotebackend=yes
;;
tinydns)
--- /dev/null
+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])
+ ])
+])