From ce2b87d88a1a93da1201b18e2f6b473e2797c741 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bodo=20M=C3=B6ller?= Date: Tue, 2 Dec 2008 23:50:21 +0000 Subject: [PATCH] experimental-foo support for mk1mf.pl. --- util/mk1mf.pl | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/util/mk1mf.pl b/util/mk1mf.pl index 10b4c9bcb8..f2b92b2b25 100755 --- a/util/mk1mf.pl +++ b/util/mk1mf.pl @@ -1361,6 +1361,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=(.*)$/) { -- 2.25.1