mirror of
https://github.com/mirror/wget.git
synced 2024-12-28 22:00:27 +08:00
use pkg-config to check zlib deps if available
Newer versions of these packages ship with pkg-config files, so if we can detect it via those, do so. If that fails, fall back to the old methods.
This commit is contained in:
parent
ea97693b54
commit
297d040ce1
@ -1,3 +1,8 @@
|
|||||||
|
2014-11-01 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
|
* configure.ac: Use pkg-config to check for zlib presence and
|
||||||
|
fallback to the previous code if that doesn't work.
|
||||||
|
|
||||||
2014-07-28 Ángel González <keisial@gmail.com>
|
2014-07-28 Ángel González <keisial@gmail.com>
|
||||||
* contrib: Created contrib folder.
|
* contrib: Created contrib folder.
|
||||||
* contrib/tsocked-wget: Added wrapper for usage with socks proxy.
|
* contrib/tsocked-wget: Added wrapper for usage with socks proxy.
|
||||||
|
10
configure.ac
10
configure.ac
@ -263,9 +263,17 @@ dnl
|
|||||||
dnl Checks for libraries.
|
dnl Checks for libraries.
|
||||||
dnl
|
dnl
|
||||||
|
|
||||||
|
PKG_PROG_PKG_CONFIG
|
||||||
|
|
||||||
AS_IF([test x"$with_zlib" != xno], [
|
AS_IF([test x"$with_zlib" != xno], [
|
||||||
with_zlib=yes
|
with_zlib=yes
|
||||||
AC_CHECK_LIB(z, compress)
|
PKG_CHECK_MODULES([ZLIB], zlib, [
|
||||||
|
LIBS="$ZLIB_LIBS $LIBS"
|
||||||
|
CFLAGS="$ZLIB_CFLAGS $CFLAGS"
|
||||||
|
AC_DEFINE([HAVE_LIBZ], [1], [Define if using zlib.])
|
||||||
|
], [
|
||||||
|
AC_CHECK_LIB(z, compress)
|
||||||
|
])
|
||||||
])
|
])
|
||||||
|
|
||||||
AS_IF([test x"$with_ssl" = xopenssl], [
|
AS_IF([test x"$with_ssl" = xopenssl], [
|
||||||
|
Loading…
Reference in New Issue
Block a user