Revision 7d5e61a6

View differences:

Makefile.in
130 130
tests_targets_ok = $(addsuffix .ok,$(tests_targets))
131 131

  
132 132
$(tests_targets): %: %.o $(tests_objs)
133
	$(E)echo LD $(LDFLAGS) -o $@ $^ $(LIBS)
133
	$(E)echo LD $(LDFLAGS) -o $@ $< "..." $(LIBS)
134 134
	$(Q)$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
135 135

  
136
# Hack to avoid problems with tests linking everything
137
$(tests_targets): LIBS += $(DAEMON_LIBS)
138

  
136 139
$(tests_targets_ok): %.ok: %
137 140
	$(Q)$* 2>/dev/null && touch $*.ok
138 141

  
configure.ac
222 222
AC_SUBST(DAEMON_LIBS)
223 223

  
224 224
if test "$enable_libssh" != no ; then
225
  AC_CHECK_HEADER([libssh/libssh.h], [], [fail=yes], [ ])
226
  AC_CHECK_LIB([ssh], [ssh_connect], [], [fail=yes])
225
  AC_CHECK_HEADER([libssh/libssh.h], [true], [fail=yes], [ ])
226
  AC_CHECK_LIB([ssh], [ssh_connect], [true], [fail=yes])
227 227

  
228 228
  if test "$fail" != yes ; then
229 229
    AC_DEFINE([HAVE_LIBSSH], [1], [Define to 1 if you have the `ssh' library (-lssh).])

Also available in: Unified diff