From 44dddcf36a56be14dd95d66b5e458e365922a260 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Mon, 20 Jun 2005 18:13:21 +0000
Subject: [PATCH] don't force CC on sgi anymore

---
 configure    | 14 +++++++-------
 configure.in | 20 +++++++++++---------
 2 files changed, 18 insertions(+), 16 deletions(-)

diff --git a/configure b/configure
index 84aa02c824..298ff49158 100755
--- a/configure
+++ b/configure
@@ -4329,17 +4329,17 @@ case "$UNAME" in
     ;;
 
   IRIX*)
-    CXX="CC"
-    CC="cc"
-    OPTIM="-O2"
-            FLAGS="-LANG:std -OPT:Olimit=0 -DOLDCINCLUDE ${FLAGS}"
-    AR="CC -ar -o"
-    LINKER="CC -O2"
+        if test "x${CXX}" = "xCC"; then
+                  OPTIM="-O2"
+      FLAGS="-LANG:std -OPT:Olimit=0 -DOLDCINCLUDE ${FLAGS}"
+      AR="CC -ar -o"
+      LINKER="CC -O2"
+    fi
     ;;
 
   OSF1*)
     FLAGS="-DHAVE_NO_SOCKLEN_T ${FLAGS}"
-    if test "x${CXX}" = "xcxx" ; then
+        if test "x${CXX}" = "xcxx" ; then
       FLAGS="-D__USE_STD_IOSTREAM ${FLAGS}"
     fi
     ;;
diff --git a/configure.in b/configure.in
index 16443ff904..d8992b4b45 100644
--- a/configure.in
+++ b/configure.in
@@ -1,4 +1,4 @@
-dnl $Id: configure.in,v 1.67 2005-06-20 17:43:24 geuzaine Exp $
+dnl $Id: configure.in,v 1.68 2005-06-20 18:13:21 geuzaine Exp $
 dnl
 dnl Copyright (C) 1997-2005 C. Geuzaine, J.-F. Remacle
 dnl
@@ -382,18 +382,20 @@ case "$UNAME" in
     ;;
 
   IRIX*)
-    CXX="CC"
-    CC="cc"
-    OPTIM="-O2"
-    dnl "-DOLDCINCLUDE" is for Netgen
-    dnl Add "-mips3 -n32" to FLAGS, AR and LINKER for portable 32 bit binary
-    FLAGS="-LANG:std -OPT:Olimit=0 -DOLDCINCLUDE ${FLAGS}"
-    AR="CC -ar -o"
-    LINKER="CC -O2"
+    dnl options for native SGI compiler
+    if test "x${CXX}" = "xCC"; then
+      dnl add "-mips3 -n32" to FLAGS, AR and LINKER for portable 32 bit exe
+      dnl "-DOLDCINCLUDE" is for Netgen
+      OPTIM="-O2"
+      FLAGS="-LANG:std -OPT:Olimit=0 -DOLDCINCLUDE ${FLAGS}"
+      AR="CC -ar -o"
+      LINKER="CC -O2"
+    fi
     ;;
 
   OSF1*)
     FLAGS="-DHAVE_NO_SOCKLEN_T ${FLAGS}"
+    dnl options for native DEC compiler
     if test "x${CXX}" = "xcxx" ; then
       FLAGS="-D__USE_STD_IOSTREAM ${FLAGS}"
     fi
-- 
GitLab