config.h.in, configure, configure.ac:

Add configure support for ANSI arrow keys.
        Tested OK with gnome-terminal.

src/complete.c:
	Remove usage of CONST and refactor compare() to use standard
        C syntax instead of old K&R.
This commit is contained in:
Joachim Nilsson
2009-02-08 21:13:54 +01:00
parent 4898413730
commit 69e01d11d4
4 changed files with 36 additions and 7 deletions

19
configure vendored
View File

@@ -1286,6 +1286,7 @@ Optional Features:
--disable-dependency-tracking speeds up one-time build
--enable-dependency-tracking do not reject slow dependency extractors
--enable-default-complete Enable default completion handler.
--enable-arrow-keys Enable ANSI arrow keys.
Some influential environment variables:
CC C compiler command
@@ -5003,6 +5004,23 @@ else
fi
ac_enable_arrow_keys=no
# Check whether --enable-arrow-keys was given.
if test "${enable_arrow_keys+set}" = set; then
enableval=$enable_arrow_keys; ac_enable_arrow_keys=$enableval
else
ac_enable_arrow_keys=no
fi
if test "x${ac_enable_arrow_keys}" = xyes ; then
cat >>confdefs.h <<\_ACEOF
#define ANSI_ARROWS
_ACEOF
fi
ac_config_files="$ac_config_files Makefile src/Makefile include/Makefile man/Makefile examples/Makefile"
cat >confcache <<\_ACEOF
@@ -6342,3 +6360,4 @@ if test "$no_create" != yes; then
$ac_cs_success || { (exit 1); exit 1; }
fi