From 7fb93d7334588cf55a6f36f5a0dda243ae687ea8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sun, 11 Apr 2010 09:46:52 +0300 Subject: [PATCH] Check for missing LUAC in configure rather than make, make it precious --- configure.ac | 5 ++++- share/Makefile.am | 4 ---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index 9fc2af9ba8..b3e0ee24d2 100644 --- a/configure.ac +++ b/configure.ac @@ -1629,7 +1629,10 @@ then else AC_MSG_ERROR([Could not find lua. Lua is needed for some interfaces (rc, telnet, http) as well as many other custom scripts. Use --disable-lua to ignore this error.]) fi - AC_PATH_PROG(LUAC, luac) + AC_ARG_VAR([LUAC], [LUA byte compiler]) + AC_PATH_PROG(LUAC, luac, [ + AC_MSG_ERROR([Could not find the LUA byte compiler.]) + ]) fi AM_CONDITIONAL(BUILD_LUA, [test "${have_lua}" = "yes"]) diff --git a/share/Makefile.am b/share/Makefile.am index a7d0b39e73..59d424f199 100644 --- a/share/Makefile.am +++ b/share/Makefile.am @@ -193,10 +193,6 @@ luac_verbose_ = $(luac_verbose_$(AM_DEFAULT_VERBOSITY)) luac_verbose_0 = @echo " LUAC $@"; .lua.luac: - $(AM_V_at)if test -z "$(LUAC)"; then \ - echo "LUA byte compiler missing." >&2; \ - exit 1 ; \ - fi $(AM_V_at)for f in $(EXTRA_DIST); do \ test "$(srcdir)" = . || f="$(srcdir)/$$f"; \ if test $$f = $<; then \ -- 2.39.2