[vlc-commits] configure: look for luac as a (potential) cross-tool

Rémi Denis-Courmont git at videolan.org
Sat Aug 6 15:38:55 CEST 2016


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Aug  6 16:37:06 2016 +0300| [1fa96fee1470d1478194d79fc89f79a9bec9ab77] | committer: Rémi Denis-Courmont

configure: look for luac as a (potential) cross-tool

This is the bulldozer approach to precompiling Lua to different
architectures.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1fa96fee1470d1478194d79fc89f79a9bec9ab77
---

 configure.ac | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index b40402b..4c66987 100644
--- a/configure.ac
+++ b/configure.ac
@@ -436,6 +436,9 @@ AS_IF([test -n "${CONTRIB_DIR}"], [
   export PKG_CONFIG_PATH="${CONTRIB_DIR}/lib/pkgconfig:$PKG_CONFIG_PATH"
   LDFLAGS="${LDFLAGS} -L${CONTRIB_DIR}/lib"
 
+  dnl Tempting, but needs to be set during bootstrap and make too...
+  dnl export PATH="$PATH:${CONTRIB_DIR}/../bin"
+
   AS_IF([test "${SYS}" = "darwin"], [
     export LD_LIBRARY_PATH="${CONTRIB_DIR}/lib:$LD_LIBRARY_PATH"
     export DYLD_LIBRARY_PATH="${CONTRIB_DIR}/lib:$DYLD_LIBRARY_PATH"
@@ -1561,7 +1564,7 @@ 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_CHECK_PROGS(LUAC, [${LUAC} luac], [false])
+  AC_CHECK_TOOLS(LUAC, [${LUAC} luac], [false])
   AS_IF([test "${LUAC}" = "false"], [
     AC_MSG_ERROR([Could not find the LUA byte compiler.])
   ])



More information about the vlc-commits mailing list