mirror of
https://github.com/troglobit/editline.git
synced 2025-09-15 15:58:11 +08:00
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:
19
configure
vendored
19
configure
vendored
@@ -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
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user