* configure.ac, vtysh/Makefile.am: Only vtysh needs to be linked
against libreadline and friends.
diff --git a/vtysh/Makefile.am b/vtysh/Makefile.am
index 35dc763..dbd1d3d 100644
--- a/vtysh/Makefile.am
+++ b/vtysh/Makefile.am
@@ -11,7 +11,7 @@
nodist_vtysh_SOURCES = vtysh_cmd.c
CLEANFILES = vtysh_cmd.c
noinst_HEADERS = vtysh.h vtysh_user.h
-vtysh_LDADD = ../lib/libzebra.la @LIBCAP@
+vtysh_LDADD = ../lib/libzebra.la @LIBCAP@ @LIBREADLINE@
examplesdir = $(exampledir)
dist_examples_DATA = vtysh.conf.sample