From cd993151d24c771c835ee5e1f750905753971d22 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Mon, 12 Jan 2015 21:22:19 -0200 Subject: Fix search of lua interpreter. Closes #301. --- configure | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/configure b/configure index b1fa834a..33e52d9a 100755 --- a/configure +++ b/configure @@ -262,17 +262,17 @@ search_interpreter() { find_lua="$LUA_BINDIR" elif [ "$LUA_DIR_SET" = "yes" ] then - if [ -f "$LUA_DIR/bin/lua$suffix" ] + if [ -f "$LUA_DIR/bin/lua$LUA_SUFFIX" ] then find_lua="$LUA_DIR/bin" fi else - find_lua=`find_program lua$suffix` + find_lua=`find_program lua$LUA_SUFFIX` fi - if [ -n "$find_lua" ] + if [ -n "$find_lua" -a -x "$find_lua/lua$LUA_SUFFIX" ] then - echo "Lua interpreter: $find_lua/lua$suffix..." - detect_lua_version "$find_lua/lua$suffix" + echo "Lua interpreter found: $find_lua/lua$LUA_SUFFIX..." + detect_lua_version "$find_lua/lua$LUA_SUFFIX" return 0 fi return 1 -- cgit v1.2.3-55-g6feb