2 dnl Try using termcap database and link with libtermcap if possible.
4 AC_DEFUN([mc_USE_TERMCAP], [
5 screen_msg="$screen_msg with termcap database"
6 AC_MSG_NOTICE([using S-Lang screen library with termcap])
7 AC_DEFINE(USE_TERMCAP, 1, [Define to use termcap database])
8 AC_CHECK_LIB(termcap, tgoto, [MCLIBS="$MCLIBS -ltermcap"], , [$LIBS])
12 dnl Check if the installed S-Lang library uses termcap
14 AC_DEFUN([mc_SLANG_TERMCAP], [
15 unset ac_cv_lib_termcap_tgoto
17 AC_CACHE_CHECK([if S-Lang uses termcap], [mc_cv_slang_termcap], [
20 AC_LINK_IFELSE([AC_LANG_PROGRAM([[
23 [[SLtt_get_terminfo(); SLtt_tgetflag((char*)"");]])],
24 [mc_cv_slang_termcap=no], [mc_cv_slang_termcap=yes])
29 if test x"$mc_cv_slang_termcap" = xyes; then