mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 13:37:17 +02:00
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:
parent
f1f38efd83
commit
9399d58c13
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue