diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2009-04-26 15:51:44 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2009-04-26 15:51:44 +0000 |
commit | 43f392c9a18dafb666bdcd1224a8129cdc3a2f99 (patch) | |
tree | cb336318987c60a853b6be468afd76357a60e554 /Configure | |
parent | 01cb2049e31880b1400b62115121ed66ec0dc46c (diff) |
Fix to escape backslashes in prefix
Diffstat (limited to 'Configure')
-rwxr-xr-x | Configure | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -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; |