summaryrefslogtreecommitdiffstats
path: root/util/mkdef.pl
diff options
context:
space:
mode:
authorUlf Möller <ulf@openssl.org>1999-05-13 10:28:14 +0000
committerUlf Möller <ulf@openssl.org>1999-05-13 10:28:14 +0000
commit31ff97b28a7d9c64192b8987b204ad9820c7b2c7 (patch)
tree4f7054f3b9116cbfd5a2daef7e98c4044b0ffd84 /util/mkdef.pl
parent8bc1431eddb4c4724d9afa42c95943d3f8184435 (diff)
mk1mf.pl and mkdef.pl read OPTIONS from toplevel Makefile.
Configure no longer changes files in place.
Diffstat (limited to 'util/mkdef.pl')
-rwxr-xr-xutil/mkdef.pl9
1 files changed, 8 insertions, 1 deletions
diff --git a/util/mkdef.pl b/util/mkdef.pl
index 4576c76144..1f05fe040f 100755
--- a/util/mkdef.pl
+++ b/util/mkdef.pl
@@ -18,7 +18,14 @@ $W32=1;
$NT=0;
# Set this to make typesafe STACK definitions appear in DEF
$safe_stack_def = 1;
-foreach (@ARGV)
+
+$options="";
+open(IN,"<Makefile.ssl") || die "unable to open Makefile.ssl!\n";
+while(<IN>) {
+ $options=$1 if (/^OPTIONS=(.*)$/);
+}
+
+foreach (@ARGV, split(/ /, $options))
{
$W32=1 if $_ eq "32";
$W32=0 if $_ eq "16";