ea0186d0a6
Lutok provides thin C++ wrappers around the Lua C API to ease the interaction between C++ and Lua. These wrappers make intensive use of RAII to prevent resource leakage, expose C++-friendly data types, report errors by means of exceptions and ensure that the Lua stack is always left untouched in the face of errors. The library also provides a small subset of miscellaneous utility functions built on top of the wrappers. Lutok focuses on providing a clean and safe C++ interface; the drawback is that it is not suitable for performance-critical environments. In order to implement error-safe C++ wrappers on top of a Lua C binary library, Lutok adds several layers or abstraction and error checking that go against the original spirit of the Lua C API and thus degrade performance. WWW: https://code.google.com/p/lutok/ PR: ports/177639 Submitted by: Alan Somers <asomers@FreeBSD.org>
13 lines
444 B
Text
13 lines
444 B
Text
--- m4/lua.m4.old 2013-03-25 16:13:07.943129888 -0600
|
|
+++ m4/lua.m4 2013-03-25 16:13:20.186640871 -0600
|
|
@@ -37,6 +37,10 @@
|
|
PKG_CHECK_MODULES([LUA], [lua5.1 >= 5.1], [lua_found=yes], [true])
|
|
|
|
if test "${lua_found}" = no; then
|
|
+ PKG_CHECK_MODULES([LUA], [lua-5.1 >= 5.1], [lua_found=yes], [true])
|
|
+ fi
|
|
+
|
|
+ if test "${lua_found}" = no; then
|
|
PKG_CHECK_MODULES([LUA], [lua >= 5.1], [lua_found=yes], [true])
|
|
fi
|
|
|