mirror of
https://github.com/troglobit/editline.git
synced 2025-12-16 02:54:46 +08:00
Fix recently broken --enable-default-complete and simplify configure script.
This commit is contained in:
40
configure.ac
40
configure.ac
@@ -42,50 +42,22 @@ AC_PROG_GCC_TRADITIONAL
|
||||
AC_FUNC_STAT
|
||||
AC_CHECK_FUNCS([strchr strdup strrchr tcgetattr perror])
|
||||
|
||||
AC_ARG_ENABLE([default-complete],
|
||||
[ --enable-default-complete Enable default completion handler.],[
|
||||
case "${enableval}" in
|
||||
yes)
|
||||
complete=true
|
||||
;;
|
||||
no)
|
||||
complete=false
|
||||
;;
|
||||
*)
|
||||
AC_MSG_ERROR([bad value ${enableval} for --enable-default-complete])
|
||||
;;
|
||||
esac],[complete=false])
|
||||
AC_ARG_ENABLE(default-complete,
|
||||
[ --enable-default-complete Enable default completion handler.],
|
||||
complete=true; AC_DEFINE(CONFIG_DEFAULT_COMPLETE,, [Define to enable the default completion handler.]))
|
||||
AM_CONDITIONAL([CONFIG_DEFAULT_COMPLETE], [test x$complete = xtrue])
|
||||
|
||||
ac_enable_arrow_keys=no
|
||||
AC_ARG_ENABLE(arrow-keys,
|
||||
[ --enable-arrow-keys Enable ANSI arrow keys.],
|
||||
[ ac_enable_arrow_keys=$enableval ], [ ac_enable_arrow_keys=no])
|
||||
AC_DEFINE([CONFIG_ANSI_ARROWS],, [Define to include ANSI arrow keys support.]))
|
||||
|
||||
if test "x${ac_enable_arrow_keys}" = xyes ; then
|
||||
AC_DEFINE([CONFIG_ANSI_ARROWS], [],
|
||||
[Define to include ANSI arrow keys support.])
|
||||
fi
|
||||
|
||||
ac_enable_sigstop=no
|
||||
AC_ARG_ENABLE(sigstop,
|
||||
[ --enable-sigstop Enable SIGSTOP key.],
|
||||
[ ac_enable_sigstop=$enableval ], [ ac_enable_sigstop=no])
|
||||
AC_DEFINE([CONFIG_SIGSTOP],, [Define to enable SIGSTOP (Ctrl-Z) key.]))
|
||||
|
||||
if test "x${ac_enable_sigstop}" = xyes ; then
|
||||
AC_DEFINE([CONFIG_SIGSTOP], [],
|
||||
[Define to enable SIGSTOP (Ctrl-Z) key.])
|
||||
fi
|
||||
|
||||
ac_enable_terminal_bell=no
|
||||
AC_ARG_ENABLE(terminal-bell,
|
||||
[ --enable-terminal-bell Enable terminal bell on completion.],
|
||||
[ ac_enable_terminal_bell=$enableval ], [ ac_enable_terminal_bell=no])
|
||||
|
||||
if test "x${ac_enable_terminal_bell}" = xyes ; then
|
||||
AC_DEFINE([CONFIG_ANNOYING_NOISE], [],
|
||||
[Define to enable terminal bell on completion.])
|
||||
fi
|
||||
AC_DEFINE([CONFIG_ANNOYING_NOISE],, [Define to enable terminal bell on completion.]))
|
||||
|
||||
AC_OUTPUT(Makefile src/Makefile include/Makefile man/Makefile examples/Makefile)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user