[vlc-devel] [PATCH 2/2] Refuse to use luac when cross-compiling

Rafaël Carré funman at videolan.org
Fri Feb 10 12:05:31 CET 2012


Can be overridden with LUAC env variable
---
 configure.ac |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index 2567fb0..f8f4bbd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1588,7 +1588,14 @@ then
       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_ARG_VAR([LUAC], [LUA byte compiler])
-  AC_PATH_PROGS(LUAC,[${LUAC} luac], [false])
+  dnl do not use build's luac if cross compiling, unless it is forced through $LUAC
+  if test ${cross_compiling} = yes
+  then
+    luac_binaries=
+  else
+    luac_binaries=luac
+  fi
+  AC_PATH_PROGS(LUAC,[${luac_binaries}], [false])
   AS_IF([test "${LUAC}" = "false"], [
     AC_MSG_ERROR([Could not find the LUA byte compiler.])
   ])
-- 
1.7.9



More information about the vlc-devel mailing list