Manually detect OpenSSL as submit config
[buildfarm-client.git] / run_build.pl
index 18f4cbfc4054e2eb5fbaf382d384ade221ac8b83..fae95ba1cc965bfcae206bcfefae83f890e494dd 100755 (executable)
@@ -1133,11 +1133,15 @@ sub configure
                 egrep '^[^#]' $local_conf `;
         push @confout, @tmp;
         # Build the config_opts array to send to the server
+        chomp @tmp;
         my @config_opts = grep s/(?:LOOKUP_|EXPERIMENTAL_|USE_)(\S+)=.*/$1/,
                           @tmp;
         push @config_opts, grep s/^(?:EXIM_)(PERL|PYTHON)=.*/$1/,
                            @tmp;
-        $EximBuild::conf{config_opts} = @config_opts;
+        # OpenSSL doesn't have a specific USE flag
+        push @config_opts, grep s/^(TLS_LIBS.*-l(ssl|crypto)).*/OPENSSL/,
+                           @tmp;
+        $EximBuild::conf{config_opts} = \@config_opts;
         
         # Does not matter what the Exim version is, as long as it is valid.
         my $exim_ver = $EximBuild::conf{exim_test_version} || '4.82';