diff options
author | Bodo Möller <bodo@openssl.org> | 2008-12-02 23:50:22 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2008-12-02 23:50:22 +0000 |
commit | 48114ec95246bc32c0acee21b01c6f9c6296b380 (patch) | |
tree | 4f93a9552bda1d9f91a665a59c2b407c1b393970 /util | |
parent | 7a76219774f3b6b18e2382280b4b85bfb0513367 (diff) | |
download | openssl-48114ec95246bc32c0acee21b01c6f9c6296b380.tar.gz |
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 22ef39627b..ecd046f9b7 100755 --- a/util/mk1mf.pl +++ b/util/mk1mf.pl @@ -1105,6 +1105,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; |