2 # This was developed in house to configure the engine dir.
3 # Not suitable for upstream.
5 --- /tmp/18/Configure Fri Feb 11 15:15:50 2011
6 +++ openssl-1.0.0d/Configure Fri Feb 11 15:18:09 2011
8 # --prefix option is given; /usr/local/ssl otherwise)
9 # --prefix prefix for the OpenSSL include, lib and bin directories
10 # (Default: the OPENSSLDIR directory)
11 +# --enginesdir engines shared library location
12 +# (Default: $prefix/lib/engines)
14 # --pk11-libname PKCS#11 library name.
22 my $install_prefix= "$ENV{'INSTALL_PREFIX'}";
23 my $cross_compile_prefix="";
28 + elsif (/^--enginesdir=(.*)$/)
32 elsif (/^--install.prefix=(.*)$/)
35 @@ -1285,6 +1292,10 @@
36 # we're ready to tolerate, so don't...
37 $multilib="" if !-d "$prefix/lib$multilib";
39 +if ($enginesdir eq "") {
40 + $enginesdir = "$prefix/lib/engines";
43 $libdir="lib$multilib" if $libdir eq "";
45 $cflags = "$cflags$exp_cflags";
48 elsif (/^#define\s+ENGINESDIR/)
50 - my $foo = "$prefix/$libdir/engines";
51 + my $foo = "$enginesdir";
53 print OUT "#define ENGINESDIR \"$foo\"\n";