diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2009-08-10 14:37:51 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2009-08-10 14:37:51 +0000 |
commit | 985b5ee735629e131ac5c2752f7b8fab30ca9f52 (patch) | |
tree | cc30f40a924268788266efe6445c760707bd951b /Configure | |
parent | 4df7ade82923449f55c1f1ad4e93fc0eda69e68b (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
@@ -585,6 +585,7 @@ my $idx_ranlib = $idx++; my $idx_arflags = $idx++; my $prefix=""; +my $libdir=""; my $openssldir=""; my $exe_ext=""; my $install_prefix=""; @@ -820,6 +821,10 @@ PROCESS_ARGS: { $prefix=$1; } + elsif (/^--libdir=(.*)$/) + { + $libdir=$1; + } elsif (/^--openssldir=(.*)$/) { $openssldir=$1; @@ -1083,6 +1088,8 @@ 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"; @@ -1467,6 +1474,7 @@ while (<IN>) s/^SHLIB_EXT=.*/SHLIB_EXT=$shared_extension/; s/^INSTALLTOP=.*$/INSTALLTOP=$prefix/; s/^OPENSSLDIR=.*$/OPENSSLDIR=$openssldir/; + s/^LIBDIR=.*$/LIBDIR=$libdir/; s/^INSTALL_PREFIX=.*$/INSTALL_PREFIX=$install_prefix/; s/^PLATFORM=.*$/PLATFORM=$target/; s/^OPTIONS=.*$/OPTIONS=$options/; |