mirror of https://github.com/MidnightCommander/mc
* configure.in: Use MCLIBS for -lgpm. Remove LGPM. Check for
resizeterm() and keyok() only if configuring with ncurses.
This commit is contained in:
parent
36ec0ba15b
commit
c0ddf2c09a
|
@ -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.
|
||||
|
|
19
configure.in
19
configure.in
|
@ -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,17 +703,10 @@ if test -n "$ncurses_version"; then
|
|||
AC_DEFINE(HAVE_ESCDELAY, 1,
|
||||
[Define if ncurses has ESCDELAY variable])
|
||||
fi
|
||||
|
||||
AC_CHECK_FUNCS(resizeterm keyok)
|
||||
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"
|
||||
|
||||
if test "x$screen_manager" = "xunknown"; then
|
||||
AC_WITH_SLANG
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue