From: Guus Sliepen Date: Mon, 1 Oct 2012 08:42:13 +0000 (+0200) Subject: Libreadline might depend on libcurses. X-Git-Tag: release-1.1pre3~31 X-Git-Url: https://tinc-vpn.org/git/browse?a=commitdiff_plain;h=20b441a6de743b2149df59cfb94a7663e1924fa3;p=tinc Libreadline might depend on libcurses. --- diff --git a/m4/readline.m4 b/m4/readline.m4 index 9c423d4a..f29e6924 100644 --- a/m4/readline.m4 +++ b/m4/readline.m4 @@ -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] ) ]) diff --git a/src/Makefile.am b/src/Makefile.am index 89ff2d89..3bd8646b 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -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 =