diff options
author | Dr. Stephen Henson <steve@openssl.org> | 1999-04-25 20:57:09 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 1999-04-25 20:57:09 +0000 |
commit | a1e464f94abb0ccfda284a96c358a5b32c7e72ac (patch) | |
tree | 53e1dc3dce1024ac05332008350394396fdfdbef /Configure | |
parent | c74b3a6037b329dbd9dfbaf1a103e2cc707ecdbc (diff) | |
download | openssl-a1e464f94abb0ccfda284a96c358a5b32c7e72ac.tar.gz |
Fixes so it will compile again under Win32.
Diffstat (limited to 'Configure')
-rwxr-xr-x | Configure | 23 |
1 files changed, 14 insertions, 9 deletions
@@ -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 |