Diffstat (limited to 'mcon/U/Mips.U')
1 files changed, 69 insertions, 0 deletions
diff --git a/mcon/U/Mips.U b/mcon/U/Mips.U
new file mode 100644
@@ -0,0 +1,69 @@
+?RCS: $Id: Mips.U 167 2013-05-08 17:58:00Z rmanfredi $
+?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi
+?RCS: You may redistribute only under the terms of the Artistic License,
+?RCS: as specified in the README file that comes with the distribution.
+?RCS: You may reuse parts of this distribution only within the terms of
+?RCS: that same Artistic License; a copy of which may be found at the root
+?RCS: of the source tree for dist 4.0.
+?RCS: $Log: usrinc.U,v $
+?RCS: Revision 188.8.131.52 1997/02/28 16:27:12 ram
+?RCS: patch61: don't ask for the include path unless they are on a MIPS
+?RCS: Revision 184.108.40.206 1995/05/12 12:24:36 ram
+?RCS: patch54: ensure that ./mips always exists (ADO)
+?RCS: Revision 220.127.116.11 1994/05/06 15:18:31 ram
+?RCS: patch23: ensure usrinc value is preserved across sessions (WED)
+?RCS: Revision 3.0 1993/08/18 12:09:58 ram
+?RCS: Baseline for dist 3.0 netwide release.
+?MAKE:Mips mips_type incpath: test cat echo n c Getfile Guess \
+ Oldconfig eunicefix contains rm
+?MAKE: -pick add $@ %<
+?S: This variable holds the environment type for the mips system.
+?S: Possible values are "BSD 4.3" and "System V".
+?S: This variable must precede the normal include path to get hte
+?S: right one, as in "$incpath/usr/include" or "$incpath/usr/lib".
+?S: Value can be "" or "/bsd43" on mips.
+: What should the include directory be ?
+echo " "
+$echo $n "Hmm... $c"
+?X: mips_type is used later, to add -DSYSTYPE_BSD43 to cppflags if needed.
+?X: Cannot put the following in Guess, or we get a circular dependency.
+if $test -f /bin/mips && /bin/mips; then
+ echo "Looks like a MIPS system..."
+ $cat >usr.c <<'EOCP'
+ if cc -E usr.c > usr.out && $contains / usr.out >/dev/null 2>&1; then
+ mips_type='BSD 4.3'
+ mips_type='System V'
+ $rm -f usr.c usr.out
+ echo "and you're compiling with the $mips_type compiler and libraries."
+ echo "exit 0" >mips
+ echo "Doesn't look like a MIPS system."
+ echo "exit 1" >mips
+chmod +x mips