<commit_before><commit_msg>Added new file extconf.rb.  This script creates Makefile for building native Ruby bindings.<commit_after># Creates a makefile for building the svn library for Ruby.
# Assumes SVN has already been successfully installed
#
# Options: --with-svn-dir=<path to svn install>
#

if /mswin32/ =~ PLATFORM then
  require 'env'
else
  require 'Env'
end

require 'mkmf'	# Here's the ruby module that does the grunt work

dir_config('svn')

$CFLAGS << ' -I. '

# Extra libraries needed to compile
libraries = %w{svn_subr svn_delta svn_client svn_wc svn_ra}
libraries.each do |lib|
  unless have_library(lib, nil)
    puts "You seem to be missing the #{lib} library.\nI can't compile the "+
      "svn library without this."
    exit(1)
  end
end
# These aren't required, but we'll link them if we have them
have_library('svn_fs')
have_library('svn_repos')

$LDFLAGS << `apr-config --ldflags`.chop
$LOCAL_LIBS << `apr-config --libs`.chop
$CFLAGS << `apr-config --cflags`.chop

# Linux needs -lpthread.
if PLATFORM =~ /linux/ && $CFLAGS =~ /-pthread/ then
  have_library('pthread')
end

with_config('svn')

create_makefile('svn')
{'fraction_non_alphanumeric': 0.11996497373029773, 'fraction_numerical': 0.002626970227670753, 'mean_word_length': 4.219178082191781, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 4, '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': '111042', 'n_tokens_mistral': 408, 'n_tokens_neox': 399, 'n_words': 130}