Changeset

8088:179a6f30694e

Merge 0.10->trunk
author Kim Alvefur <zash@zash.se>
date Sat, 15 Apr 2017 02:15:15 +0200
parents 8085:7a13fa890472 (current diff) 8087:eb38f3b919be (diff)
children 8090:00d1fb300c74
files
diffstat 1 files changed, 14 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Thu Apr 13 22:38:31 2017 +0200
+++ b/configure	Sat Apr 15 02:15:15 2017 +0200
@@ -425,15 +425,15 @@
 }
 fi
 
-if [ "$lua_interp_found" != "yes" ]
+if [ "$lua_interp_found" != "yes" -a "$RUNWITH_SET" != "yes" ]
 then
    [ "$LUA_VERSION_SET" ] && { interp="Lua $LUA_VERSION" ;} || { interp="Lua" ;}
-   [ "$LUA_DIR_SET" -o "$LUA_BINDIR_SET" ] && { where="$LUA_BINDIR" ;} || { interp="\$PATH" ;}
+   [ "$LUA_DIR_SET" -o "$LUA_BINDIR_SET" ] && { where="$LUA_BINDIR" ;} || { where="\$PATH" ;}
    echo "$interp interpreter not found in $where"
    die "You may want to use the flags --with-lua, --with-lua-bin and/or --lua-suffix. See --help."
 fi
 
-if [ "$LUA_VERSION_SET" = "yes" ]
+if [ "$LUA_VERSION_SET" = "yes" -a "$RUNWITH_SET" != "yes" ]
 then
    echo_n "Checking if $LUA_BINDIR/lua$LUA_SUFFIX is Lua version $LUA_VERSION... "
    if detect_lua_version "$LUA_BINDIR/lua$LUA_SUFFIX"
@@ -481,15 +481,18 @@
    fi
 fi
 
-echo_n "Checking if Lua header version matches that of the interpreter... "
-header_version=$(sed -n 's/.*LUA_VERSION_NUM.*5.\(.\).*/5.\1/p' "$lua_h")
-if [ "$header_version" = "$LUA_VERSION" ]
+if [ "$lua_interp_found" = "yes" ]
 then
-   echo "yes"
-else
-   echo "no"
-   echo "lua.h version mismatch (interpreter: $LUA_VERSION; lua.h: $header_version)."
-   die "You may want to use the flag --with-lua or --with-lua-include. See --help."
+   echo_n "Checking if Lua header version matches that of the interpreter... "
+   header_version=$(sed -n 's/.*LUA_VERSION_NUM.*5.\(.\).*/5.\1/p' "$lua_h")
+   if [ "$header_version" = "$LUA_VERSION" ]
+   then
+      echo "yes"
+   else
+      echo "no"
+      echo "lua.h version mismatch (interpreter: $LUA_VERSION; lua.h: $header_version)."
+      die "You may want to use the flag --with-lua or --with-lua-include. See --help."
+   fi
 fi
 
 echo_n "Configuring for system... "