From 7fc5261c7b2eb3be28854ab1b12c26fdb143b61c Mon Sep 17 00:00:00 2001 From: charlet Date: Fri, 5 Dec 2003 09:55:35 +0000 Subject: Add checks against missing gnatlib/gnattools. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74317 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/testsuite/ada/acats/run_acats | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'gcc/testsuite/ada') diff --git a/gcc/testsuite/ada/acats/run_acats b/gcc/testsuite/ada/acats/run_acats index 27963856f74..e61191d46c4 100755 --- a/gcc/testsuite/ada/acats/run_acats +++ b/gcc/testsuite/ada/acats/run_acats @@ -10,9 +10,21 @@ fi host_gnatmake=`type gnatmake | awk '{print $3}'` ROOT=`${PWDCMD-pwd}` BASE=`cd $ROOT/../../..; ${PWDCMD-pwd}` + PATH=$BASE:$ROOT:$PATH ADA_INCLUDE_PATH=$BASE/ada/rts ADA_OBJECTS_PATH=$ADA_INCLUDE_PATH + +if [ ! -d $ADA_INCLUDE_PATH ]; then + echo gnatlib missing, exiting. + exit 1 +fi + +if [ ! -f $BASE/gnatmake ]; then + echo gnattools missing, exiting. + exit 1 +fi + GCC="$BASE/xgcc -B$BASE/" export PATH ADA_INCLUDE_PATH ADA_OBJECTS_PATH GCC -- cgit v1.2.1