--- configure.in.orig Sun Apr 29 17:49:54 2001 +++ configure.in Sun Apr 29 18:05:55 2001 @@ -374,6 +374,17 @@ AM_CONDITIONAL(CLIENT_GUI_STUB, test "$gui_sources" = "gui-stub") AM_CONDITIONAL(CLIENT_GUI_WIN32, test "$gui_sources" = "gui-win32") +dnl First, check to see which curses/termcap library we want to use. +dnl Some older Unices may need both -lcurses and -ltermlib, but we don't +dnl support that just yet.... +AC_CHECK_LIB(termlib, initscr, HAVE_TERMCAP="termlib") +AC_CHECK_LIB(termcap, initscr, HAVE_TERMCAP="termcap") +AC_CHECK_LIB(curses, initscr, HAVE_TERMCAP="curses") +AC_CHECK_LIB(ncurses, initscr, HAVE_TERMCAP="ncurses") +if test x"$HAVE_TERMCAP" != x; then + SERVER_LIBS="$SERVER_LIBS -l$HAVE_TERMCAP" +fi + dnl Checks for additional server libraries: if test x$server = xtrue; then dnl The use of AC_CHECK_FUNC is to avoid wrong libs on IRIX.