summaryrefslogtreecommitdiff
path: root/hints/unicos.sh
diff options
context:
space:
mode:
Diffstat (limited to 'hints/unicos.sh')
-rw-r--r--hints/unicos.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/hints/unicos.sh b/hints/unicos.sh
index bff3b22f5d..2af5f283ed 100644
--- a/hints/unicos.sh
+++ b/hints/unicos.sh
@@ -14,9 +14,10 @@ ccflags="$ccflags -h matherror=errno"
# (It gives int((2/3)*3) a chance to be 2, not 1. --jhi)
# (but IEEE CPUs, IEEE/ieee/CPE1 CPUs should not have -h rounddiv,
# since the compiler on those CPUs doesn't even support the option.)
-case "`/etc/cpu -i|grep cfp`" in
-*"cfp") ccflags="$ccflags -h rounddiv" ;;
-esac
+if /etc/cpu -i | grep -q cfp
+then
+ ccflags="$ccflags -h rounddiv"
+fi
# Avoid an optimizer bug where a volatile variables
# isn't correctly saved and restored --Mark P. Lutz