blob: 20e8472233a50a9faca48cc7d6f60df9ae13727e [file] [log] [blame]
Andrew Geissler87f5cff2022-09-30 13:13:31 -05001From 9399d58c13257849179d3c2b3698a2b43bc1b2a0 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 1 Sep 2022 10:39:23 -0700
4Subject: [PATCH] configure: Check for readline() function instead of main
5
6main is not a function found in libreadline, its better to check for a
7function thats provided by it.
8
Patrick Williams8dd68482022-10-04 07:57:18 -05009Upstream-Status: Backport
10[https://github.com/FRRouting/frr/commit/9399d58c13257849179d3c2b3698a2b43bc1b2a0]
11
Andrew Geissler87f5cff2022-09-30 13:13:31 -050012Signed-off-by: Khem Raj <raj.khem@gmail.com>
13---
14 configure.ac | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17diff --git a/configure.ac b/configure.ac
18index b7e17d356..8c1fab0ea 100644
19--- a/configure.ac
20+++ b/configure.ac
21@@ -1372,7 +1372,7 @@ case "${enable_vtysh}" in
22 AC_DEFINE([VTYSH], [1], [VTY shell])
23
24 prev_libs="$LIBS"
25- AC_CHECK_LIB([readline], [main], [
26+ AC_CHECK_LIB([readline], [readline], [
27 LIBREADLINE="-lreadline"
28 ], [
29 dnl readline failed - it might be incorrectly linked and missing its
30--
312.37.3
32