configure.ac: Add zlib to Requires.private in libssh2.pc if using zlib

This commit is contained in:
Peter Stuge 2013-09-15 20:35:57 +02:00
parent a5bf809b80
commit b4f71fd25a

View File

@ -105,8 +105,6 @@ if test "$ac_cv_libssl" != "yes" && test "$use_libgcrypt" != "no"; then
LIBS="$LIBS -lgcrypt"
fi
AC_SUBST(LIBSREQUIRED)
if test "$ac_cv_libssl" != "yes" && test "$ac_cv_libgcrypt" != "yes"; then
AC_MSG_ERROR([cannot find OpenSSL or Libgcrypt,
try --with-libssl-prefix=PATH or --with-libgcrypt-prefix=PATH])
@ -133,9 +131,15 @@ if test "$use_libz" != "no"; then
AC_MSG_NOTICE([Try --with-libz-prefix=PATH if you know you have it])
else
AC_DEFINE(LIBSSH2_HAVE_ZLIB, 1, [Compile in zlib support])
if test "${LIBSREQUIRED}" != ""; then
LIBSREQUIRED="${LIBSREQUIRED},"
fi
LIBSREQUIRED="${LIBSREQUIRED}zlib"
fi
fi
AC_SUBST(LIBSREQUIRED)
#
# Optional Settings
#