--- /dev/null
+AC_DEFUN([PDNS_CHECK_LIBCURL], [
+ AS_IF([test -n "$HAVE_LIBCURL"], [ : ], [
+ LIBCURL_CHECK_CONFIG("yes", "7.21.3", [ HAVE_LIBCURL=y ], [ HAVE_LIBCURL=n ])
+ ])
+])
AS_IF([test "x$LUAPC" = "x"],
AC_MSG_ERROR([LUA records need LUA. You can disable this feature with the --disable-lua-records switch or configure a proper LUA installation.])
)
- LIBCURL_CHECK_CONFIG("yes", "7.21.3", [ : ], [
+ PDNS_CHECK_LIBCURL()
+ AS_IF([test "$HAVE_LIBCURL" != "y"], [
AC_MSG_ERROR([libcurl minimum version requirement not met. This is required for LUA records. You can disable it with the --disable-lua-records switch or use --with-libcurl to select another curl installation.])
])
+
AC_DEFINE([HAVE_LUA_RECORDS], [1], [Define if enabling LUA records.])
])
AM_CONDITIONAL([HAVE_LUA_RECORDS], [test "x$enable_lua_records" != "xno"])