changeset 2252:65463608112d

[project @ 1996-05-22 18:40:45 by jwe]
author jwe
date Wed, 22 May 1996 18:40:45 +0000
parents b1ae27b474b3
children 5e862d11b116
files readline/configure.in
diffstat 1 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/readline/configure.in	Wed May 22 16:41:12 1996 +0000
+++ b/readline/configure.in	Wed May 22 18:40:45 1996 +0000
@@ -61,7 +61,17 @@
 AC_PROG_INSTALL
 AC_PROG_RANLIB
 
-AC_CHECK_LIB(termcap, tputs)
+TERMLIBS=""
+for termlib in termcap terminfo curses termlib; do
+  AC_CHECK_LIB(${termlib}, tputs, [TERMLIBS="${TERMLIBS} -l${termlib}"])
+  case "${TERMLIBS}" in
+    *-l${termlib}*)
+      AC_MSG_RESULT([defining TERMLIBS to be $TERMLIBS])
+      break
+    ;;
+  esac
+done
+AC_SUBST(TERMLIBS)
 
 AC_HEADER_DIRENT
 AC_HEADER_STDC