From xemacs-m  Sat Jan 11 04:55:27 1997
Received: from caviar.cv.ruu.nl (caviar.cv.ruu.nl [131.211.144.138])
          by xemacs.org (8.8.4/8.8.4) with ESMTP
	  id EAA27183 for <xemacs-beta@xemacs.org>; Sat, 11 Jan 1997 04:55:26 -0600 (CST)
Received: from triton.cv.ruu.nl (triton.cv.ruu.nl [131.211.144.150]) by caviar.cv.ruu.nl (8.7.5/8.7.3) with ESMTP id LAA24326; Sat, 11 Jan 1997 11:55:17 +0100 (MET)
Received: from wodan.cv.ruu.nl (wodan.cv.ruu.nl [131.211.144.149]) by triton.cv.ruu.nl (8.7.5/8.6.12) with ESMTP id LAA05565; Sat, 11 Jan 1997 11:57:34 +0100 (MET)
From: Karel Zuiderveld <Karel.Zuiderveld@cv.ruu.nl>
Received: (karel@localhost) by wodan.cv.ruu.nl (8.6.12/8.6.12) id LAA18295; Sat, 11 Jan 1997 11:54:56 +0100
Message-Id: <199701111054.LAA18295@wodan.cv.ruu.nl>
Subject: Re: SGI's and cpp
To: mrb@Eng.Sun.COM
Date: Sat, 11 Jan 1997 11:54:55 +0100 (MET)
Cc: xemacs-beta@xemacs.org
In-Reply-To: <199701110824.AAA29475@xemacs.eng.sun.com> from "Martin Buchholz" at Jan 11, 97 00:24:13 am
X-Mailer: ELM [version 2.4 PL25]
Content-Type: text

> 
> To SGI users: please rescue your platform as follows:
...

> So if cc is your C compiler, try:
> export CPP='cc -E'
> configure
> make
This solves the configuration problem. 

....
> BTW, I notice in configure the section for SGI's is as follows:
> 
>   ## Silicon Graphics machines
>   ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
>   m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
>   m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
>   ## Iris 4D
>   mips-sgi-irix3.*      ) machine=iris4d opsys=irix3-3 ;;
>   mips-sgi-irix4.*      ) machine=iris4d opsys=irix4-0 ;;
>   mips-sgi-irix6*       ) machine=iris4d opsys=irix6-0  NON_GNU_CPP=/lib/cpp ;;
>   mips-sgi-irix5.[3-9]* ) machine=iris4d opsys=irix5-3 ;;
>   mips-sgi-irix5.2*     ) machine=iris4d opsys=irix5-2 ;;
>   mips-sgi-irix5.1*     ) machine=iris4d opsys=irix5-1 ;;
>   mips-sgi-irix*        ) machine=iris4d opsys=irix5-0 ;;
> 
> Where did the setting for NON_GNU_CPP just for irix6 come from??
> Could simply removing that assignment for NON_GNU_CPP above fix the
> problem, by getting configure to use cc -E ?
> 
> SGI'ers, please investigate.

Editing the line

mips-sgi-irix6*       ) machine=iris4d opsys=irix6-0  NON_GNU_CPP="cc -E" ;;

as you suggested also solves the problem. But: I think that setting
the environment variable is the best solution, otherwise you run into
problems with systems that only have gcc.  

Also note that this fixes only 1 of the 3 problems I encountered;
the other two (configure doesn't find the X11 libs without setting
SGI_ABI to "-o32" and the presence of SGi specific jpeg/tiff/png
libraries that lead to core dumps) are tricky...

I had hoped to port a new beta again next week, but my DAT doesn't
work anymore and neither did I (got a fever yesterday). Oh well.

karel

-- 
------------------------------------------------------------------------- 
Karel Zuiderveld, PhD                 E-mail: karel.zuiderveld@cv.ruu.nl
Department of Image Sciences E01.334  WWW: http://www.cv.ruu.nl/~karel 
Image Sciences Institute              Tel: +31-30-2507772 Fax: +31-30-2513399
University Hospital Utrecht, Heidelberglaan 100, NL-3584 CX Utrecht
---------------- If Murphy's law can go wrong, it will ------------------

