]> gitweb.ps.run Git - ps-cgit/commit
makefile: auto-detect presence of various Lua, bsd
authorJason A. Donenfeld <Jason@zx2c4.com>
Tue, 14 Jan 2014 00:50:31 +0000 (01:50 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Tue, 14 Jan 2014 01:00:07 +0000 (02:00 +0100)
commit3488d124052f5c3ddef303ed5306ad6a458794c1
tree5cf1db9e99eae07c64158f9464a6c25e5882008b
parentd3c0370a3f108121642d02bbd190ce676bb4772b
makefile: auto-detect presence of various Lua, bsd

We favor LuaJIT over Lua. We disable Lua if neither can be found. We
error out if a particular Lua is specified via LUA_IMPLEMENTATION=JIT or
LUA_IMPLEMENTATION=VANILLA, but cannot be found. We print a status
message depending on what happens.

Also, we do not link against libdl on the BSDs, since they include it as
part of libc.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
cgit.mk