Look for tgetent in libtinfow

On some systems where ncurses is only available in the "wide" version
(compiled with --with-widec), there might be no libtinfo.so, only a
libtinfow.so.  Look for libtinfow in addition to libtinfo.

gdb/ChangeLog:

YYYY-MM-DD  Simon Marchi  <simon.marchi@ericsson.com>
        Дилян Палаузов  <dilyan.palauzov@aegee.org>

    PR gdb/23950
    * configure.ac: Search for tgetent in libtinfow.
    * configure: Re-generate.
This commit is contained in:
Simon Marchi 2018-12-08 19:35:47 -05:00 committed by Simon Marchi
parent b5ac78ffc6
commit 2578ecb1b5
3 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2018-12-08 Simon Marchi <simon.marchi@ericsson.com>
Дилян Палаузов <dilyan.palauzov@aegee.org>
PR gdb/23950
* configure.ac: Search for tgetent in libtinfow.
* configure: Re-generate.
2018-12-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
* linux-thread-db.c (struct thread_db_info): Add td_ta_delete_p.

2
gdb/configure vendored
View File

@ -9027,7 +9027,7 @@ return tgetent ();
return 0;
}
_ACEOF
for ac_lib in '' termcap tinfo curses ncursesw ncurses; do
for ac_lib in '' termcap tinfow tinfo curses ncursesw ncurses; do
if test -z "$ac_lib"; then
ac_res="none required"
else

View File

@ -592,7 +592,7 @@ case $host_os in
esac
# These are the libraries checked by Readline.
AC_SEARCH_LIBS(tgetent, [termcap tinfo curses ncursesw ncurses])
AC_SEARCH_LIBS(tgetent, [termcap tinfow tinfo curses ncursesw ncurses])
if test "$ac_cv_search_tgetent" = no; then
CONFIG_OBS="$CONFIG_OBS stub-termcap.o"