diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2009-08-10 14:42:05 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2009-08-10 14:42:05 +0000 |
commit | d5ec7d66a8ccd493a45f9ddbf62538bc1708a741 (patch) | |
tree | eb308c3047f2c50630556bd9bc5740c6a4dd6c60 /Configure | |
parent | dc0aebabe6ec8515b23110bd0fb399c1cea79a89 (diff) |
PR: 2003
Make it possible to install OpenSSL in directories with name other
than "lib" for example "lib64". Based on patch from Jeremy Utley.
Diffstat (limited to 'Configure')
-rwxr-xr-x | Configure | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -618,6 +618,7 @@ my $idx_arflags = $idx++; my $idx_multilib = $idx++; my $prefix=""; +my $libdir=""; my $openssldir=""; my $exe_ext=""; my $install_prefix=""; @@ -819,6 +820,10 @@ PROCESS_ARGS: { $prefix=$1; } + elsif (/^--libdir=(.*)$/) + { + $libdir=$1; + } elsif (/^--openssldir=(.*)$/) { $openssldir=$1; @@ -1031,6 +1036,8 @@ $exe_ext=".pm" if ($target =~ /vos/); $openssldir="/usr/local/ssl" if ($openssldir eq "" and $prefix eq ""); $prefix=$openssldir if $prefix eq ""; +$libdir="lib" if $libdir eq ""; + $default_ranlib= &which("ranlib") or $default_ranlib="true"; $perl=$ENV{'PERL'} or $perl=&which("perl5") or $perl=&which("perl") or $perl="perl"; @@ -1459,6 +1466,7 @@ while (<IN>) s/^INSTALLTOP=.*$/INSTALLTOP=$prefix/; s/^MULTILIB=.*$/MULTILIB=$multilib/; s/^OPENSSLDIR=.*$/OPENSSLDIR=$openssldir/; + s/^LIBDIR=.*$/LIBDIR=$libdir/; s/^INSTALL_PREFIX=.*$/INSTALL_PREFIX=$install_prefix/; s/^PLATFORM=.*$/PLATFORM=$target/; s/^OPTIONS=.*$/OPTIONS=$options/; |