From a20adc10d1613e9bbabb5a39a8884faed7823187 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Tue, 7 Oct 2014 12:04:32 +0200 Subject: [PATCH] Handle missing Lua when lua backend is enabled The first case handles ./configure --with-modules='lua' --with-lua=no. I don't know who would do such a thing, but better handle it in ./configure than bailing out later with a compiler error. The second case handles ./configure --with-modules=lua when you don't have Lua installed, which I actually observed since I assumed enabling the lua backend would be enough, and I did't have the lua headers on my system. Fixes #1618 --- configure.ac | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/configure.ac b/configure.ac index 9028cfe7b7..c8d2a0015b 100644 --- a/configure.ac +++ b/configure.ac @@ -291,6 +291,14 @@ for a in $modules $dynmodules; do geoip) PDNS_CHECK_GEOIP ;; + lua) + AS_IF([test "x$with_lua" = "xno"], + AC_MSG_ERROR([Lua backend needs lua, run ./configure --with-lua]) + ) + AS_IF([test "x$LUAPC" = "x"], + AC_MSG_ERROR([Lua backend needs lua but we cannot find it]) + ) + ;; esac done -- 2.47.2