diff options
author | Bodo Möller <bodo@openssl.org> | 2008-12-02 23:50:21 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2008-12-02 23:50:21 +0000 |
commit | ce2b87d88a1a93da1201b18e2f6b473e2797c741 (patch) | |
tree | 14f167bc497baa4a9acd4a3979934c701dd8d4d9 /util | |
parent | f092a073a75be72731e57b175d2df73d2d0eddd8 (diff) |
experimental-foo support for mk1mf.pl.
Diffstat (limited to 'util')
-rwxr-xr-x | util/mk1mf.pl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/util/mk1mf.pl b/util/mk1mf.pl index 10b4c9bcb8..f2b92b2b25 100755 --- a/util/mk1mf.pl +++ b/util/mk1mf.pl @@ -1362,6 +1362,18 @@ sub read_options {return 1;} return 0; } + # experimental-xxx is mostly like enable-xxx, but opensslconf.v + # will still set OPENSSL_NO_xxx unless we set OPENSSL_EXPERIMENTAL_xxx. + # (No need to fail if we don't know the algorithm -- this is for adventurous users only.) + elsif (/^experimental-/) + { + my $algo, $ALGO; + ($algo = $_) =~ s/^experimental-//; + ($ALGO = $algo) =~ tr/[a-z]/[A-Z]/; + + $xcflags="-DOPENSSL_EXPERIMENTAL_$ALGO $xcflags"; + + } elsif (/^--with-krb5-flavor=(.*)$/) { my $krb5_flavor = $1; |