https://bugs.gentoo.org/459512 --- ocaml-4.04.2/configure +++ ocaml-4.04.2/configure @@ -1095,7 +1095,7 @@ # For the terminfo module if test "$with_curses" = "yes"; then - for libs in "" "-lcurses" "-ltermcap" "-lcurses -ltermcap" "-lncurses"; do + for libs in "" "-ltinfo" "-lcurses" "-ltermcap" "-lcurses -ltermcap" "-lncurses"; do if sh ./hasgot $libs tgetent tgetstr tgetnum tputs; then inf "termcap functions found (with libraries '$libs')" echo "#define HAS_TERMCAP" >> s.h