]>
Commit | Line | Data |
---|---|---|
8900e2e3 | 1 | AC_DEFUN([PDNS_WITH_LUA_RECORDS], [ |
1fab833c | 2 | AC_REQUIRE([PDNS_CHECK_LIBCURL]) |
8900e2e3 CHB |
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"], [ | |
d292e1bd CHB |
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 | ) | |
b9f7a489 | 16 | AS_IF([test "$HAVE_LIBCURL" != "y"], [ |
0806adff CHB |
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 | ]) | |
b9f7a489 | 19 | |
8900e2e3 CHB |
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 | ]) |