+if [ $testsuite_only -eq 0 ]; then
+
+if [ $no_clean -eq 0 ]; then
+ if [ -f mk/config.mk ]; then
+ make distclean
+ fi
+
+ case $OSTYPE in
+ cygwin|msys) config_args=--build=i386-unknown-mingw32
+ if [ -f c:/mingw/bin/gcc.exe ]
+ then
+ config_args="$config_args --with-gcc=c:/mingw/bin/gcc"
+ fi
+ ;;
+ esac
+
+ sh boot
+ ./configure "--prefix=`pwd`/inst" $config_args
+fi
+
+thisdir=`utils/pwd/pwd forwardslash`
+
+echo "Validating=YES" > mk/are-validating.mk
+
+make -j$threads ValidateHpc=$hpc ValidateSlow=$slow
+fi # testsuite-only
+
+if [ "$hpc" = YES ]
+then
+ # XXX With threads we'd need to give a different tix file to each thread
+ # and then sum them up at the end
+ threads=1
+ HPCTIXFILE=$thisdir/testsuite/hpc_output/ghc.tix
+ export HPCTIXFILE
+ rm -f $HPCTIXFILE
+fi