Skip to content

Commit

Permalink
add requirements check for autoconf, automake, libtool, pkg-config, hg
Browse files Browse the repository at this point in the history
  • Loading branch information
tito committed Mar 1, 2013
1 parent 20f932b commit 066e868
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tools/environment.sh
Expand Up @@ -57,8 +57,15 @@ if [ "X$CYTHON" == "X" ]; then
fi

# check basic tools
if [ "X$(which pkg-config)" == "X" ]; then
echo "pkg-config is not installed, aborting."
CONFIGURATION_OK=1
for tool in pkg-config autoconf automake libtool hg; do
if [ "X$(which $tool)" == "X" ]; then
echo "Missing requirement: $tool is not installed !"
CONFIGURATION_OK=0
fi
done
if [ $CONFIGURATION_OK -eq 0 ]; then
echo "Install thoses requirements first, then restart the script."
exit 1
fi

Expand Down

0 comments on commit 066e868

Please sign in to comment.