aff CMake check before running the install

git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@490 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
legrand 2007-07-02 13:46:26 +00:00
commit dd93a8cdc3

View file

@ -707,6 +707,14 @@ function run_install_step()
execute_cmd "echo \"You must have automake installed to compile $PROG. Please update your system to get it before installing $PROG.\"" "[0-2] Check autoconf" $SPY
DIE=1
}
(cmake --version) < /dev/null > /dev/null 2>&1 ||
{
echo "You must have CMake installed to compile $PROG. Please update your system to get it before installing $PROG."
execute_cmd "echo \"You must have CMake installed to compile $PROG. Please update your system to get it before installing $PROG.\"" "[0-3] Check autoconf" $SPY
DIE=1
}
if [ "$DIE" = "1" ]
then
exit 1