From f2d6a162a14c455fcf36b2edea83f6f5a9bd69b9 Mon Sep 17 00:00:00 2001 From: mquinson Date: Fri, 4 Mar 2005 13:03:43 +0000 Subject: [PATCH] Insist on using xlC when available and when not instructed otherwise git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@1149 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- tools/graspe-slave.in | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tools/graspe-slave.in b/tools/graspe-slave.in index ef2a8f94f1..33cc656ce8 100644 --- a/tools/graspe-slave.in +++ b/tools/graspe-slave.in @@ -78,6 +78,17 @@ fi ### # Real script ### +if [ "x$CC" = x ] ; then + echo "CC not set. Search for xlC" + xlC=`which xlC` + if [ "x$xlC" != x ] ; then + echo "Found (in $xlC)" + CONFIGURE_ARGS="$CONFIGURE_ARGS CC=xlC" + else + echo "Not found. Stick to the defaults" + fi +fi + # expend the path for solaris PATH="$PATH:/usr/xpg4/bin" export PATH -- 2.20.1