diff --git a/trunk/auto/depends.sh b/trunk/auto/depends.sh index 1d72c02ab..52558be5e 100755 --- a/trunk/auto/depends.sh +++ b/trunk/auto/depends.sh @@ -110,7 +110,11 @@ function Ubuntu_prepare() echo "The valgrind-dev is installed." fi fi - + + pkg-config --version >/dev/null 2>&1; ret=$?; if [[ 0 -ne $ret ]]; then + echo "Please install pkg-config"; exit -1; + fi + echo "Tools for Ubuntu are installed." return 0 } @@ -191,6 +195,10 @@ function Centos_prepare() echo "The valgrind-devel is installed." fi fi + + pkg-config --version --help >/dev/null 2>&1; ret=$?; if [[ 0 -ne $ret ]]; then + echo "Please install pkg-config"; exit -1; + fi echo "Tools for Centos are installed." return 0