<commit_before># 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. '

$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

# Extra libraries needed to compile
libraries = %w{apr 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')

with_config('svn')

create_makefile('svn')<commit_msg>* subversion/bindings/ruby/extconf.rb   bring this somewhat up to date.  the ruby bindings are still way behind the    times with regard to almost all of subversion, but it's hard to fix the real    problems if you don't have a makefile, so this seemed like as good a place    to start as any.<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. '

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

$LDFLAGS << `svn-config --ldflags`.chop
$CFLAGS << `svn-config --cflags`.chop
$CFLAGS << `svn-config --includes`.chop

# ick...  svn-config doesn't seem to be adding in the directory the subversion 
# includes are in, so lets work around that for now.
$CFLAGS << ' -I' + `svn-config --prefix`.chop + '/include/subversion-1'

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

# Extra libraries needed to compile
libraries = [
              ['apr-0',        'apr_initialize'],
              ['aprutil-0',    'apr_bucket_alloc'],
              ['svn_subr-1',   'svn_pool_create'],
              ['svn_delta-1',  'svn_txdelta_next_window'],
              ['svn_client-1', 'svn_client_commit'],
              ['svn_wc-1',     'svn_wc_entry'],
              ['svn_ra-1',     'svn_ra_get_ra_library'],
]

libraries.each do |lib,func| 
  unless have_library(lib, func)
    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-1', 'svn_fs_new')
have_library('svn_repos-1', 'svn_repos_open')

with_config('svn')

create_makefile('svn')
{'fraction_non_alphanumeric': 0.1317403939296093, 'fraction_numerical': 0.005166289958023894, 'mean_word_length': 3.4131054131054133, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 5, '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': '5090657', 'n_tokens_mistral': 1115, 'n_tokens_neox': 1086, 'n_words': 335}