* configure.in: Use MCLIBS for -lgpm. Remove LGPM. Check for

resizeterm() and keyok() only if configuring with ncurses.
This commit is contained in:
Pavel Roskin 2001-09-10 21:16:40 +00:00
parent 36ec0ba15b
commit c0ddf2c09a
2 changed files with 9 additions and 13 deletions

View File

@ -1,5 +1,8 @@
2001-09-10 Pavel Roskin <proski@gnu.org>
* configure.in: Use MCLIBS for -lgpm. Remove LGPM. Check for
resizeterm() and keyok() only if configuring with ncurses.
* configure.in: Remove now unused variables LIBVFS and LVFS.
* configure.in: Remove unused variables LINTL and INTLDEPS.

View File

@ -283,7 +283,6 @@ screen_manager=unknown
search_ncurses=false
mouse_lib="xterm only"
LGPM=""
case $host_os in
linux*)
AC_ARG_WITH(gpm-mouse,
@ -297,18 +296,17 @@ linux*)
fi
AC_DEFINE(HAVE_LIBGPM)
mouse_lib="GPM and xterm"
LGPM="-lgpm"
MCLIBS="-lgpm $MCLIBS"
fi],
[AC_CHECK_LIB(gpm, Gpm_Repeat,
[AC_DEFINE(HAVE_LIBGPM)
mouse_lib="GPM and xterm"
LGPM="-lgpm"],
MCLIBS="-lgpm $MCLIBS"],
[AC_MSG_WARN([libgpm is missing or older than 0.18])],
$LIBS)
])
;;
esac
AC_SUBST(LGPM)
AC_ARG_WITH(ncurses,
[--with-ncurses[=base-dir] Compile with ncurses/locate base dir],
@ -682,6 +680,8 @@ EOF
fi
dnl Ncurses specific checks
dnl
dnl If ncurses exports the ESCDELAY variable it should be set to 0
dnl or you'll have to press Esc three times to dismiss a dialog box.
dnl
@ -703,16 +703,9 @@ if test -n "$ncurses_version"; then
AC_DEFINE(HAVE_ESCDELAY, 1,
[Define if ncurses has ESCDELAY variable])
fi
fi
dnl Ncurses may be linked against libgpm. Change LIBS temporary for
dnl check for resizeterm and keyok.
dnl
SAVED_LIBS="$LIBS"
LIBS="$LIBS $LGPM"
AC_CHECK_FUNCS(resizeterm keyok)
LIBS="$SAVED_LIBS"
fi
if test "x$screen_manager" = "xunknown"; then
AC_WITH_SLANG