From 84da0c5ccbc02738eca7ddc372c6bb6d85cc5a94 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Tue, 3 Jul 2007 18:20:14 +0200 Subject: [PATCH] configure.in: Speedup lua finding. --- configure.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 2d60da3d4..1c36469fc 100644 --- a/configure.in +++ b/configure.in @@ -907,7 +907,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