From 066e868534b246d92af57957e6993516c9879a3d Mon Sep 17 00:00:00 2001 From: Mathieu Virbel Date: Fri, 1 Mar 2013 18:40:51 +0100 Subject: [PATCH] add requirements check for autoconf, automake, libtool, pkg-config, hg --- tools/environment.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tools/environment.sh b/tools/environment.sh index 34c8126..4671ae9 100755 --- a/tools/environment.sh +++ b/tools/environment.sh @@ -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