headers of lua/luajit not included if first library (without 5.1) matches
When I was testing out LuaJIT support from rev 369 aka 370, I found out, that /usr/include/luajit-2.0 isn't included. After short looking, I found out, that on my system
$ac_cv_search_lua_pcall is found inside
if test "$ac_cv_search_lua_pcall" = "-lluajit5.1"; then
does not catch and
-I/usr/include/luajit-2.0 isn't added, even that all is OK and configure passes.
Anyway, the test should be removed or changed to something like
if test ... -lluajit5.1; then
if test ... -lluajit; then
or something nicer probably. I think in all cases the headers are in same place, the /usr/include/luajit-2.0, not like in case of Lua inside /usr/include or /usr/include/lua5.1?