1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-02-02 15:09:23 -05:00

configure.in: Speedup lua finding.

This commit is contained in:
Witold Filipczyk 2007-07-03 18:20:14 +02:00 committed by Kalle Olavi Niemitalo
parent 0ff55c3ac2
commit 7a3f947a50

View File

@ -895,7 +895,8 @@ if test -z "$disable_lua"; then
fi
for luadir in "$withval" "" /usr /usr/local; do
for suffix in "" 50 51; do
if test "$cf_result" = no; then
if test "$cf_result" = no && ( test -f "$luadir/include/lua.h" || \
test -f "$luadir/include/lua$suffix/lua.h" ) ; then
LUA_LIBS="-llua$suffix -llualib$suffix -lm"
if test ! -z "$luadir"; then