On 05/25/2015 12:34 PM, Dimitris Papavasiliou wrote: > Another possibility, would be to depend on exisiting tools like > pkg-config, for building auxiliary executables or libraries which depend > on Lua. I'd consider this worse, as then there would be two sources of > information on how to configure the compiler to build the various > components of the rock. > > Even in this case though, one would need to somehow have access to the > currently configured Lua version (5.1, 5.2, 5.3 or jit). Does such a > variable exist in LuaRocks? It seems useful as well, in case someone > would want to make a multi-version Makefile, handling each version a > little differently.
One, somewhat roundabout but nevertheless dependable, way to get the version, would be to use the Lua interpreter LuaRocks provides, with the -v switch and parse its output. Still, finding a matching pkg-config package name is not trivial, as there seems to be quite some variation in the way these package are called among the various distros. Does anyone have any better ideas? Is this simply something that is not in the scope of LuaRocks? ------------------------------------------------------------------------------ _______________________________________________ Luarocks-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/luarocks-developers
