2e469426f7
MIPSPro compiler/preprocessor behaves differently if invoked on stdin vs file. In configure, we test for stdin, but lateron we use files. So force it to work the way we know it does.
21 lines
873 B
Text
21 lines
873 B
Text
$NetBSD: patch-ca,v 1.1 2004/04/12 02:51:22 jschauma Exp $
|
|
|
|
--- Configure.orig Fri Mar 26 10:34:43 2004
|
|
+++ Configure Fri Mar 26 10:43:17 2004
|
|
@@ -12495,7 +12495,15 @@
|
|
ACAT(Cir,cus)
|
|
EOCP
|
|
$cppstdin $cppflags $cppminus <cpp_stuff.c >cpp_stuff.out 2>&1
|
|
-if $contains 'Circus' cpp_stuff.out >/dev/null 2>&1; then
|
|
+# yuck, what a hack.
|
|
+# MIPSPro compiler/preprocessor behaves differently if invoked on
|
|
+# stdin vs file. Here we test for stdin, but lateron we use files.
|
|
+# So force it to work the way we know it does:
|
|
+if [ x"${OPSYS}" = x"IRIX" ]; then
|
|
+ echo "Hacking MIPSPro on file vs. stdin..." >&4
|
|
+ echo "We know we can catify or stringify, separately or together!"
|
|
+ cpp_stuff=42
|
|
+elif $contains 'Circus' cpp_stuff.out >/dev/null 2>&1; then
|
|
echo "Oh! Smells like ANSI's been here." >&4
|
|
echo "We can catify or stringify, separately or together!"
|
|
cpp_stuff=42
|