head	1.2;
access;
symbols
	RELENG_8_4:1.2.0.2
	RELENG_9_1_0_RELEASE:1.1.1.5
	RELENG_9_1:1.1.1.5.0.28
	RELENG_9_1_BP:1.1.1.5
	RELENG_8_3_0_RELEASE:1.1.1.5
	RELENG_8_3:1.1.1.5.0.26
	RELENG_8_3_BP:1.1.1.5
	RELENG_9_0_0_RELEASE:1.1.1.5
	RELENG_9_0:1.1.1.5.0.24
	RELENG_9_0_BP:1.1.1.5
	RELENG_9:1.1.1.5.0.22
	RELENG_9_BP:1.1.1.5
	RELENG_7_4_0_RELEASE:1.1.1.5
	RELENG_8_2_0_RELEASE:1.1.1.5
	RELENG_7_4:1.1.1.5.0.20
	RELENG_7_4_BP:1.1.1.5
	RELENG_8_2:1.1.1.5.0.18
	RELENG_8_2_BP:1.1.1.5
	RELENG_8_1_0_RELEASE:1.1.1.5
	RELENG_8_1:1.1.1.5.0.16
	RELENG_8_1_BP:1.1.1.5
	RELENG_7_3_0_RELEASE:1.1.1.5
	RELENG_7_3:1.1.1.5.0.14
	RELENG_7_3_BP:1.1.1.5
	RELENG_8_0_0_RELEASE:1.1.1.5
	RELENG_8_0:1.1.1.5.0.12
	RELENG_8_0_BP:1.1.1.5
	RELENG_8:1.1.1.5.0.10
	RELENG_8_BP:1.1.1.5
	RELENG_7_2_0_RELEASE:1.1.1.5
	RELENG_7_2:1.1.1.5.0.8
	RELENG_7_2_BP:1.1.1.5
	RELENG_7_1_0_RELEASE:1.1.1.5
	RELENG_6_4_0_RELEASE:1.1.1.4
	RELENG_7_1:1.1.1.5.0.6
	RELENG_7_1_BP:1.1.1.5
	RELENG_6_4:1.1.1.4.0.12
	RELENG_6_4_BP:1.1.1.4
	RELENG_7_0_0_RELEASE:1.1.1.5
	RELENG_6_3_0_RELEASE:1.1.1.4
	RELENG_7_0:1.1.1.5.0.4
	RELENG_7_0_BP:1.1.1.5
	RELENG_6_3:1.1.1.4.0.10
	RELENG_6_3_BP:1.1.1.4
	RELENG_7:1.1.1.5.0.2
	RELENG_7_BP:1.1.1.5
	v0_9_8e:1.1.1.5
	RELENG_6_2_0_RELEASE:1.1.1.4
	RELENG_6_2:1.1.1.4.0.8
	RELENG_6_2_BP:1.1.1.4
	v0_9_8d:1.1.1.5
	v0_9_8b:1.1.1.5
	RELENG_5_5_0_RELEASE:1.1.1.3.8.1
	RELENG_5_5:1.1.1.3.8.1.0.4
	RELENG_5_5_BP:1.1.1.3.8.1
	RELENG_6_1_0_RELEASE:1.1.1.4
	RELENG_6_1:1.1.1.4.0.6
	RELENG_6_1_BP:1.1.1.4
	RELENG_6_0_0_RELEASE:1.1.1.4
	RELENG_6_0:1.1.1.4.0.4
	RELENG_6_0_BP:1.1.1.4
	RELENG_6:1.1.1.4.0.2
	RELENG_6_BP:1.1.1.4
	RELENG_5_4_0_RELEASE:1.1.1.3.8.1
	RELENG_5_4:1.1.1.3.8.1.0.2
	RELENG_5_4_BP:1.1.1.3.8.1
	v0_9_7e:1.1.1.4
	RELENG_4_11_0_RELEASE:1.1.1.2.2.2
	RELENG_4_11:1.1.1.2.2.2.0.10
	RELENG_4_11_BP:1.1.1.2.2.2
	RELENG_5_3_0_RELEASE:1.1.1.3
	RELENG_5_3:1.1.1.3.0.10
	RELENG_5_3_BP:1.1.1.3
	RELENG_5:1.1.1.3.0.8
	RELENG_5_BP:1.1.1.3
	RELENG_4_10_0_RELEASE:1.1.1.2.2.2
	RELENG_4_10:1.1.1.2.2.2.0.8
	RELENG_4_10_BP:1.1.1.2.2.2
	v0_9_7d:1.1.1.3
	RELENG_5_2_1_RELEASE:1.1.1.3
	RELENG_5_2_0_RELEASE:1.1.1.3
	RELENG_5_2:1.1.1.3.0.6
	RELENG_5_2_BP:1.1.1.3
	RELENG_4_9_0_RELEASE:1.1.1.2.2.2
	RELENG_4_9:1.1.1.2.2.2.0.6
	RELENG_4_9_BP:1.1.1.2.2.2
	v0_9_7c:1.1.1.3
	RELENG_5_1_0_RELEASE:1.1.1.3
	RELENG_5_1:1.1.1.3.0.4
	RELENG_5_1_BP:1.1.1.3
	RELENG_4_8_0_RELEASE:1.1.1.2.2.2
	RELENG_4_8:1.1.1.2.2.2.0.4
	RELENG_4_8_BP:1.1.1.2.2.2
	v0_9_7a:1.1.1.3
	v0_9_7:1.1.1.3
	RELENG_5_0_0_RELEASE:1.1.1.3
	RELENG_5_0:1.1.1.3.0.2
	RELENG_5_0_BP:1.1.1.3
	RELENG_4_7_0_RELEASE:1.1.1.2.2.2
	RELENG_4_7:1.1.1.2.2.2.0.2
	RELENG_4_7_BP:1.1.1.2.2.2
	RELENG_4_6_2_RELEASE:1.1.1.2.2.1.6.1
	v0_9_6g:1.1.1.3
	v0_9_6f:1.1.1.3
	v0_9_6e:1.1.1.3
	v0_9_6d:1.1.1.3
	RELENG_4_6_1_RELEASE:1.1.1.2.2.1
	RELENG_4_6_0_RELEASE:1.1.1.2.2.1
	RELENG_4_6:1.1.1.2.2.1.0.6
	RELENG_4_6_BP:1.1.1.2.2.1
	RELENG_4_5_0_RELEASE:1.1.1.2.2.1
	v0_9_6c:1.1.1.3
	RELENG_4_5:1.1.1.2.2.1.0.4
	RELENG_4_5_BP:1.1.1.2.2.1
	RELENG_4_4_0_RELEASE:1.1.1.2.2.1
	RELENG_4_4:1.1.1.2.2.1.0.2
	RELENG_4_4_BP:1.1.1.2.2.1
	v0_9_6b:1.1.1.3
	RELENG_4:1.1.1.2.0.2
	v0_9_6a:1.1.1.2
	v0_9_6_2001_02_10:1.1.1.1
	OPENSSL:1.1.1;
