Libreadline might depend on libcurses.
authorGuus Sliepen <guus@tinc-vpn.org>
Mon, 1 Oct 2012 08:42:13 +0000 (10:42 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Mon, 1 Oct 2012 08:42:13 +0000 (10:42 +0200)
m4/readline.m4
src/Makefile.am

index 9c423d4a4a5ea7d7a5f256e42687f294496c100b..f29e6924236df0ba7603e471b7d2cf6c553a8488 100644 (file)
@@ -33,7 +33,8 @@ AC_DEFUN([tinc_READLINE],
 
     AC_CHECK_LIB(readline, readline,
       [READLINE_LIBS="-lreadline"],
-      [AC_MSG_ERROR("readline library not found.")]
+      [AC_MSG_ERROR("readline library not found.")],
+      [$CURSES_LIBS]
     )
   ])
 
index 89ff2d89ba8d3552728ca5513ebffcdeb11786ee..3bd8646b069ded9ac86dffb7ebfbeeee1970fafb 100644 (file)
@@ -37,7 +37,7 @@ if TUNEMU
 tincd_SOURCES += bsd/tunemu.c
 endif
 
-tincctl_LDADD = $(CURSES_LIBS) $(READLINE_LIBS)
+tincctl_LDADD = $(READLINE_LIBS) $(CURSES_LIBS)
 
 DEFAULT_INCLUDES =