From 7ead5d7da92efa0057659258138db19a76d37cee Mon Sep 17 00:00:00 2001 From: Dmitry Volyntsev Date: Fri, 19 May 2023 20:22:16 -0700 Subject: [PATCH] Shell: removed support for building with GNU readline. --- auto/readline | 23 ++++------------------- external/njs_shell.c | 3 --- 2 files changed, 4 insertions(+), 22 deletions(-) diff --git a/auto/readline b/auto/readline index 505e11e4..6a13e6cb 100644 --- a/auto/readline +++ b/auto/readline @@ -6,14 +6,13 @@ NJS_READLINE_LIB= njs_found=no -njs_feature="GNU readline library" -njs_feature_name=NJS_HAVE_GNU_READLINE +njs_feature="editline library in editline/readline.h" njs_feature_run=no njs_feature_incs= -njs_feature_libs="-lreadline" +njs_feature_name=NJS_HAVE_EDITLINE +njs_feature_libs="-ledit" njs_feature_test="#include - #include - #include + #include int main(void) { add_history(NULL); @@ -21,20 +20,6 @@ njs_feature_test="#include }" . auto/feature -if [ $njs_found = no ]; then - njs_feature="editline library in editline/readline.h" - njs_feature_name=NJS_HAVE_EDITLINE - njs_feature_libs="-ledit" - njs_feature_test="#include - #include - - int main(void) { - add_history(NULL); - return 0; - }" - . auto/feature -fi - if [ $njs_found = no ]; then # FreeBSD port diff --git a/external/njs_shell.c b/external/njs_shell.c index bd91c467..d3aec088 100644 --- a/external/njs_shell.c +++ b/external/njs_shell.c @@ -25,9 +25,6 @@ #include #else #include -#if (NJS_HAVE_GNU_READLINE) -#include -#endif #endif #endif -- 2.47.3