mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
zlib and crypto libs are part of the base system in *BSD. So no need to check for them on *BSD. This conveniently avoids executing a non-portable usage of ldconfig. Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
25 lines
274 B
Bash
Executable File
25 lines
274 B
Bash
Executable File
#!/bin/sh
|
|
# CHECK-BUILD CHECK-INSTALL
|
|
|
|
RC=0
|
|
|
|
case $(uname -s) in
|
|
FreeBSD|NetBSD|OpenBSD)
|
|
exit 0
|
|
;;
|
|
*)
|
|
;;
|
|
esac
|
|
|
|
PATH=/sbin:$PATH
|
|
|
|
set -e
|
|
ldconfig -p 2>&1 | grep -q libz.so || RC=1
|
|
|
|
if test ${RC} -ne 0; then
|
|
echo
|
|
echo " *** Check for zlib library FAILED"
|
|
fi
|
|
|
|
exit ${RC}
|