]> git.proxmox.com Git - mirror_frr.git/commit - Makefile.am
build: fix Lua build
authorQuentin Young <qlyoung@cumulusnetworks.com>
Thu, 9 May 2019 20:08:40 +0000 (20:08 +0000)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Fri, 10 May 2019 16:08:32 +0000 (16:08 +0000)
commit5dbb0a7b2a4fd212fc4fee181fc86e778243dac9
tree2f96ee268fa50f4a75bb068a654692efd7a666ae
parent11056dd815b7291add6c9cc1b6a9edd82558aa5c
build: fix Lua build

Each of Lua's major versions are incompatible with each other. Ubuntu,
at least, does not provide a single liblua.so or /usr/include/lua; all
SOs and headers are versioned, e.g. liblua5.3.so and
/usr/include/lua5.3. There's already an m4 macro in the GNU collection
to handle this situation, so let's use that.

This allows building with Lua enabled to work on platforms other than
Fedora.

* Move lib/lua.[ch] -> lib/frrlua.[ch] to prevent path conflicts
* Fix configure.ac search for proper CPP and linker flags
* Add Lua include path to AM_CPPFLAGS
* Update vtysh/extract.pl.in

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Makefile.am
bgpd/bgp_routemap.c
configure.ac
lib/frrlua.c [new file with mode: 0644]
lib/frrlua.h [new file with mode: 0644]
lib/lua.c [deleted file]
lib/lua.h [deleted file]
lib/subdir.am
m4/ax_lua.m4 [new file with mode: 0644]
vtysh/extract.pl.in