Install openssl.cnf to OPENSSLDIR in mk1mf.pl

This commit is contained in:
Dr. Stephen Henson 2006-05-28 00:49:49 +00:00
parent 994df5a248
commit b8bb15fb51

View File

@ -6,6 +6,7 @@
# #
$INSTALLTOP="/usr/local/ssl"; $INSTALLTOP="/usr/local/ssl";
$OPENSSLDIR="/usr/local/ssl";
$OPTIONS=""; $OPTIONS="";
$ssl_version=""; $ssl_version="";
$banner="\t\@echo Building OpenSSL"; $banner="\t\@echo Building OpenSSL";
@ -21,6 +22,7 @@ while(<IN>) {
$ssl_version=$1 if (/^VERSION=(.*)$/); $ssl_version=$1 if (/^VERSION=(.*)$/);
$OPTIONS=$1 if (/^OPTIONS=(.*)$/); $OPTIONS=$1 if (/^OPTIONS=(.*)$/);
$INSTALLTOP=$1 if (/^INSTALLTOP=(.*$)/); $INSTALLTOP=$1 if (/^INSTALLTOP=(.*$)/);
$OPENSSLDIR=$1 if (/^OPENSSLDIR=(.*$)/);
} }
close(IN); close(IN);
@ -262,6 +264,7 @@ if ($msdos)
$link="$bin_dir$link" if ($link !~ /^\$/); $link="$bin_dir$link" if ($link !~ /^\$/);
$INSTALLTOP =~ s|/|$o|g; $INSTALLTOP =~ s|/|$o|g;
$OPENSSLDIR =~ s|/|$o|g;
############################################# #############################################
# We parse in input file and 'store' info for later printing. # We parse in input file and 'store' info for later printing.
@ -373,6 +376,7 @@ $defs .= $preamble if defined $preamble;
$defs.= <<"EOF"; $defs.= <<"EOF";
INSTALLTOP=$INSTALLTOP INSTALLTOP=$INSTALLTOP
OPENSSLDIR=$OPENSSLDIR
# Set your compiler options # Set your compiler options
PLATFORM=$platform PLATFORM=$platform
@ -522,7 +526,8 @@ install: all
\$(MKDIR) \$(INSTALLTOP)${o}lib \$(MKDIR) \$(INSTALLTOP)${o}lib
\$(CP) \$(INCO_D)${o}*.\[ch\] \$(INSTALLTOP)${o}include${o}openssl \$(CP) \$(INCO_D)${o}*.\[ch\] \$(INSTALLTOP)${o}include${o}openssl
\$(CP) \$(BIN_D)$o\$(E_EXE)$exep \$(INSTALLTOP)${o}bin \$(CP) \$(BIN_D)$o\$(E_EXE)$exep \$(INSTALLTOP)${o}bin
\$(CP) apps${o}openssl.cnf \$(INSTALLTOP) \$(MKDIR) \$(OPENSSLDIR)
\$(CP) apps${o}openssl.cnf \$(OPENSSLDIR)
$extra_install $extra_install