Lines Matching refs:bc
3 # This script is used by test/Makefile.ssl to check whether a sane 'bc'
5 # ('make test_bn' should not try to run 'bc' if it does not exist or if
6 # it is a broken 'bc' version that is known to cause trouble.)
8 # If 'bc' works, we also test if it knows the 'print' command.
11 # running) bc.
16 # First we try "bc", then "$dir/bc" for each item in $PATH.
20 bc=bc
24 bc="$dir/bc"
25 if [ ! -f "$bc" ]; then # '-x' is not available on Ultrix
26 bc=''
30 if [ ! "$bc" = '' ]; then
34 # Test for SunOS 5.[78] bc bug
35 "$bc" >tmp.bctest <<\EOF
56 # Test for SCO bc bug.
57 "$bc" >tmp.bctest <<\EOF
92 # bc works; now check if it knows the 'print' command.
93 if [ "OK" = "`echo 'print \"OK\"' | $bc 2>/dev/null`" ]
95 echo "$bc"
97 echo "sed 's/print.*//' | $bc"
102 echo "$bc does not work properly ('$failure' failed). Looking for another bc ..." >&2
106 echo "No working bc found. Consider installing GNU bc." >&2