https://bugs.gentoo.org/578722

--- aumix-2.9.1/configure.ac
+++ aumix-2.9.1/configure.ac
@@ -69,6 +69,8 @@
    [  --without-ncurses       compile with no ncurses or mouse support],
   AC_MSG_RESULT([Compiling without ncurses support]),[
   dnl Checks for ncurses library.
+  AC_CHECK_LIB(tinfo, main, TINFO_LIB="-ltinfo", TINFO_LIB=)
+  AC_SUBST(TINFO_LIB)
   AC_CHECK_LIB(ncurses, initscr, initscr=on, initscr=off)
   if test $initscr = on; then
     CURSLIB="ncurses"
@@ -83,7 +85,7 @@
     fi
   fi
   if test x$CURSLIB != x; then
-    LIBS="-l$CURSLIB $LIBS"
+    LIBS="-l$CURSLIB $TINFO_LIB $LIBS"
     AC_DEFINE(HAVE_CURSES, 1,
       [Define this if you have (n)curses and want to use it.])
     AC_CHECK_LIB($CURSLIB, getmouse,
