From 2d2522f666628f45a49b2033d7324a1443884604 Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Mon, 13 Dec 2004 17:29:45 -0500 Subject: [svn-r9662] Purpose: Bug fix. Description: MIPSpro Compiler 7.4.x starts to support C99 features but stdint.h has a "guard" in it that will #error if cc is invoked without asking for C99 standard. But it does not result with a non-zero compiler exit code, thus configure thought it is okay to use header file stdint.h. This causes problems later. Solution: Default to use the C99 compiler if available. Platforms tested: Tested in Sandia tesla machine which is a new SGI machine. --- config/irix6.x | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/config/irix6.x b/config/irix6.x index 2221b3f..2481e1e 100644 --- a/config/irix6.x +++ b/config/irix6.x @@ -8,8 +8,12 @@ # Use SGI supplied C compiler by default. There is no ranlib if test "X-" = "X-$CC"; then - CC='cc' - CC_BASENAME=cc + CC='cc' + CC_BASENAME=cc + # use c99 compiler if available. + if `c99 -version >/dev/null 2>&1` ; then + CC='c99' + fi fi RANLIB=: @@ -61,13 +65,10 @@ case "X-$CC_BASENAME" in # 85: duplicate definition preemption (from -lnsl) # 134: duplicate weak definition preemption (from -lnsl) CFLAGS="$CFLAGS -Wl,-woff,47,-woff,84,-woff,85,-woff,134" - - # Always turn on full warnings - CFLAGS="$CFLAGS -fullwarn" fi # Extra debugging flags - DEBUG_CFLAGS="-g" + DEBUG_CFLAGS="-g -fullwarn" DEBUG_CPPFLAGS= # Extra production flags -- cgit v0.12