$NetBSD: patch-ak,v 1.5 2008/09/01 17:53:47 christos Exp $ --- configure.orig 2008-04-18 10:34:58.000000000 +0300 +++ configure 2008-09-01 19:45:16.000000000 +0300 @@ -15947,7 +15947,7 @@ # rather ncurses. So we check for it. TERMLIBS= # Check for termlib before termcap because Solaris termcap needs libucb. -TERMLIB_VARIANTS="ncurses curses termlib termcap terminfo" +TERMLIB_VARIANTS="curses termlib termcap terminfo ncurses" for termlib in ${TERMLIB_VARIANTS}; do as_ac_Lib=`$as_echo "ac_cv_lib_${termlib}''_tgetent" | $as_tr_sh` { $as_echo "$as_me:$LINENO: checking for tgetent in -l${termlib}" >&5