diff options
author | midipix <writeonce@midipix.org> | 2021-06-15 19:54:46 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2021-06-15 19:56:06 +0000 |
commit | 9841e8cbfe898941adb8cef2bfd11967e66fe222 (patch) | |
tree | 28d132b1ca7e615686329b1890419dddf403c60f /project/config | |
parent | 47d0df6b5723ef30df4acc671e0f8ad50b1a20e8 (diff) | |
download | sbpython3-9841e8cbfe898941adb8cef2bfd11967e66fe222.tar.bz2 sbpython3-9841e8cbfe898941adb8cef2bfd11967e66fe222.tar.xz |
project: added wrapper header and config logic for term.h.
Diffstat (limited to 'project/config')
-rw-r--r-- | project/config/cfgdefs.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/project/config/cfgdefs.sh b/project/config/cfgdefs.sh index 57a14b5..7fef196 100644 --- a/project/config/cfgdefs.sh +++ b/project/config/cfgdefs.sh @@ -300,6 +300,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 @@ -358,6 +361,12 @@ cfgdefs_perform_common_tests() unset mb_panel_wrapper fi + # <term.h> + 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' |