lua-5.1.4: Autotoolize
Use $(builldir) instead of $(srcdir) when referencing luaconf.h.template

This file is generated from luaconf.h.template.in so it is in
$(builddir), which is not the same as $(srcdir) when building out of
tree.

Fixes GH-1.
Fix version numbers to 5.1.4, change pkgname to autotoolized-lua
Run tests with make check
Don't try to distribute MANIFEST

It doesn't exist in the Lua source tree anymore.
Add missing test/run-test.sh

Fixes #2.
fix to not link liblua and luac against libreadline

There is no need to link liblua and luac against libreadline and friends.
It makes only sense to link the lua interpreter itself against readline
as it is the only one which can be run interactively.

Please note that by setting setting use_readline=yes as action-if-found
within the AC_CHECK_LIB macro, is a kind of workaround for not leaking
in -lreadline via the LIBS variable which is used globaly within Makefiles
when linking is done.

see: http://www.gnu.org/software/autoconf/manual/autoconf.html#Libraries

Note for the Fedora package maintainers:

Most probably you can omit following hackery within the lua.spec file by
using this patch.

http://pkgs.fedoraproject.org/gitweb/?p=lua.git;a=blob;f=lua.spec;h=8629717abaf46dbbe3497c26e39baaaf4dfa51e2;hb=HEAD#l61

-------------------snip--------------------------------------------------
make %{?_smp_mflags} LIBS="-lm -ldl" luac_LDADD="liblua.la -lm -ldl"
sed -i 's/-lreadline -lncurses //g' etc/lua.pc
-------------------snip--------------------------------------------------

Most probably there will be no need anymore for passing the make options
LIBS="-lm -ldl" luac_LDADD="liblua.la -lm -ldl".

Same applies to the mangling of the lua.pc file via sed, as the resulting
lua.pc file won't include '-lreadline -lncurses' anymore.
fix to not explicitely link against ncurses

There is no need to explicitely link against libncurses because linking against
libreadline will pull in the libraries it depends on.
One should also note, that ncurses libraries can be build seperately, which
means that readline (if configured to use curses instead of termcap) will be
only linked against libtinfo.
Merge pull request #4 from morfoh/50e3f03eb499fe3ae1803b940a853e73840c8fed

fix to not link liblua and luac against libreadline
Merge pull request #5 from morfoh/0242330833b5624a074e0a8f720d9b0ef5c97cf5

fix to not explicitely link against ncurses
Add .gitignore
fix to install docs when running make install
improved to install COPYRIGHT HISTORY INSTALL README file into docdir
Merge pull request #7 from morfoh/lua-5.1.4

Documentation installation related fixes
lua.pc.in: add INSTALL_{L,C}MOD variables

Note:

Most distributions are defining INSTALL_LMOD and INSTALL_CMOD within their
packaged pkg-config file of lua, because both are commonly used by third-party
Makefiles for figuring out where to install lua modules through pkg-config.

INSTALL_LMOD defines the path where to install pure lua modules
INSTALL_CMOD defines the path where to install compiled lua modules
Import Lua 5.1.5
autotools: update version string (5.1.4 -> 5.1.5)
autotools: remove reference to amazon.gif from doc/Makefile.am because it the file got removed from the sources
Merge pull request #8 from morfoh/lua-5.1.4

lua.pc.in: add INSTALL_{L,C}MOD variables
Merge branch 'lua-5.1.5' of git://github.com/morfoh/autotoolized-lua into lua-5.1.5

Fixes #10.