]> git.ipfire.org Git - thirdparty/pdns.git/blob - m4/pdns_with_lua_records.m4
dnsdist: Gracefully handle a null latency in the webserver's JS
[thirdparty/pdns.git] / m4 / pdns_with_lua_records.m4
1 AC_DEFUN([PDNS_WITH_LUA_RECORDS], [
2 AC_MSG_CHECKING([whether we will enable LUA records])
3
4 AC_ARG_ENABLE([lua-records],
5 [AS_HELP_STRING([--disable-lua-records], [disable LUA records support @<:@default=no@:>@])],
6 [enable_lua_records=$enableval],
7 [enable_lua_records=yes]
8 )
9 AC_MSG_RESULT([$enable_lua_records])
10
11 AS_IF([test "x$enable_lua_records" != "xno"], [
12 AS_IF([test "x$LUAPC" = "x"],
13 AC_MSG_ERROR([LUA records need LUA. You can disable this feature with the --disable-lua-records switch or configure a proper LUA installation.])
14 )
15 LIBCURL_CHECK_CONFIG("yes", "7.21.3", [ : ], [
16 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.])
17 ])
18 AC_DEFINE([HAVE_LUA_RECORDS], [1], [Define if enabling LUA records.])
19 ])
20 AM_CONDITIONAL([HAVE_LUA_RECORDS], [test "x$enable_lua_records" != "xno"])
21 ])