add requirements check for autoconf, automake, libtool, pkg-config, hg
This commit is contained in:
parent
20f932be92
commit
066e868534
1 changed files with 9 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue