Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Insist on using xlC when available and when not instructed otherwise
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 4 Mar 2005 13:03:43 +0000 (13:03 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 4 Mar 2005 13:03:43 +0000 (13:03 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@1149 48e7efb5-ca39-0410-a469-dd3cf9ba447f

tools/graspe-slave.in

index ef2a8f9..33cc656 100644 (file)
@@ -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