]> git.ipfire.org Git - thirdparty/pdns.git/blob - m4/pdns_with_lua_records.m4
Merge pull request #14021 from Habbie/auth-lua-join-whitespace
[thirdparty/pdns.git] / m4 / pdns_with_lua_records.m4
1 AC_DEFUN([PDNS_WITH_LUA_RECORDS], [
2 AC_REQUIRE([PDNS_CHECK_LIBCURL])
3 AC_MSG_CHECKING([whether we will enable LUA records])
4
5 AC_ARG_ENABLE([lua-records],
6 [AS_HELP_STRING([--disable-lua-records], [disable LUA records support @<:@default=no@:>@])],
7 [enable_lua_records=$enableval],
8 [enable_lua_records=yes]
9 )
10 AC_MSG_RESULT([$enable_lua_records])
11
12 AS_IF([test "x$enable_lua_records" != "xno"], [
13 AS_IF([test "x$LUAPC" = "x"],
14 AC_MSG_ERROR([LUA records need LUA. You can disable this feature with the --disable-lua-records switch or configure a proper LUA installation.])
15 )
16 AS_IF([test "$HAVE_LIBCURL" != "y"], [
17 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.])
18 ])
19
20 AC_DEFINE([HAVE_LUA_RECORDS], [1], [Define if enabling LUA records.])
21 ])
22 AM_CONDITIONAL([HAVE_LUA_RECORDS], [test "x$enable_lua_records" != "xno"])
23 ])