diff -up Lmod-8.3.17/configure.ac.lua54 Lmod-8.3.17/configure.ac
--- Lmod-8.3.17/configure.ac.lua54	2020-07-01 07:36:21.485611936 -0400
+++ Lmod-8.3.17/configure.ac	2020-07-01 07:36:42.517262553 -0400
@@ -667,8 +667,8 @@ fi
 
 IntLuaV=$( $luaprog  -e "_,_,M,m=_VERSION:gsub('Lua%s+',''):find('(%d+)%.(%d)'); print(math.floor(tonumber(M)*1000+tonumber(m)))")
 
-if test $IntLuaV -lt 5001 -o $IntLuaV -gt 5003; then
-  echo "Error: Lmod requires versions 5.1 or 5.2 or 5.3, You have: $LuaV"
+if test $IntLuaV -lt 5001 -o $IntLuaV -gt 5004; then
+  echo "Error: Lmod requires versions 5.1 or 5.2 or 5.3 or 5.4, You have: $LuaV"
   rm -f makefile
   exit 1
 fi
diff -up Lmod-8.3.17/configure.lua54 Lmod-8.3.17/configure
--- Lmod-8.3.17/configure.lua54	2020-07-01 07:37:35.882376092 -0400
+++ Lmod-8.3.17/configure	2020-07-01 07:37:48.545165732 -0400
@@ -4942,8 +4942,8 @@ fi
 
 IntLuaV=$( $luaprog  -e "_,_,M,m=_VERSION:gsub('Lua%s+',''):find('(%d+)%.(%d)'); print(math.floor(tonumber(M)*1000+tonumber(m)))")
 
-if test $IntLuaV -lt 5001 -o $IntLuaV -gt 5003; then
-  echo "Error: Lmod requires versions 5.1 or 5.2 or 5.3, You have: $LuaV"
+if test $IntLuaV -lt 5001 -o $IntLuaV -gt 5004; then
+  echo "Error: Lmod requires versions 5.1 or 5.2 or 5.3 or 5.4, You have: $LuaV"
   rm -f makefile
   exit 1
 fi