locks; strict;
comment	@# @;


1.2
date	2012.07.12.19.30.53;	author jkim;	state dead;
branches
	1.2.2.1;
next	1.1;

1.1
date	2001.02.18.03.17.28;	author kris;	state Exp;
branches
	1.1.1.1;
next	;

1.2.2.1
date	2012.07.12.19.30.53;	author svnexp;	state dead;
branches;
next	1.2.2.2;

1.2.2.2
date	2013.03.28.13.02.40;	author svnexp;	state Exp;
branches;
next	;

1.1.1.1
date	2001.02.18.03.17.28;	author kris;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	2001.05.20.03.07.13;	author kris;	state Exp;
branches
	1.1.1.2.2.1;
next	1.1.1.3;

1.1.1.3
date	2001.07.19.19.59.37;	author kris;	state Exp;
branches
	1.1.1.3.8.1;
next	1.1.1.4;

1.1.1.4
date	2005.02.25.05.38.44;	author nectar;	state Exp;
branches;
next	1.1.1.5;

1.1.1.5
date	2006.07.29.19.10.21;	author simon;	state Exp;
branches;
next	;

1.1.1.2.2.1
date	2001.07.04.23.22.32;	author kris;	state Exp;
branches
	1.1.1.2.2.1.2.1
	1.1.1.2.2.1.4.1
	1.1.1.2.2.1.6.1;
