CompileScript: <<
echo "" >> src/luaconf.h
echo "#undef LUA_PATH_DEFAULT" >> src/luaconf.h
echo '#define LUA_PATH_DEFAULT
"./?.lua;%p/share/lua/5.1/?.lua;%p/share/lua/5.1/?/init.lua;%p/share/
lua/?.lua;%p/share/lua/?/init.lua"' >> src/luaconf.h
Well I'm not so fond of a cross-version shared directory.
I bet this will lead to more confusion. It's already hard enough
to properly install Lua modules in a portable fashion without
resorting to massive guesswork (in the form of a lengthy configure
script).