X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=util%2Fmk1mf.pl;h=ecd046f9b786013e9acd900bead423307b151804;hp=22ef39627b8e2f54132078ae44bffb2c669ecc53;hb=48114ec95246bc32c0acee21b01c6f9c6296b380;hpb=7a76219774f3b6b18e2382280b4b85bfb0513367 diff --git a/util/mk1mf.pl b/util/mk1mf.pl index 22ef39627b..ecd046f9b7 100755 --- a/util/mk1mf.pl +++ b/util/mk1mf.pl @@ -1104,6 +1104,18 @@ sub read_options if (exists $valid_options{$t}) {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=(.*)$/) {