next	1.1.1.2.2.2;

1.1.1.2.2.2
date	2002.07.30.22.06.05;	author nectar;	state Exp;
branches;
next	;

1.1.1.2.2.1.2.1
date	2002.07.31.16.41.24;	author nectar;	state Exp;
branches;
next	;

1.1.1.2.2.1.4.1
date	2002.07.31.14.05.30;	author nectar;	state Exp;
branches;
next	;

1.1.1.2.2.1.6.1
date	2002.07.31.02.55.09;	author nectar;	state Exp;
branches;
next	;

1.1.1.3.8.1
date	2005.03.01.16.47.37;	author nectar;	state Exp;
branches;
next	;


desc
@@


1.2
log
@SVN rev 238405 on 2012-07-12 19:30:53Z by jkim

Merge OpenSSL 1.0.1c.

Approved by:	benl (maintainer)
@
text
@#!/bin/sh

# This script is used by test/Makefile.ssl to check whether a sane 'bc'
# is installed.
# ('make test_bn' should not try to run 'bc' if it does not exist or if
# it is a broken 'bc' version that is known to cause trouble.)
#
# If 'bc' works, we also test if it knows the 'print' command.
#
# In any case, output an appropriate command line for running (or not
# running) bc.


# Test for SunOS 5.[78] bc bug (or missing bc)
if [ 0 != "`bc <<\EOF
obase=16
ibase=16
a=AD88C418F31B3FC712D0425001D522B3AE9134FF3A98C13C1FCC1682211195406C1A6C66C6A\
CEEC1A0EC16950233F77F1C2F2363D56DD71A36C57E0B2511FC4BA8F22D261FE2E9356D99AF57\
10F3817C0E05BF79C423C3F66FDF321BE8D3F18F625D91B670931C1EF25F28E489BDA1C5422D1\
C3F6F7A1AD21585746ECC4F10A14A778AF56F08898E965E9909E965E0CB6F85B514150C644759\
3BE731877B16EA07B552088FF2EA728AC5E0FF3A23EB939304519AB8B60F2C33D6BA0945B66F0\
4FC3CADF855448B24A9D7640BCF473E
b=DCE91E7D120B983EA9A104B5A96D634DD644C37657B1C7860B45E6838999B3DCE5A555583C6\
9209E41F413422954175A06E67FFEF6746DD652F0F48AEFECC3D8CAC13523BDAAD3F5AF4212BD\
8B3CD64126E1A82E190228020C05B91C8B141F1110086FC2A4C6ED631EBA129D04BB9A19FC53D\
3ED0E2017D60A68775B75481449
(a/b)*b + (a%b) - a
EOF`" ]
then
  echo "bc does not work.  Consider installing GNU bc." >&2
  echo "cat >/dev/null"
  exit 1
fi


# Test for SCO bc bug.
if [ "0
0" != "`bc <<\EOF
obase=16
ibase=16
-FFDD63BA1A4648F0D804F8A1C66C53F0D2110590E8A3907EC73B4AEC6F15AC177F176F2274D2\
9DC8022EA0D7DD3ABE9746D2D46DD3EA5B5F6F69DF12877E0AC5E7F5ADFACEE54573F5D256A06\
11B5D2BC24947724E22AE4EC3FB0C39D9B4694A01AFE5E43B4D99FB9812A0E4A5773D8B254117\
1239157EC6E3D8D50199 * -FFDD63BA1A4648F0D804F8A1C66C53F0D2110590E8A3907EC73B4\
AEC6F15AC177F176F2274D29DC8022EA0D7DD3ABE9746D2D46DD3EA5B5F6F69DF12877E0AC5E7\
F5ADFACEE54573F5D256A0611B5D2BC24947724E22AE4EC3FB0C39D9B4694A01AFE5E43B4D99F\
B9812A0E4A5773D8B2541171239157EC6E3D8D50199 - FFBACC221682DA464B6D7F123482522\
02EDAEDCA38C3B69E9B7BBCD6165A9CD8716C4903417F23C09A85B851961F92C217258CEEB866\
85EFCC5DD131853A02C07A873B8E2AF2E40C6D5ED598CD0E8F35AD49F3C3A17FDB7653E4E2DC4\
A8D23CC34686EE4AD01F7407A7CD74429AC6D36DBF0CB6A3E302D0E5BDFCD048A3B90C1BE5AA8\
E16C3D5884F9136B43FF7BB443764153D4AEC176C681B078F4CC53D6EB6AB76285537DDEE7C18\
8C72441B52EDBDDBC77E02D34E513F2AABF92F44109CAFE8242BD0ECBAC5604A94B02EA44D43C\
04E9476E6FBC48043916BFA1485C6093603600273C9C33F13114D78064AE42F3DC466C7DA543D\
89C8D71
AD534AFBED2FA39EE9F40E20FCF9E2C861024DB98DDCBA1CD118C49CA55EEBC20D6BA51B2271C\
928B693D6A73F67FEB1B4571448588B46194617D25D910C6A9A130CC963155CF34079CB218A44\
8A1F57E276D92A33386DDCA3D241DB78C8974ABD71DD05B0FA555709C9910D745185E6FE108E3\
37F1907D0C56F8BFBF52B9704 % -E557905B56B13441574CAFCE2BD257A750B1A8B2C88D0E36\
E18EF7C38DAC80D3948E17ED63AFF3B3467866E3B89D09A81B3D16B52F6A3C7134D3C6F5123E9\
F617E3145BBFBE9AFD0D6E437EA4FF6F04BC67C4F1458B4F0F47B64 - 1C2BBBB19B74E86FD32\
9E8DB6A8C3B1B9986D57ED5419C2E855F7D5469E35E76334BB42F4C43E3F3A31B9697C171DAC4\
D97935A7E1A14AD209D6CF811F55C6DB83AA9E6DFECFCD6669DED7171EE22A40C6181615CAF3F\
5296964
EOF`" ]
then
  echo "bc does not work.  Consider installing GNU bc." >&2
  echo "cat >/dev/null"
  exit 1
fi


# bc works, good.
# Now check if it knows the 'print' command.
if [ "OK" = "`bc 2>/dev/null <<\EOF
print \"OK\"
EOF`" ]
then
    echo "bc"
else
    echo "sed 's/print.*//' | bc"
fi

exit 0
@


1.2.2.1
log
@file bctest was added on branch RELENG_8_4 on 2013-03-28 13:02:40 +0000
@
text
@d1 84
@


1.2.2.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248810
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 111
#!/bin/sh

# This script is used by test/Makefile.ssl to check whether a sane 'bc'
# is installed.
# ('make test_bn' should not try to run 'bc' if it does not exist or if
# it is a broken 'bc' version that is known to cause trouble.)
#
# If 'bc' works, we also test if it knows the 'print' command.
#
# In any case, output an appropriate command line for running (or not
# running) bc.


IFS=:
try_without_dir=true
# First we try "bc", then "$dir/bc" for each item in $PATH.
for dir in dummy:$PATH; do
    if [ "$try_without_dir" = true ]; then
      # first iteration
      bc=bc
      try_without_dir=false
    else
      # second and later iterations
      bc="$dir/bc"
      if [ ! -f "$bc" ]; then  # '-x' is not available on Ultrix
        bc=''
      fi
    fi

    if [ ! "$bc" = '' ]; then
        failure=none


        # Test for SunOS 5.[78] bc bug
        "$bc" >tmp.bctest <<\EOF
obase=16
ibase=16
a=AD88C418F31B3FC712D0425001D522B3AE9134FF3A98C13C1FCC1682211195406C1A6C66C6A\
CEEC1A0EC16950233F77F1C2F2363D56DD71A36C57E0B2511FC4BA8F22D261FE2E9356D99AF57\
10F3817C0E05BF79C423C3F66FDF321BE8D3F18F625D91B670931C1EF25F28E489BDA1C5422D1\
C3F6F7A1AD21585746ECC4F10A14A778AF56F08898E965E9909E965E0CB6F85B514150C644759\
3BE731877B16EA07B552088FF2EA728AC5E0FF3A23EB939304519AB8B60F2C33D6BA0945B66F0\
4FC3CADF855448B24A9D7640BCF473E
b=DCE91E7D120B983EA9A104B5A96D634DD644C37657B1C7860B45E6838999B3DCE5A555583C6\
9209E41F413422954175A06E67FFEF6746DD652F0F48AEFECC3D8CAC13523BDAAD3F5AF4212BD\
8B3CD64126E1A82E190228020C05B91C8B141F1110086FC2A4C6ED631EBA129D04BB9A19FC53D\
3ED0E2017D60A68775B75481449
(a/b)*b + (a%b) - a
EOF
        if [ 0 != "`cat tmp.bctest`" ]; then
            failure=SunOStest
        fi


        if [ "$failure" = none ]; then
            # Test for SCO bc bug.
            "$bc" >tmp.bctest <<\EOF
obase=16
ibase=16
-FFDD63BA1A4648F0D804F8A1C66C53F0D2110590E8A3907EC73B4AEC6F15AC177F176F2274D2\
9DC8022EA0D7DD3ABE9746D2D46DD3EA5B5F6F69DF12877E0AC5E7F5ADFACEE54573F5D256A06\
11B5D2BC24947724E22AE4EC3FB0C39D9B4694A01AFE5E43B4D99FB9812A0E4A5773D8B254117\
1239157EC6E3D8D50199 * -FFDD63BA1A4648F0D804F8A1C66C53F0D2110590E8A3907EC73B4\
AEC6F15AC177F176F2274D29DC8022EA0D7DD3ABE9746D2D46DD3EA5B5F6F69DF12877E0AC5E7\
F5ADFACEE54573F5D256A0611B5D2BC24947724E22AE4EC3FB0C39D9B4694A01AFE5E43B4D99F\
B9812A0E4A5773D8B2541171239157EC6E3D8D50199 - FFBACC221682DA464B6D7F123482522\
02EDAEDCA38C3B69E9B7BBCD6165A9CD8716C4903417F23C09A85B851961F92C217258CEEB866\
85EFCC5DD131853A02C07A873B8E2AF2E40C6D5ED598CD0E8F35AD49F3C3A17FDB7653E4E2DC4\
A8D23CC34686EE4AD01F7407A7CD74429AC6D36DBF0CB6A3E302D0E5BDFCD048A3B90C1BE5AA8\
E16C3D5884F9136B43FF7BB443764153D4AEC176C681B078F4CC53D6EB6AB76285537DDEE7C18\
8C72441B52EDBDDBC77E02D34E513F2AABF92F44109CAFE8242BD0ECBAC5604A94B02EA44D43C\
04E9476E6FBC48043916BFA1485C6093603600273C9C33F13114D78064AE42F3DC466C7DA543D\
89C8D71
AD534AFBED2FA39EE9F40E20FCF9E2C861024DB98DDCBA1CD118C49CA55EEBC20D6BA51B2271C\
928B693D6A73F67FEB1B4571448588B46194617D25D910C6A9A130CC963155CF34079CB218A44\
8A1F57E276D92A33386DDCA3D241DB78C8974ABD71DD05B0FA555709C9910D745185E6FE108E3\
37F1907D0C56F8BFBF52B9704 % -E557905B56B13441574CAFCE2BD257A750B1A8B2C88D0E36\
E18EF7C38DAC80D3948E17ED63AFF3B3467866E3B89D09A81B3D16B52F6A3C7134D3C6F5123E9\
F617E3145BBFBE9AFD0D6E437EA4FF6F04BC67C4F1458B4F0F47B64 - 1C2BBBB19B74E86FD32\
9E8DB6A8C3B1B9986D57ED5419C2E855F7D5469E35E76334BB42F4C43E3F3A31B9697C171DAC4\
D97935A7E1A14AD209D6CF811F55C6DB83AA9E6DFECFCD6669DED7171EE22A40C6181615CAF3F\
5296964
EOF
            if [ "0
0" != "`cat tmp.bctest`" ]; then
                failure=SCOtest
            fi
        fi


        if [ "$failure" = none ]; then
            # bc works; now check if it knows the 'print' command.
            if [ "OK" = "`echo 'print \"OK\"' | $bc 2>/dev/null`" ]
            then
                echo "$bc"
            else
                echo "sed 's/print.*//' | $bc"
            fi
            exit 0
        fi

        echo "$bc does not work properly ('$failure' failed).  Looking for another bc ..." >&2
    fi
done

echo "No working bc found.  Consider installing GNU bc." >&2
if [ "$1" = ignore ]; then
  echo "cat >/dev/null"
  exit 0
fi
exit 1
@


1.1
log
@Initial revision
@
text
@@


1.1.1.1
log
@Import of OpenSSL 0.9.6-STABLE snapshot dated 2001-02-10
@
text
@@


1.1.1.2
log
@Initial import of OpenSSL 0.9.6a
@
text
@d14 2
a15 10
IFS=:
for dir in $PATH; do
    bc="$dir/bc"

    if [ -x "$bc" -a ! -d "$bc" ]; then
        failure=none


        # Test for SunOS 5.[78] bc bug
        "$bc" >tmp.bctest <<\EOF
d29 6
a34 4
EOF
        if [ 0 != "`cat tmp.bctest`" ]; then
            failure=SunOStest
        fi
d37 3
a39 3
        if [ "$failure" = none ]; then
            # Test for SCO bc bug.
            "$bc" >tmp.bctest <<\EOF
d65 18
a82 22
EOF
            if [ "0
0" != "`cat tmp.bctest`" ]; then
                failure=SCOtest
            fi
        fi


        if [ "$failure" = none ]; then
            # bc works; now check if it knows the 'print' command.
            if [ "OK" = "`echo 'print \"OK\"' | $bc 2>/dev/null`" ]
            then
                echo "$bc"
            else
                echo "sed 's/print.*//' | $bc"
            fi
            exit 0
        fi

        echo "$bc does not work properly ('$failure' failed).  Looking for another bc ..." >&2
    fi
done
d84 1
a84 3
echo "No working bc found.  Consider installing GNU bc." >&2
echo "cat >/dev/null"
exit 1
@


1.1.1.3
log
@Initial import of OpenSSL 0.9.6b
@
text
@d15 2
a16 14
try_without_dir=true
# First we try "bc", then "$dir/bc" for each item in $PATH.
for dir in dummy:$PATH; do
    if [ "$try_without_dir" = true ]; then
      # first iteration
      bc=bc
      try_without_dir=false
    else
      # second and later iterations
      bc="$dir/bc"
      if [ ! -f "$bc" ]; then  # '-x' is not available on Ultrix
        bc=''
      fi
    fi
d18 1
a18 1
    if [ ! "$bc" = '' ]; then
d95 1
a95 4
if [ "$1" = ignore ]; then
  echo "cat >/dev/null"
  exit 0
fi
@


1.1.1.3.8.1
log
@MFC update OpenSSL 0.9.7d -> 0.9.7e.
@
text
@d3 1
a3 1
# This script is used by test/Makefile to check whether a sane 'bc'
@


1.1.1.4
log
@Vendor import of OpenSSL 0.9.7e.
@
text
@d3 1
a3 1
# This script is used by test/Makefile to check whether a sane 'bc'
@


1.1.1.5
log
@Vendor import of OpenSSL 0.9.8b
@
text
@d3 1
a3 1
# This script is used by test/Makefile.ssl to check whether a sane 'bc'
@


1.1.1.2.2.1
log
@MFC: Update to OpenSSL 0.9.6a
@
text
@@


1.1.1.2.2.1.2.1
log
@MFC: OpenSSL 0.9.6e
@
text
@d15 2
a16 14
try_without_dir=true
# First we try "bc", then "$dir/bc" for each item in $PATH.
for dir in dummy:$PATH; do
    if [ "$try_without_dir" = true ]; then
      # first iteration
      bc=bc
      try_without_dir=false
    else
      # second and later iterations
      bc="$dir/bc"
      if [ ! -f "$bc" ]; then  # '-x' is not available on Ultrix
        bc=''
      fi
    fi
d18 1
a18 1
    if [ ! "$bc" = '' ]; then
d95 1
a95 4
if [ "$1" = ignore ]; then
  echo "cat >/dev/null"
  exit 0
fi
@


1.1.1.2.2.1.4.1
log
@MFC: OpenSSL 0.9.6e
@
text
@d15 2
a16 14
try_without_dir=true
# First we try "bc", then "$dir/bc" for each item in $PATH.
for dir in dummy:$PATH; do
    if [ "$try_without_dir" = true ]; then
      # first iteration
      bc=bc
      try_without_dir=false
    else
      # second and later iterations
      bc="$dir/bc"
      if [ ! -f "$bc" ]; then  # '-x' is not available on Ultrix
        bc=''
      fi
    fi
d18 1
a18 1
    if [ ! "$bc" = '' ]; then
d95 1
a95 4
if [ "$1" = ignore ]; then
  echo "cat >/dev/null"
  exit 0
fi
@


1.1.1.2.2.1.6.1
log
@MFC: OpenSSL 0.9.6e
@
text
@d15 2
a16 14
try_without_dir=true
# First we try "bc", then "$dir/bc" for each item in $PATH.
for dir in dummy:$PATH; do
    if [ "$try_without_dir" = true ]; then
      # first iteration
      bc=bc
      try_without_dir=false
    else
      # second and later iterations
      bc="$dir/bc"
      if [ ! -f "$bc" ]; then  # '-x' is not available on Ultrix
        bc=''
      fi
    fi
d18 1
a18 1
    if [ ! "$bc" = '' ]; then
d95 1
a95 4
if [ "$1" = ignore ]; then
  echo "cat >/dev/null"
  exit 0
fi
@


1.1.1.2.2.2
log
@MFC: OpenSSL 0.9.6e
@
text
@d15 2
a16 14
try_without_dir=true
# First we try "bc", then "$dir/bc" for each item in $PATH.
for dir in dummy:$PATH; do
    if [ "$try_without_dir" = true ]; then
      # first iteration
      bc=bc
      try_without_dir=false
    else
      # second and later iterations
      bc="$dir/bc"
      if [ ! -f "$bc" ]; then  # '-x' is not available on Ultrix
        bc=''
      fi
    fi
d18 1
a18 1
    if [ ! "$bc" = '' ]; then
d95 1
a95 4
if [ "$1" = ignore ]; then
  echo "cat >/dev/null"
  exit 0
fi
@


