From b8bb15fb519d4e18c954da22109fe49bf482ba87 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Sun, 28 May 2006 00:49:49 +0000 Subject: [PATCH] Install openssl.cnf to OPENSSLDIR in mk1mf.pl --- util/mk1mf.pl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/util/mk1mf.pl b/util/mk1mf.pl index a0ec39e5f0..fe99d49d1d 100755 --- a/util/mk1mf.pl +++ b/util/mk1mf.pl @@ -6,6 +6,7 @@ # $INSTALLTOP="/usr/local/ssl"; +$OPENSSLDIR="/usr/local/ssl"; $OPTIONS=""; $ssl_version=""; $banner="\t\@echo Building OpenSSL"; @@ -21,6 +22,7 @@ while() { $ssl_version=$1 if (/^VERSION=(.*)$/); $OPTIONS=$1 if (/^OPTIONS=(.*)$/); $INSTALLTOP=$1 if (/^INSTALLTOP=(.*$)/); + $OPENSSLDIR=$1 if (/^OPENSSLDIR=(.*$)/); } close(IN); @@ -262,6 +264,7 @@ if ($msdos) $link="$bin_dir$link" if ($link !~ /^\$/); $INSTALLTOP =~ s|/|$o|g; +$OPENSSLDIR =~ s|/|$o|g; ############################################# # We parse in input file and 'store' info for later printing. @@ -373,6 +376,7 @@ $defs .= $preamble if defined $preamble; $defs.= <<"EOF"; INSTALLTOP=$INSTALLTOP +OPENSSLDIR=$OPENSSLDIR # Set your compiler options PLATFORM=$platform @@ -522,7 +526,8 @@ install: all \$(MKDIR) \$(INSTALLTOP)${o}lib \$(CP) \$(INCO_D)${o}*.\[ch\] \$(INSTALLTOP)${o}include${o}openssl \$(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 -- 2.25.1