summaryrefslogtreecommitdiffstats
path: root/Configure
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2009-04-26 15:51:44 +0000
committerDr. Stephen Henson <steve@openssl.org>2009-04-26 15:51:44 +0000
commit43f392c9a18dafb666bdcd1224a8129cdc3a2f99 (patch)
treecb336318987c60a853b6be468afd76357a60e554 /Configure
parent01cb2049e31880b1400b62115121ed66ec0dc46c (diff)
Fix to escape backslashes in prefix
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure15
1 files changed, 13 insertions, 2 deletions
diff --git a/Configure b/Configure
index c6dbfae482..0547abdfb9 100755
--- a/Configure
+++ b/Configure
@@ -1643,9 +1643,20 @@ print OUT "#define OPENSSL_CPUID_OBJ\n\n" if ($cpuid_obj);
while (<IN>)
{
if (/^#define\s+OPENSSLDIR/)
- { print OUT "#define OPENSSLDIR \"$openssldir\"\n"; }
+ {
+ my $foo = $openssldir;
+ $foo =~ s/\\/\\\\/g;
+ print OUT "#define OPENSSLDIR \"$foo\"\n";
+ }
elsif (/^#define\s+ENGINESDIR/)
- { print OUT "#define ENGINESDIR \"$prefix/lib/engines\"\n"; }
+ {
+ # $foo is to become "$prefix/lib$multilib/engines";
+ # as Makefile.org and engines/Makefile are adapted for
+ # $multilib suffix.
+ my $foo = "$prefix/lib/engines";
+ $foo =~ s/\\/\\\\/g;
+ print OUT "#define ENGINESDIR \"$foo\"\n";
+ }
elsif (/^#((define)|(undef))\s+OPENSSL_EXPORT_VAR_AS_FUNCTION/)
{ printf OUT "#undef OPENSSL_EXPORT_VAR_AS_FUNCTION\n"
if $export_var_as_fn;