--- configure.in +++ configure.in @@ -37,7 +37,7 @@ LUA_LIBS="`[$LUACONFIG --libs]`" else dnl ...otherwise, attempt to guess LUA_CFLAGS="" - LUA_LIBS="" + LUA_LIBS="-ldl" AC_CHECK_LIB(lua, lua_setfenv, LUA_LIBS="$LUA_LIBS -llua", [AC_CHECK_LIB(lua50, lua_setfenv, LUA_LIBS="$LUA_LIBS -llua50", [AC_CHECK_LIB(lua5.0, lua_setfenv, LUA_LIBS="$LUA_LIBS -llua5.0",