From 20f932be9220c6572c058e93bff8ce898722d3f5 Mon Sep 17 00:00:00 2001 From: Mathieu Virbel Date: Fri, 1 Mar 2013 18:37:40 +0100 Subject: [PATCH] ensure pkg-config is installed before going further. closes #43 --- tools/environment.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/environment.sh b/tools/environment.sh index ddcdde4..34c8126 100755 --- a/tools/environment.sh +++ b/tools/environment.sh @@ -48,15 +48,19 @@ export HOSTPYTHON="$TMPROOT/Python-$IOS_PYTHON_VERSION/hostpython" for fn in cython-2.7 cython; do export CYTHON=$(which $fn) if [ "X$CYTHON" != "X" ]; then - echo "Cython found at $CYTHON" break fi done if [ "X$CYTHON" == "X" ]; then - print "Cython is not installed, aborting." + echo "Cython is not installed, aborting." exit 1 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