xref: /openbsd-src/gnu/usr.bin/perl/hints/umips.sh (revision 7bfa9f444b545f1bc96a4b2919ed2583bf07c7ea)
1ba47ec9dSmillert# hints/umips.sh
2ba47ec9dSmillert#
3ba47ec9dSmillert# Mips R3030 / Bruker AspectSation  running RISC/os (UMIPS) 4.52
4ba47ec9dSmillert# compiling with gcc 2.7.2
5ba47ec9dSmillert#
6ba47ec9dSmillert# Created Sat Aug 17 00:17:15 MET DST 1996
7ba47ec9dSmillert# by Guenter Schmidt  <gsc@bruker.de>
8ba47ec9dSmillert#
9ba47ec9dSmillert# uname -a output looks like this:
10ba47ec9dSmillert# 	xxx xxx 4_52 umips mips
11ba47ec9dSmillert
12ba47ec9dSmillert# Speculative notes on getting cc to work added by
13*85009909Smillert# Andy Dougherty	<doughera@lafayette.edu>
14ba47ec9dSmillert# Tue Aug 20 21:51:49 EDT 1996
15ba47ec9dSmillert
16ba47ec9dSmillert# Recommend the GNU C Compiler
17ba47ec9dSmillertcase "$cc" in
18ba47ec9dSmillert'')	echo 'gcc 2.7.2 (or later) is recommended.  Use Configure -Dcc=gcc' >&4
19ba47ec9dSmillert	# The test with the native compiler not succeed:
20ba47ec9dSmillert	# `sh  cflags libperl.a miniperlmain.o`  miniperlmain.c
21ba47ec9dSmillert	#  CCCMD =  cc -c -I/usr/local/include -I/usr/include/bsd -DLANGUAGE_C -O
22ba47ec9dSmillert	# ccom: Error: ./mg.h, line 12: redeclaration of formal parameter, sv
23ba47ec9dSmillert	# 	  int           (*svt_set)       (SV *sv, MAGIC* mg);
24ba47ec9dSmillert	#       ------------------------------------------^
25ba47ec9dSmillert	# ccom: Error: ./mg.h, line 12: redeclaration of formal parameter, mg
26ba47ec9dSmillert	# This is probably a result of incomplete prototype support.
27ba47ec9dSmillert	prototype=undef
28ba47ec9dSmillert	;;
29ba47ec9dSmillertesac
30ba47ec9dSmillert
31ba47ec9dSmillert#  POSIX support in RiscOS is not useable
32ba47ec9dSmillertuseposix='false'
33ba47ec9dSmillert
34ba47ec9dSmillertcase "$cc" in
35ba47ec9dSmillert*gcc*) d_shmatprototype='define' ;;
36ba47ec9dSmillertesac
37ba47ec9dSmillert
38ba47ec9dSmillertglibpth="$glibpth /usr/lib/cmplrs/cc"
39