X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/3a85e0bc9c72935ca9d154b3aa3093c31ed1836e..94187a80bd60baab4b9c4b949ad820d730578123:/m4/readline.m4?ds=inline diff --git a/m4/readline.m4 b/m4/readline.m4 index 7a2710dc..c68086e9 100644 --- a/m4/readline.m4 +++ b/m4/readline.m4 @@ -14,11 +14,12 @@ AS_IF([test x"$with_readline" = xyes -o x"$with_readline" = xmaybe], [save_LIBS="$LIBS" LIBS= AC_SEARCH_LIBS([readline], [readline editline], - [READLINELIB="$LIBS" + [READLINELIB="$LIBS" AC_DEFINE([READLINE_SUPPORT], [1], [Support for using readline() in whatnow])], - [AS_IF([test x"$with_readline" = xyes], - [AC_MSG_ERROR([Unable to find a readline library])])]) + [AS_IF([test x"$with_readline" = xyes], + [AC_MSG_ERROR([Unable to find a readline library])])], + [$TERMLIB]) LIBS="$save_LIBS"]) ])