require 5.000;
use strict;
-use POSIX qw(:errno_h);
#
# see PROBLEMS for instructions on what sort of things to do when
(my $cc,my $cflags,my $lflags,my $bn_ops,my $bn_obj,my $des_obj,my $bf_obj,
$md5_obj,$sha1_obj,my $cast_obj,my $rc4_obj,$rmd160_obj,my $rc5_obj)=
- split(/\s*:\s*/,$table{$target});
+ split(/\s*:\s*/,$table{$target} . ":" x 20 , -1);
$cflags="$flags$cflags" if ($flags ne "");
$lflags="$libs$lflags"if ($libs ne "");
}
my ($bn1)=split(/\s+/,$bn_obj);
+$bn1 = "" unless defined $bn1;
$bn1=$bn_asm unless ($bn1 =~ /\.o$/);
$bn_obj="$bn1";
sub Rename
{
my($from,$to)=@_;
-
unlink($to);
if(!rename($from,$to))
{
- POSIX::errno() == POSIX::ENOENT || die "unable to rename $from to $to:$!\n";
+ -e $from && die "unable to rename $from to $to:$!\n";
}
}