Skip to content

Commit

Permalink
configure: Check for readline() function instead of main
Browse files Browse the repository at this point in the history
main is not a function found in libreadline, its better to check for a
function thats provided by it.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
  • Loading branch information
kraj committed Sep 1, 2022
1 parent f1f38ef commit 9399d58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure.ac
Expand Up @@ -1372,7 +1372,7 @@ case "${enable_vtysh}" in
AC_DEFINE([VTYSH], [1], [VTY shell])

prev_libs="$LIBS"
AC_CHECK_LIB([readline], [main], [
AC_CHECK_LIB([readline], [readline], [
LIBREADLINE="-lreadline"
], [
dnl readline failed - it might be incorrectly linked and missing its
Expand Down

0 comments on commit 9399d58

Please sign in to comment.