--- a/configure.ac
+++ b/configure.ac
@@ -11,6 +11,7 @@
 AC_HEADER_STDC
 AC_CHECK_HEADERS([fcntl.h getopt.h stdarg.h stdlib.h string.h sys/ioctl.h sys/time.h termios.h unistd.h])
 AC_CHECK_LIB(ncurses, initscr)
+AC_SEARCH_LIBS(putp, tinfo)
 
 # Checks for typedefs, structures, and compiler characteristics.
 AC_HEADER_TIME
