From: RĂ©mi Denis-Courmont Date: Sun, 11 Apr 2010 06:46:52 +0000 (+0300) Subject: Check for missing LUAC in configure rather than make, make it precious X-Git-Tag: 1.1.0-pre1~49 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=7fb93d7334588cf55a6f36f5a0dda243ae687ea8;p=vlc Check for missing LUAC in configure rather than make, make it precious --- 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 \