Check for term.h and include it on non-ncurses system to get a declaration
for tigetstr.
diff --git a/pyconfig.h.in b/pyconfig.h.in
index e3ce90c..749666f 100644
--- a/pyconfig.h.in
+++ b/pyconfig.h.in
@@ -699,6 +699,9 @@
 /* Define if you have the <sys/wait.h> header file.  */
 #undef HAVE_SYS_WAIT_H
 
+/* Define if you have the <term.h> header file.  */
+#undef HAVE_TERM_H
+
 /* Define if you have the <termios.h> header file.  */
 #undef HAVE_TERMIOS_H