Some oddities, pretty sure there is no regression though. Fedora's layout is;
/usr/include/ luaconf.h lua.h lualib.h luaconf-x86_64.h lua.hpp /usr/include/lua-5.1/ lauxlib.h luaconf.h lua.h lua.hpp lualib.h /usr/lib64/ /usr/lib64/liblua-5.1.so /usr/lib64/libluajit-5.1.so.2 -> libluajit-5.1.so.2.0.4 /usr/lib64/libluajit-5.1.so.2.0.4 /usr/lib64/liblua-5.3.so /usr/lib64/liblua.so -> liblua-5.3.so /usr/lib64/pkgconfig/lua.pc /usr/lib64/pkgconfig/lua-5.1.pc So here, 5.3 doesn't have a specific include subdir, while legacy 5.1 does. checking whether to enable mod_lua... checking dependencies checking for pow in -lm... yes checking for sqrt in -lm... yes checking for lua.h in ./include/lua-5.3... no checking for lua.h in ./include/lua5.3... no checking for lua.h in ./include/lua53... no checking for lua.h in ./include... no checking for lua.h in ./include/lua-5.2... no checking for lua.h in ./include/lua5.2... no checking for lua.h in ./include/lua52... no checking for lua.h in ./include/lua-5.1... no checking for lua.h in ./include/lua5.1... no checking for lua.h in ./include/lua51... no checking for lua.h in /usr/local/include/lua-5.3... no checking for lua.h in /usr/local/include/lua5.3... no checking for lua.h in /usr/local/include/lua53... no checking for lua.h in /usr/local/include... no checking for lua.h in /usr/local/include/lua-5.2... no checking for lua.h in /usr/local/include/lua5.2... no checking for lua.h in /usr/local/include/lua52... no checking for lua.h in /usr/local/include/lua-5.1... no checking for lua.h in /usr/local/include/lua5.1... no checking for lua.h in /usr/include/lua-5.3... no checking for lua.h in /usr/include/lua5.3... no checking for lua.h in /usr/include/lua53... no checking for lua.h in /usr/include... yes checking for luaL_newstate in -llua... yes checking for luaL_register in -llua... yes configure: using '-L/usr/lib -llua -lm' for Lua Library setting MOD_INCLUDES to "-I/usr/include" setting MOD_LUA_LDADD to "-L/usr/lib -llua -lm" checking whether to enable mod_lua... shared adding "-I$(top_srcdir)/modules/lua" to INCLUDES Ok, adding /usr/lib is a bad thing any and every day (and in this case, completely bogus since it lives in /usr/lib64). But I'm still not seeing how we pick one of several lua-x.x libraries where they all live in parallel... and not seeing why we would select lua-5.3 over a defacto lua.h (which might be 5.4, 5.5 or whatever in the future.) Switching to a pkgconfig identifier as the first-guess of what PATH means to --with-lua might be useful here, resolve any -lm -ldl and similar depends and avoid silliness like -L/usr/lib. Thoughts?