Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 47 lines (32 sloc) 0.966 kB
9c23ee8 @tenderlove partial implementation of Stree::String
authored
1 ENV['RC_ARCHS'] = '' if RUBY_PLATFORM =~ /darwin/
2
b75b18b @tenderlove initial commit
authored
3 require 'mkmf'
9c23ee8 @tenderlove partial implementation of Stree::String
authored
4
5 LIBDIR = Config::CONFIG['libdir']
6 INCLUDEDIR = Config::CONFIG['includedir']
7
8 HEADER_DIRS = [
9 # First search /opt/local for macports
10 '/opt/local/include',
11
12 # Then search /usr/local for people that installed from source
13 '/usr/local/include',
14
15 # Check the ruby install locations
16 INCLUDEDIR,
17
18 # Finally fall back to /usr
19 '/usr/include',
20 ]
21
22 LIB_DIRS = [
23 # First search /opt/local for macports
24 '/opt/local/lib',
25
26 # Then search /usr/local for people that installed from source
27 '/usr/local/lib',
28
29 # Check the ruby install locations
30 LIBDIR,
31
32 # Finally fall back to /usr
33 '/usr/lib',
34 ]
35
31613f9 @tenderlove updating for part two of the tutorial
authored
36 dir_config('stree', HEADER_DIRS, LIB_DIRS)
9c23ee8 @tenderlove partial implementation of Stree::String
authored
37
31613f9 @tenderlove updating for part two of the tutorial
authored
38 unless find_header('stree/lst_string.h')
9c23ee8 @tenderlove partial implementation of Stree::String
authored
39 abort "libstree is missing. please install libstree"
40 end
41
31613f9 @tenderlove updating for part two of the tutorial
authored
42 unless find_library('stree', 'lst_stree_free')
9c23ee8 @tenderlove partial implementation of Stree::String
authored
43 abort "libstree is missing. please install libstree"
44 end
45
b75b18b @tenderlove initial commit
authored
46 create_makefile('stree/stree')
Something went wrong with that request. Please try again.