]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Remove libhistory check
authorOndrej Zajicek (work) <santiago@crfreenet.org>
Tue, 2 Jan 2018 13:11:59 +0000 (14:11 +0100)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Tue, 2 Jan 2018 13:11:59 +0000 (14:11 +0100)
According to GNU Readline developers, if we link with libreadline then
there is no need to link with libhistory at all.

configure.ac

index 91f89edf2fe6aba519ce448b09c8976c411c97fc..d135dc04c9618898a28a5973b1ca54b88772984b 100644 (file)
@@ -361,12 +361,6 @@ if test "$enable_client" = yes ; then
     [$TINFO_LIBS]
   )
 
-  AC_SEARCH_LIBS([add_history], [history readline],
-    [HISTORY_LIBS="$LIBS"; LIBS=""],
-    [AC_MSG_ERROR([The client requires GNU Readline library. Either install the library or use --disable-client to compile without the client.])],
-    [$TINFO_LIBS]
-  )
-
   AC_CHECK_LIB([readline], [rl_crlf],
     [AC_DEFINE([HAVE_RL_CRLF], [1], [Define to 1 if you have rl_crlf()])],
     [],
@@ -380,7 +374,7 @@ if test "$enable_client" = yes ; then
   )
 
   LIBS="$BASE_LIBS"
-  CLIENT_LIBS="$HISTORY_LIBS $READLINE_LIBS $TINFO_LIBS"
+  CLIENT_LIBS="$READLINE_LIBS $TINFO_LIBS"
 fi
 AC_SUBST([CLIENT])
 AC_SUBST([CLIENT_LIBS])