* acinclude.m4 (_MC_WITH_XSLANG): Drop support for old S-Lang

versions that required the native curses library on some OSes.
This commit is contained in:
Pavel Roskin 2003-01-22 07:10:38 +00:00
parent 73c700af4b
commit 9f903a7545
2 changed files with 5 additions and 22 deletions

View File

@ -1,3 +1,8 @@
2003-01-22 Pavel Roskin <proski@gnu.org>
* acinclude.m4 (_MC_WITH_XSLANG): Drop support for old S-Lang
versions that required the native curses library on some OSes.
2003-01-19 Adam Byrtek <alpha@debian.org> 2003-01-19 Adam Byrtek <alpha@debian.org>
* doc/mcview.1.in: New file. * doc/mcview.1.in: New file.

View File

@ -689,32 +689,10 @@ AC_DEFUN([MC_USE_TERMCAP], [
dnl dnl
dnl Common code for MC_WITH_SLANG and MC_WITH_MCSLANG dnl Common code for MC_WITH_SLANG and MC_WITH_MCSLANG
dnl dnl
dnl We check for the existance of setupterm on curses library
dnl this is required to load certain definitions on some termcaps
dnl editions (AIX and OSF/1 I seem to remember).
dnl Note that we avoid using setupterm
dnl
AC_DEFUN([_MC_WITH_XSLANG], [ AC_DEFUN([_MC_WITH_XSLANG], [
screen_type=slang screen_type=slang
AC_DEFINE(HAVE_SLANG, 1, AC_DEFINE(HAVE_SLANG, 1,
[Define to use S-Lang library for screen management]) [Define to use S-Lang library for screen management])
case $host_os in
linux*)
;;
*)
AC_CHECK_LIB(curses,setupterm,
[AC_TRY_COMPILE([
#include <curses.h>
#include <term.h>],
[return (key_end == parm_insert_line);],
[MCLIBS="$MCLIBS -lcurses"
AC_DEFINE(USE_SETUPTERM, 1,
[Define to use function `setupterm'
from `curses' library in S-Lang])])
])
;;
esac
]) ])