-INSTALLTOP={- # $prefix is used in the OPENSSLDIR perl snippet
- #
- our $prefix = $config{prefix} || "$win_installroot\\OpenSSL";
- $prefix -}
-OPENSSLDIR={- #
- # The logic here is that if no --openssldir was given,
- # OPENSSLDIR will get the value from $prefix plus "/ssl".
- # If --openssldir was given and the value is an absolute
- # path, OPENSSLDIR will get its value without change.
- # If the value from --openssldir is a relative path,
- # OPENSSLDIR will get $prefix with the --openssldir
- # value appended as a subdirectory.
- #
- use File::Spec::Functions;
- our $openssldir =
- $config{openssldir} ?
- (file_name_is_absolute($config{openssldir}) ?
- $config{openssldir}
- : catdir($prefix, $config{openssldir}))
- : "$win_commonroot\\SSL";
- $openssldir -}
+INSTALLTOP_dev={- # $prefix is used in the OPENSSLDIR perl snippet
+ #
+ use File::Spec::Functions qw(:DEFAULT splitpath);
+ our $prefix = $config{prefix} || "$win_installroot\\OpenSSL";
+ our ($prefix_dev, $prefix_dir, $prefix_file) =
+ splitpath($prefix, 1);
+ $prefix_dev -}
+INSTALLTOP_dir={- $prefix_dir -}
+OPENSSLDIR_dev={- #
+ # The logic here is that if no --openssldir was given,
+ # OPENSSLDIR will get the value from $prefix plus "/ssl".
+ # If --openssldir was given and the value is an absolute
+ # path, OPENSSLDIR will get its value without change.
+ # If the value from --openssldir is a relative path,
+ # OPENSSLDIR will get $prefix with the --openssldir
+ # value appended as a subdirectory.
+ #
+ use File::Spec::Functions qw(:DEFAULT splitpath);
+ my $openssldir =
+ $config{openssldir} ?
+ (file_name_is_absolute($config{openssldir}) ?
+ $config{openssldir}
+ : catdir($prefix, $config{openssldir}))
+ : "$win_commonroot\\SSL";
+ our ($openssldir_dev, $openssldir_dir, $openssldir_file) =
+ splitpath($openssldir, 1);
+ $openssldir_dev -}
+OPENSSLDIR_dir={- $openssldir_dir -}