aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconfigure22
1 files changed, 12 insertions, 10 deletions
diff --git a/configure b/configure
index f40a2df8..2e98a9e5 100755
--- a/configure
+++ b/configure
@@ -329,20 +329,22 @@ if [ -f "$lua_h" ]
329then 329then
330 echo "lua.h found in $lua_h" 330 echo "lua.h found in $lua_h"
331else 331else
332 LUA_INCDIR="$LUA_INCDIR/lua/$LUA_VERSION" 332 v_dir="$LUA_INCDIR/lua/$LUA_VERSION"
333 d_lua_h="$LUA_INCDIR/lua.h" 333 lua_h="$v_dir/lua.h"
334 if [ -f "$d_lua_h" ] 334 if [ -f "$lua_h" ]
335 then 335 then
336 echo "lua.h found in $d_lua_h" 336 echo "lua.h found in $lua_h"
337 LUA_INCDIR="$v_dir"
337 else 338 else
338 LUA_INCDIR="$LUA_INCDIR/lua$LUA_VERSION" 339 d_dir="$LUA_INCDIR/lua$LUA_VERSION"
339 d_lua_h="$LUA_INCDIR/lua.h" 340 lua_h="$d_dir/lua.h"
340 if [ -f "$d_lua_h" ] 341 if [ -f "$lua_h" ]
341 then 342 then
342 echo "lua.h found in $d_lua_h (Debian/Ubuntu)" 343 echo "lua.h found in $lua_h (Debian/Ubuntu)"
344 LUA_INCDIR="$d_dir"
343 else 345 else
344 echo "lua.h not found (looked in $lua_h)" 346 echo "lua.h not found (looked in $LUA_INCDIR, $v_dir, $d_dir)"
345 die "You may want to use the flag --with-lua-include. See --help." 347 die "You may want to use the flag --with-lua or --with-lua-include. See --help."
346 fi 348 fi
347 fi 349 fi
348fi 350fi