ensure pkg-config is installed before going further. closes #43

This commit is contained in:
Mathieu Virbel 2013-03-01 18:37:40 +01:00
parent 0062353c58
commit 20f932be92

View file

@ -48,15 +48,19 @@ export HOSTPYTHON="$TMPROOT/Python-$IOS_PYTHON_VERSION/hostpython"
for fn in cython-2.7 cython; do for fn in cython-2.7 cython; do
export CYTHON=$(which $fn) export CYTHON=$(which $fn)
if [ "X$CYTHON" != "X" ]; then if [ "X$CYTHON" != "X" ]; then
echo "Cython found at $CYTHON"
break break
fi fi
done done
if [ "X$CYTHON" == "X" ]; then if [ "X$CYTHON" == "X" ]; then
print "Cython is not installed, aborting." echo "Cython is not installed, aborting."
exit 1 exit 1
fi fi
# check basic tools
if [ "X$(which pkg-config)" == "X" ]; then
echo "pkg-config is not installed, aborting."
exit 1
fi
# flags for arm compilation # flags for arm compilation