From 5cd429ecf5b0c7856a0c3e239171bf6998ea3aa5 Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Mon, 16 Apr 2018 17:42:46 +0200 Subject: [PATCH] autoconf: centralise lua* backend liblua check --- configure.ac | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/configure.ac b/configure.ac index 5ee4beee44..0e9fe50722 100644 --- a/configure.ac +++ b/configure.ac @@ -202,12 +202,12 @@ for a in $modules $dynmodules; do geoip) PDNS_CHECK_GEOIP ;; - lua) + lua*) AS_IF([test "x$with_lua" = "xno"], - [AC_MSG_ERROR([Lua backend needs lua, run ./configure --with-lua])] + [AC_MSG_ERROR([${a} 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])] + [AC_MSG_ERROR([${a} backend needs lua but we cannot find it])] ) ;; esac @@ -237,10 +237,6 @@ AM_CONDITIONAL([SQLITE3], [test "x$needsqlite3" = "xyes"]) for a in $modules; do AC_MSG_CHECKING([whether we can build module "${a}"]) - AS_IF([test "x$a" = "xlua2"], [ - AS_IF([test "x$with_lua" != "xyes"], - AC_MSG_ERROR([Cannot build lua2 module without lua]),[]) - ]) if [[ -d "$srcdir/modules/${a}backend" ]]; then AC_MSG_RESULT([yes]) moduledirs="$moduledirs ${a}backend" -- 2.47.2