2021-07-17 05:52:10 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2021-09-28 10:27:17 +00:00
|
|
|
. "$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)/_bootstrap.sh"
|
2021-07-17 05:52:10 +00:00
|
|
|
|
|
|
|
rc=0
|
2021-08-02 15:18:35 +00:00
|
|
|
if php --ri igbinary >/dev/null 2>/dev/null; then
|
|
|
|
if test -z "$(php --ri yac | grep 'Serializer => .*igbinary')"; then
|
|
|
|
echo 'yac has not been compiled with Igbinary support' >&2
|
|
|
|
rc=1
|
|
|
|
else
|
|
|
|
echo 'yac has been compiled with Igbinary support'
|
|
|
|
fi
|
2021-07-17 05:52:10 +00:00
|
|
|
fi
|
2021-08-02 15:18:35 +00:00
|
|
|
if php --ri json >/dev/null 2>/dev/null; then
|
|
|
|
if test -z "$(php --ri yac | grep 'Serializer => .*json')"; then
|
|
|
|
echo 'yac has not been compiled with Json support' >&2
|
|
|
|
rc=1
|
|
|
|
else
|
|
|
|
echo 'yac has been compiled with Json support'
|
|
|
|
fi
|
2021-07-17 05:52:10 +00:00
|
|
|
fi
|
2021-08-02 15:18:35 +00:00
|
|
|
if php --ri msgpack >/dev/null 2>/dev/null; then
|
|
|
|
if test -z "$(php --ri yac | grep 'Serializer => .*msgpack')"; then
|
|
|
|
echo 'yac has not been compiled with Msgpack support' >&2
|
|
|
|
rc=1
|
|
|
|
else
|
|
|
|
echo 'yac has been compiled with Msgpack support'
|
|
|
|
fi
|
2021-07-17 05:52:10 +00:00
|
|
|
fi
|
|
|
|
exit $rc
|