configure: Check for readline() function instead of main

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>
This commit is contained in:
Khem Raj 2022-09-01 10:39:23 -07:00
parent f1f38efd83
commit 9399d58c13
1 changed files with 1 additions and 1 deletions

View File

@ -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