configure.ac: Add zlib to Requires.private in libssh2.pc if using zlib
This commit is contained in:
parent
a5bf809b80
commit
b4f71fd25a
@ -105,8 +105,6 @@ if test "$ac_cv_libssl" != "yes" && test "$use_libgcrypt" != "no"; then
|
|||||||
LIBS="$LIBS -lgcrypt"
|
LIBS="$LIBS -lgcrypt"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_SUBST(LIBSREQUIRED)
|
|
||||||
|
|
||||||
if test "$ac_cv_libssl" != "yes" && test "$ac_cv_libgcrypt" != "yes"; then
|
if test "$ac_cv_libssl" != "yes" && test "$ac_cv_libgcrypt" != "yes"; then
|
||||||
AC_MSG_ERROR([cannot find OpenSSL or Libgcrypt,
|
AC_MSG_ERROR([cannot find OpenSSL or Libgcrypt,
|
||||||
try --with-libssl-prefix=PATH or --with-libgcrypt-prefix=PATH])
|
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])
|
AC_MSG_NOTICE([Try --with-libz-prefix=PATH if you know you have it])
|
||||||
else
|
else
|
||||||
AC_DEFINE(LIBSSH2_HAVE_ZLIB, 1, [Compile in zlib support])
|
AC_DEFINE(LIBSSH2_HAVE_ZLIB, 1, [Compile in zlib support])
|
||||||
|
if test "${LIBSREQUIRED}" != ""; then
|
||||||
|
LIBSREQUIRED="${LIBSREQUIRED},"
|
||||||
|
fi
|
||||||
|
LIBSREQUIRED="${LIBSREQUIRED}zlib"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
AC_SUBST(LIBSREQUIRED)
|
||||||
|
|
||||||
#
|
#
|
||||||
# Optional Settings
|
# Optional Settings
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user