Things are coming along nicely, and my game engine's starting to support some really nice features (when they're not broke!). I'd like to support Lua in my own. I've started checking out tutorials that show how to build it as a library and link it, but I'd rather import the source into my engine, and build the Lua source code itself into my engine to totally integrate it. This way, when I release it, developers won't have an issue having to build the library themselves, setup all the linking etc...
The problem is, Lua's source code contains its own main() functions in lua.c and luac.c. I've read online that I can just omit lua.h/.c and luac.h/.c, but it looks like I'd be missing out on some error checking that looks important.
I'm also new to Lua, so I'll be learning how it works as I try to get it to compile. I'm also using Xcode 4 to build this for Mac and iOS of that's important.