blob: 776c0958fab217859540d82f5ceced5be2780f43 [file] [log] [blame]
Andrew Geissler87f5cff2022-09-30 13:13:31 -05001From 675b35b7ed416c837267e493b157167319e8f5fa Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 1 Sep 2022 11:01:53 -0700
4Subject: [PATCH] configure: Check for readline() instead of main() in
5 libreadline
6
7while checking for presense of libreadline, poke for a function which is
8provided by libreadline, main is not provided by it, so modern compiler
9toolchains may complain about it.
10
11Upstream-Status: Submitted [https://github.com/Quagga/quagga/pull/9]
12Signed-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 ed279f48..d444ab4a 100755
19--- a/configure.ac
20+++ b/configure.ac
21@@ -754,7 +754,7 @@ dnl [TODO] on Linux, and in [TODO] on Solaris.
22 )]
23 )]
24 )
25- AC_CHECK_LIB(readline, main, LIBREADLINE="-lreadline $LIBREADLINE",,
26+ AC_CHECK_LIB(readline, readline, LIBREADLINE="-lreadline $LIBREADLINE",,
27 "$LIBREADLINE")
28 if test $ac_cv_lib_readline_main = no; then
29 AC_MSG_ERROR([vtysh needs libreadline but was not found and usable on your system.])
30--
312.37.3
32