sr: FreeBSD has zlib, but no pkg-config file for it.
This commit is contained in:
parent
bf3f06c9c2
commit
44b6aafdb7
|
@ -191,9 +191,18 @@ PKG_CHECK_MODULES([libzip], [libzip >= 0.8],
|
|||
|
||||
# zlib is only needed for some hardware drivers.
|
||||
if test "x$LA_ASIX_SIGMA" != xno; then
|
||||
case "$build" in
|
||||
*freebsd*)
|
||||
# FreeBSD has zlib, but no pkg-config file for it.
|
||||
# Check manually, and do NOT add it to LIBSIGROK_PKGLIBS.
|
||||
AC_CHECK_LIB(z, uncompress)
|
||||
;;
|
||||
*)
|
||||
PKG_CHECK_MODULES([zlib], [zlib >= 1.2.3.1],
|
||||
[CFLAGS="$CFLAGS $zlib_CFLAGS"; LIBS="$LIBS $zlib_LIBS";
|
||||
LIBSIGROK_PKGLIBS="$LIBSIGROK_PKGLIBS zlib"])
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# libftdi is only needed for some hardware drivers.
|
||||
|
|
Loading…
Reference in New Issue