From edee3d2f5cc1c7d3bed2378a5c6b60f2882dbc6e Mon Sep 17 00:00:00 2001 From: midipix Date: Wed, 16 Jun 2021 08:57:17 +0000 Subject: project: corrected wrapper header and config logic for term.h. --- project/config/cfgdefs.sh | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'project/config') diff --git a/project/config/cfgdefs.sh b/project/config/cfgdefs.sh index 6826af7..b32129a 100644 --- a/project/config/cfgdefs.sh +++ b/project/config/cfgdefs.sh @@ -299,6 +299,9 @@ cfgdefs_perform_common_tests() cfgtest_unit_header_presence 'ncurses/panel.h' && mb_panel_wrapper='yes' cfgtest_unit_header_presence 'ncursesw/panel.h' && mb_panel_wrapper='yes' + cfgtest_unit_header_presence 'ncurses/term.h' && mb_term_wrapper='yes' + cfgtest_unit_header_presence 'ncursesw/term.h' && mb_term_wrapper='yes' + if cfgtest_unit_interface_presence 'is_term_resized'; then cfgtest_makevar_append '-DHAVE_CURSES_IS_TERM_RESIZED' fi @@ -357,6 +360,12 @@ cfgdefs_perform_common_tests() unset mb_panel_wrapper fi + # + if [ _${mb_term_wrapper:-} = _yes ]; then + cfgtest_makevar_append '-I$(PROJECT_DIR)/wrappers/ncurses' + unset mb_term_wrapper + fi + # ncurses libs (common part) mb_ncurses_libs='-lpanelw -lncursesw' mb_ncurses_tinfo='-ltinfow' -- cgit v1.2.3