aboutsummaryrefslogtreecommitdiffstats
path: root/Configure
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>1999-04-25 20:57:09 +0000
committerDr. Stephen Henson <steve@openssl.org>1999-04-25 20:57:09 +0000
commita1e464f94abb0ccfda284a96c358a5b32c7e72ac (patch)
tree53e1dc3dce1024ac05332008350394396fdfdbef /Configure
parentc74b3a6037b329dbd9dfbaf1a103e2cc707ecdbc (diff)
downloadopenssl-a1e464f94abb0ccfda284a96c358a5b32c7e72ac.tar.gz
Fixes so it will compile again under Win32.
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure23
1 files changed, 14 insertions, 9 deletions
diff --git a/Configure b/Configure
index 58fa5f204c..98644fb182 100755
--- a/Configure
+++ b/Configure
@@ -334,6 +334,8 @@ foreach (@ARGV)
&usage if (!defined($table{$target}));
+my $IsWindows=scalar grep /^$target$/,@WinTargets;
+
$openssldir="/usr/local/ssl" if ($openssldir eq "" and $installprefix eq "");
$installprefix=$openssldir if $installprefix eq "";
@@ -343,7 +345,6 @@ chop $installprefix if $installprefix =~ /\/$/;
$openssldir=$installprefix . "/ssl" if $openssldir eq "";
$openssldir=$installprefix . "/" . $openssldir if $openssldir !~ /^\//;
-my $IsWindows=scalar grep /^$target$/,@WinTargets;
print "IsWindows=$IsWindows\n";
@@ -548,18 +549,22 @@ if($IsWindows) {
open (OUT,">crypto/date.h") || die "Can't open date.h";
printf OUT "#define DATE \"%s\"\n", scalar gmtime();
close(OUT);
+} else {
+ (system 'make -f Makefile.ssl links') == 0 or exit $?;
+ &dofile("tools/c_rehash",$openssldir,'^DIR=', 'DIR=%s',);
+ &dofile("util/mk1mf.pl",$openssldir,
+ ('^\$INSTALLTOP=','$INSTALLTOP="%s";',));
}
-if (!$IsWindows)
- {
- (system 'make -f Makefile.ssl links') == 0 or exit $?;
- }
-&dofile("tools/c_rehash",$openssldir,'^DIR=', 'DIR=%s',);
-&dofile("util/mk1mf.pl",$openssldir,('^\$INSTALLTOP=','$INSTALLTOP="%s";',));
+my $pwd;
-my $pwd=`pwd`;
-chop($pwd);
+if($IsWindows) {
+ $pwd="(include directory)";
+} else {
+ $pwd =`pwd`;
+ chop($pwd);
+}
print <<EOF;
NOTE: The OpenSSL header files have been moved from include/*.h