Skip to content

Commit

Permalink
Simplify libreadline configure support
Browse files Browse the repository at this point in the history
If configure is explicitly asked to build with libreadline, look for
and link against only -lreadline, relying on the platform to resolve
any dependencies.

ticket: 8795
  • Loading branch information
greghudson committed Apr 23, 2019
1 parent bf4156d commit 64e82a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1339,9 +1339,9 @@ if test "x$with_libedit" != xno; then
elif test "x$with_readline" = xyes; then
AC_MSG_NOTICE([Using GNU Readline])
AC_CHECK_LIB([readline], [main], :,
AC_MSG_FAILURE([Cannot find readline library.]), [-lncurses])
AC_MSG_FAILURE([Cannot find readline library.]))
AC_DEFINE([HAVE_READLINE], 1, [Define if building with GNU Readline.])
RL_LIBS='-lreadline -lhistory -lncurses'
RL_LIBS='-lreadline'
else
AC_MSG_RESULT([Not using any readline support])
fi
Expand Down

0 comments on commit 64e82a1

Please sign in to comment.