From 2990245111e2fb691e1c5b0dc81182d8329722e3 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Wed, 30 May 2001 15:01:12 +0000 Subject: [PATCH] * configure.in: Add check for ESCDELAY variable in ncurses. --- ChangeLog | 4 ++++ configure.in | 25 +++++++++++++++++++++++++ 2 files changed, 29 insertions(+) diff --git a/ChangeLog b/ChangeLog index 3be20233c..990c1fcfc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2001-05-30 Pavel Roskin + + * configure.in: Add check for ESCDELAY variable in ncurses. + 2001-05-29 Pavel Roskin * extraconf.h [!USE_VFS]: Undefine USE_NETCODE and diff --git a/configure.in b/configure.in index de66a3a96..476fcb524 100644 --- a/configure.in +++ b/configure.in @@ -810,6 +810,31 @@ EOF 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 check for resizeterm and keyok. dnl