rc
rc copied to clipboard
[PATCH] editline does not need tgetent()
EDIT: to be precise, it only needs tgetent() when --enable-termcap is explicitly given in its configuration...
diff -ur rc-1.7.4/configure.ac rc-1.7.4/configure.ac
--- rc-1.7.4/configure.ac 2015-05-17 04:23:26.000000000 +0800
+++ rc-1.7.4/configure.ac 2020-09-08 00:55:09.949411192 +0800
@@ -186,10 +184,9 @@
;;
editline)
EDIT=edit-editline.o
- RC_LIB_TGETENT
AC_CHECK_LIB(editline, el_ring_bell, [
- LIBS="$LIBS -leditline $rc_lib_tgetent"
- ], AC_MSG_ERROR(editline library not found), $rc_lib_tgetent)
+ LIBS="$LIBS -leditline"
+ ], AC_MSG_ERROR(editline library not found))
;;
readline|gnu)
EDIT=edit-readline.o