diff options
author | Xin LI <delphij@FreeBSD.org> | 2020-10-24 05:25:54 +0000 |
---|---|---|
committer | Xin LI <delphij@FreeBSD.org> | 2020-10-24 05:25:54 +0000 |
commit | e3e1c0a5de4b6c7d51c0282b9378427383134aa9 (patch) | |
tree | d1180166250393879730fe69e09432a8195b537a /configure.ac | |
parent | 6aa86b45318b321ba7e9cc3c221ab9062ddac4a0 (diff) |
Notes
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 7a693982ccf9..e9aa286fdc1f 100644 --- a/configure.ac +++ b/configure.ac @@ -24,6 +24,7 @@ AC_SYS_LARGEFILE # Checks for general libraries. AC_CHECK_LIB(tinfo, tgoto, [have_tinfo=yes], [have_tinfo=no]) +AC_CHECK_LIB(tinfow, tgoto, [have_tinfow=yes], [have_tinfow=no]) AC_CHECK_LIB(xcurses, initscr, [have_xcurses=yes], [have_xcurses=no]) AC_CHECK_LIB(ncursesw, initscr, [have_ncursesw=yes], [have_ncursesw=no]) AC_CHECK_LIB(ncurses, initscr, [have_ncurses=yes], [have_ncurses=no]) @@ -64,6 +65,19 @@ if test "x$TERMLIBS" = x; then fi fi +# -- Try tinfow. +if test "x$TERMLIBS" = x; then + if test $have_tinfow = yes; then + TERMLIBS="-ltinfow" + SAVE_LIBS=$LIBS + LIBS="$LIBS $TERMLIBS" + AC_TRY_LINK(, [tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);], + [termok=yes], [termok=no]) + LIBS=$SAVE_LIBS + if test $termok = no; then TERMLIBS=""; fi + fi +fi + # -- Try xcurses. if test "x$TERMLIBS" = x; then if test $have_xcurses = yes; then |