From d6ec7be424da729aae093516c30c93eff18c5e23 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Thu, 22 Dec 2022 23:15:16 +0200 Subject: [PATCH 41/41] Always use system tolua in emscripten builds See osdn #46333 Signed-off-by: Marko Lindqvist --- configure.ac | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index b7b36cb516..8b413e4bf9 100644 --- a/configure.ac +++ b/configure.ac @@ -1756,12 +1756,14 @@ AC_ARG_ENABLE([sys-tolua-cmd], no) if test "x$cross_compiling" = "xyes" ; then AC_MSG_ERROR([Must use external build system tolua command when cross-compiling]) + elif test "x$emscripten" = "xyes" ; then + AC_MSG_ERROR([Must use external build system tolua command in emscripten build]) fi sys_tolua_cmd=false ;; *) sys_tolua_cmd=${enableval} ;; esac], [ -if test "x$cross_compiling" = "xyes" ; then +if test "x$cross_compiling" = "xyes" || test "x$emscripten" = "xyes" ; then sys_tolua_cmd=true else dnl Our own tolua is better than upstream one, so prefer it. -- 2.35.1