b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | --- a/configure |
| 2 | +++ b/configure |
| 3 | @@ -7305,6 +7305,9 @@ TERMCAP_DEP= |
| 4 | elif test $bash_cv_termcap_lib = libncurses; then |
| 5 | TERMCAP_LIB=-lncurses |
| 6 | TERMCAP_DEP= |
| 7 | +elif test $bash_cv_termcap_lib = libncursesw; then |
| 8 | +TERMCAP_LIB=-lncursesw |
| 9 | +TERMCAP_DEP= |
| 10 | elif test $bash_cv_termcap_lib = libc; then |
| 11 | TERMCAP_LIB= |
| 12 | TERMCAP_DEP= |
| 13 | @@ -7340,6 +7343,7 @@ case "$TERMCAP_LIB" in |
| 14 | -ltinfo) TERMCAP_PKG_CONFIG_LIB=tinfo ;; |
| 15 | -lcurses) TERMCAP_PKG_CONFIG_LIB=ncurses ;; |
| 16 | -lncurses) TERMCAP_PKG_CONFIG_LIB=ncurses ;; |
| 17 | +-lncursesw) TERMCAP_PKG_CONFIG_LIB=ncursesw ;; |
| 18 | -ltermcap) TERMCAP_PKG_CONFIG_LIB=termcap ;; |
| 19 | *) TERMCAP_PKG_CONFIG_LIB=termcap ;; |
| 20 | esac |