<commit_before>require 'mkmf'

dir_config("puma_http11")

if $mingw && RUBY_VERSION >= '2.4'
  append_cflags  '-fstack-protector-strong -D_FORTIFY_SOURCE=2'
  append_ldflags '-fstack-protector-strong -l:libssp.a'
  have_library 'ssp'
end

unless ENV["DISABLE_SSL"]
  dir_config("openssl")

  found_ssl = if (!$mingw || RUBY_VERSION >= '2.4') && (t = pkg_config 'openssl')
    puts 'using OpenSSL pkgconfig (openssl.pc)'
    true
  elsif have_library('libcrypto', 'BIO_read') && have_library('libssl', 'SSL_CTX_new')<commit_msg>extconf.rb - don't use pkg_config('openssl') if '--with-openssl-dir' is used (#2885)<commit_after>require 'mkmf'

dir_config("puma_http11")

if $mingw && RUBY_VERSION >= '2.4'
  append_cflags  '-fstack-protector-strong -D_FORTIFY_SOURCE=2'
  append_ldflags '-fstack-protector-strong -l:libssp.a'
  have_library 'ssp'
end

unless ENV["DISABLE_SSL"]
  # don't use pkg_config('openssl') if '--with-openssl-dir' is used
  has_openssl_dir = dir_config('openssl').any?
  found_pkg_config = !has_openssl_dir && pkg_config('openssl')

  found_ssl = if (!$mingw || RUBY_VERSION >= '2.4') && found_pkg_config
    puts 'using OpenSSL pkgconfig (openssl.pc)'
    true
  elsif have_library('libcrypto', 'BIO_read') && have_library('libssl', 'SSL_CTX_new')
{'fraction_non_alphanumeric': 0.15602836879432624, 'fraction_numerical': 0.014184397163120567, 'mean_word_length': 5.318407960199005, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2613564', 'n_tokens_mistral': 512, 'n_tokens_neox': 481, 'n_words': 92}