Fix keyboard related issues when building with meson 31/73131/2
authorXavier Simonart <simonartxavier@gmail.com>
Sun, 2 Jan 2022 16:14:40 +0000 (16:14 +0000)
committerXavier Simonart <simonartxavier@gmail.com>
Mon, 3 Jan 2022 15:11:38 +0000 (15:11 +0000)
Signed-off-by: Xavier Simonart <simonartxavier@gmail.com>
Change-Id: I8186703b8ea3e88f91cd929898033eafecd686aa

VNFs/DPPD-PROX/Makefile
VNFs/DPPD-PROX/input_curses.c
VNFs/DPPD-PROX/meson.build

index a659c03..9a675ca 100644 (file)
@@ -72,7 +72,6 @@ include $(RTE_SDK)/mk/rte.vars.mk
 # binary name
 APP = prox
 CFLAGS += -DPROGRAM_NAME=\"$(APP)\"
-CFLAGS += -DCOMPILED_WITH_MAKE
 
 CFLAGS += -O2 -g
 CFLAGS += -fno-stack-protector -Wno-deprecated-declarations
index f549f85..346b0e3 100644 (file)
@@ -28,9 +28,7 @@
 #include "input_curses.h"
 #include "histedit.h"
 
-#ifdef COMPILED_WITH_MAKE
 #include "libedit_autoconf.h"
-#endif
 
 static EditLine *el;
 static History *hist;
index 41cf655..217a967 100644 (file)
@@ -100,6 +100,16 @@ if not lua_dep.found()
        error('Suitable lua version not found')
 endif
 
+has_sym_args = [
+        [ 'HAVE_LIBEDIT_EL_RFUNC_T', 'histedit.h',
+        'el_rfunc_t' ],
+]
+config = configuration_data()
+foreach arg:has_sym_args
+        config.set(arg[0], cc.has_header_symbol(arg[1], arg[2]))
+endforeach
+configure_file(output : 'libedit_autoconf.h', configuration : config)
+
 # All other dependencies
 dpdk_dep = dependency('libdpdk', required: true)
 tinfo_dep = dependency('tinfo', required: false)