diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2013-03-06 20:43:53 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2013-03-06 20:43:53 -0300 |
commit | 32f8234b8bb9f42978d73fd3efb5c5a1d6037565 (patch) | |
tree | db0c53f5f02bb15e1d52cd4712683114802aaa14 | |
parent | 73ddf616ba5b9e14979a4ab8f16702d2d502098c (diff) | |
download | luarocks-32f8234b8bb9f42978d73fd3efb5c5a1d6037565.tar.gz luarocks-32f8234b8bb9f42978d73fd3efb5c5a1d6037565.tar.bz2 luarocks-32f8234b8bb9f42978d73fd3efb5c5a1d6037565.zip |
Fixed detection of Debian paths for Lua includes.
-rwxr-xr-x | configure | 22 |
1 files changed, 12 insertions, 10 deletions
@@ -329,20 +329,22 @@ if [ -f "$lua_h" ] | |||
329 | then | 329 | then |
330 | echo "lua.h found in $lua_h" | 330 | echo "lua.h found in $lua_h" |
331 | else | 331 | else |
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 |
348 | fi | 350 | fi |