The file in this directory: ./src.appl.telnet.configure

represents the autoconf generated output of this patch to
krb5-1.4.3's src/appl/telnet/configure.in

-------------------------------------------------------------------------------
--- configure.in.orig   2007-10-19 11:57:20.000000000 -0500
+++ configure.in        2007-10-19 13:43:58.000000000 -0500
@@ -50,7 +50,7 @@
 #endif
 ])
 dnl
-AC_CHECK_LIB(termcap,main,AC_DEFINE(TERMCAP)
+AC_CHECK_LIB(termcap,setupterm,AC_DEFINE(TERMCAP)
 LIBS="$LIBS -ltermcap",
   AC_CHECK_LIB(curses,setupterm,LIBS="$LIBS -lcurses",
   AC_CHECK_LIB(ncurses,setupterm,LIBS="$LIBS -lncurses")
@@ -96,7 +96,7 @@
 dnl from old telnetd/configure.in
 dnl
 dnl AC_PROG_INSTALL
-AC_CHECK_LIB(termcap,main,AC_DEFINE(TERMCAP)
+AC_CHECK_LIB(termcap,setupterm,AC_DEFINE(TERMCAP)
 LIBS="$LIBS -ltermcap",
   AC_CHECK_LIB(curses,setupterm,LIBS="$LIBS -lcurses",
   AC_CHECK_LIB(ncurses,setupterm,LIBS="$LIBS -lncurses")
-------------------------------------------------------------------------------

This patch represents a bug fix to correctly figure out the location
of the function setupterm(). Apparently, it worked before since main()
in a termcap library meant that setupterm() was also in the termcap
library. This turns out not to be the case in recent distros of linux, and
presumeably, elsewhere.  So this bug fix represents the more semantically
correct check for setupterm().

The problem with just putting that patch into this directory and
applying it is that now we'd have to run autoconf on the target machine
to regenerate the configure files. This, needless to say, is highly
problematic.

So, our "patch", is to just copy the hand generated configure file to the
correct place and be done with it.

If for some reason you need to regenerate the configure file, then apply the
above patch to src/appl/telnet/configure.in, and run autoconf in the toplevel
src/ directory. It will recursively regenerate all of the configure files, then
copy src/appl/telnet/configure to here and name it src.appl.telnet.configure.


