* configure.in: Add check for ESCDELAY variable in ncurses.

This commit is contained in:
Pavel Roskin 2001-05-30 15:01:12 +00:00
parent 733c2dd05e
commit 2990245111
2 changed files with 29 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2001-05-30 Pavel Roskin <proski@gnu.org>
* configure.in: Add check for ESCDELAY variable in ncurses.
2001-05-29 Pavel Roskin <proski@gnu.org> 2001-05-29 Pavel Roskin <proski@gnu.org>
* extraconf.h [!USE_VFS]: Undefine USE_NETCODE and * extraconf.h [!USE_VFS]: Undefine USE_NETCODE and

View File

@ -810,6 +810,31 @@ EOF
fi fi
fi fi
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
if test -n "$ncurses_version"; then
AC_CACHE_CHECK([for ESCDELAY variable],
[mc_cv_ncurses_escdelay],
[AC_TRY_COMPILE([], [
extern int ESCDELAY;
int main ()
{
ESCDELAY = 0;
}
],
[mc_cv_ncurses_escdelay=yes],
[mc_cv_ncurses_escdelay=no]
)
])
if test "$mc_cv_ncurses_escdelay" = yes; 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 Ncurses may be linked against libgpm. Change LIBS temporary for
dnl check for resizeterm and keyok. dnl check for resizeterm and keyok.
dnl dnl