keyme-rice 1.5.1.keyme

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (202) hide show
  1. checksums.yaml +15 -0
  2. data/COPYING +23 -0
  3. data/Doxyfile +1253 -0
  4. data/Makefile.am +26 -0
  5. data/Makefile.in +853 -0
  6. data/README +1124 -0
  7. data/README.mingw +8 -0
  8. data/Rakefile +34 -0
  9. data/aclocal.m4 +971 -0
  10. data/bootstrap +8 -0
  11. data/config.guess +1530 -0
  12. data/config.sub +1773 -0
  13. data/configure +7121 -0
  14. data/configure.ac +52 -0
  15. data/depcomp +688 -0
  16. data/doxygen.ac +314 -0
  17. data/doxygen.am +186 -0
  18. data/extconf.rb +51 -0
  19. data/install-sh +527 -0
  20. data/missing +331 -0
  21. data/post-autoconf.rb +22 -0
  22. data/post-automake.rb +28 -0
  23. data/rice/Address_Registration_Guard.cpp +22 -0
  24. data/rice/Address_Registration_Guard.hpp +7 -0
  25. data/rice/Address_Registration_Guard.ipp +37 -0
  26. data/rice/Address_Registration_Guard_defn.hpp +75 -0
  27. data/rice/Arg.hpp +8 -0
  28. data/rice/Arg_impl.hpp +127 -0
  29. data/rice/Arg_operators.cpp +21 -0
  30. data/rice/Arg_operators.hpp +19 -0
  31. data/rice/Array.hpp +220 -0
  32. data/rice/Array.ipp +263 -0
  33. data/rice/Builtin_Object.hpp +8 -0
  34. data/rice/Builtin_Object.ipp +50 -0
  35. data/rice/Builtin_Object_defn.hpp +50 -0
  36. data/rice/Class.cpp +57 -0
  37. data/rice/Class.hpp +8 -0
  38. data/rice/Class.ipp +6 -0
  39. data/rice/Class_defn.hpp +83 -0
  40. data/rice/Constructor.hpp +368 -0
  41. data/rice/Critical_Guard.hpp +40 -0
  42. data/rice/Critical_Guard.ipp +26 -0
  43. data/rice/Data_Object.hpp +8 -0
  44. data/rice/Data_Object.ipp +133 -0
  45. data/rice/Data_Object_defn.hpp +138 -0
  46. data/rice/Data_Type.cpp +54 -0
  47. data/rice/Data_Type.hpp +8 -0
  48. data/rice/Data_Type.ipp +365 -0
  49. data/rice/Data_Type_defn.hpp +261 -0
  50. data/rice/Data_Type_fwd.hpp +12 -0
  51. data/rice/Director.cpp +13 -0
  52. data/rice/Director.hpp +39 -0
  53. data/rice/Enum.hpp +117 -0
  54. data/rice/Enum.ipp +246 -0
  55. data/rice/Exception.cpp +59 -0
  56. data/rice/Exception.hpp +9 -0
  57. data/rice/Exception_Base.hpp +8 -0
  58. data/rice/Exception_Base.ipp +13 -0
  59. data/rice/Exception_Base_defn.hpp +27 -0
  60. data/rice/Exception_defn.hpp +69 -0
  61. data/rice/Hash.hpp +227 -0
  62. data/rice/Hash.ipp +330 -0
  63. data/rice/Identifier.cpp +8 -0
  64. data/rice/Identifier.hpp +50 -0
  65. data/rice/Identifier.ipp +33 -0
  66. data/rice/Jump_Tag.hpp +24 -0
  67. data/rice/Makefile.am +129 -0
  68. data/rice/Makefile.in +769 -0
  69. data/rice/Module.cpp +84 -0
  70. data/rice/Module.hpp +8 -0
  71. data/rice/Module.ipp +6 -0
  72. data/rice/Module_defn.hpp +88 -0
  73. data/rice/Module_impl.hpp +281 -0
  74. data/rice/Module_impl.ipp +348 -0
  75. data/rice/Object.cpp +160 -0
  76. data/rice/Object.hpp +8 -0
  77. data/rice/Object.ipp +19 -0
  78. data/rice/Object_defn.hpp +191 -0
  79. data/rice/Require_Guard.hpp +21 -0
  80. data/rice/String.cpp +94 -0
  81. data/rice/String.hpp +89 -0
  82. data/rice/Struct.cpp +117 -0
  83. data/rice/Struct.hpp +162 -0
  84. data/rice/Struct.ipp +26 -0
  85. data/rice/Symbol.cpp +25 -0
  86. data/rice/Symbol.hpp +66 -0
  87. data/rice/Symbol.ipp +44 -0
  88. data/rice/VM.cpp +82 -0
  89. data/rice/VM.hpp +32 -0
  90. data/rice/config.hpp +44 -0
  91. data/rice/config.hpp.in +43 -0
  92. data/rice/detail/Arguments.hpp +118 -0
  93. data/rice/detail/Auto_Function_Wrapper.hpp +898 -0
  94. data/rice/detail/Auto_Function_Wrapper.ipp +3694 -0
  95. data/rice/detail/Auto_Member_Function_Wrapper.hpp +897 -0
  96. data/rice/detail/Auto_Member_Function_Wrapper.ipp +2774 -0
  97. data/rice/detail/Caster.hpp +103 -0
  98. data/rice/detail/Exception_Handler.hpp +8 -0
  99. data/rice/detail/Exception_Handler.ipp +68 -0
  100. data/rice/detail/Exception_Handler_defn.hpp +96 -0
  101. data/rice/detail/Iterator.hpp +93 -0
  102. data/rice/detail/Not_Copyable.hpp +25 -0
  103. data/rice/detail/Wrapped_Function.hpp +33 -0
  104. data/rice/detail/cfp.hpp +24 -0
  105. data/rice/detail/cfp.ipp +51 -0
  106. data/rice/detail/check_ruby_type.cpp +27 -0
  107. data/rice/detail/check_ruby_type.hpp +23 -0
  108. data/rice/detail/creation_funcs.hpp +37 -0
  109. data/rice/detail/creation_funcs.ipp +36 -0
  110. data/rice/detail/default_allocation_func.hpp +23 -0
  111. data/rice/detail/default_allocation_func.ipp +11 -0
  112. data/rice/detail/define_method_and_auto_wrap.hpp +31 -0
  113. data/rice/detail/define_method_and_auto_wrap.ipp +30 -0
  114. data/rice/detail/demangle.cpp +56 -0
  115. data/rice/detail/demangle.hpp +19 -0
  116. data/rice/detail/env.hpp +19 -0
  117. data/rice/detail/from_ruby.hpp +43 -0
  118. data/rice/detail/from_ruby.ipp +60 -0
  119. data/rice/detail/method_data.cpp +159 -0
  120. data/rice/detail/method_data.hpp +21 -0
  121. data/rice/detail/mininode.cpp +1220 -0
  122. data/rice/detail/mininode.hpp +320 -0
  123. data/rice/detail/node.hpp +13 -0
  124. data/rice/detail/object_call.hpp +69 -0
  125. data/rice/detail/object_call.ipp +131 -0
  126. data/rice/detail/protect.cpp +29 -0
  127. data/rice/detail/protect.hpp +34 -0
  128. data/rice/detail/ruby.hpp +84 -0
  129. data/rice/detail/ruby_version_code.hpp +6 -0
  130. data/rice/detail/ruby_version_code.hpp.in +6 -0
  131. data/rice/detail/rubysig.hpp +19 -0
  132. data/rice/detail/st.hpp +22 -0
  133. data/rice/detail/to_ruby.hpp +22 -0
  134. data/rice/detail/to_ruby.ipp +36 -0
  135. data/rice/detail/traits.hpp +43 -0
  136. data/rice/detail/win32.hpp +16 -0
  137. data/rice/detail/wrap_function.hpp +341 -0
  138. data/rice/detail/wrap_function.ipp +514 -0
  139. data/rice/global_function.hpp +33 -0
  140. data/rice/global_function.ipp +22 -0
  141. data/rice/protect.hpp +92 -0
  142. data/rice/protect.ipp +1134 -0
  143. data/rice/ruby_mark.hpp +13 -0
  144. data/rice/ruby_try_catch.hpp +86 -0
  145. data/rice/rubypp.rb +97 -0
  146. data/rice/to_from_ruby.hpp +8 -0
  147. data/rice/to_from_ruby.ipp +294 -0
  148. data/rice/to_from_ruby_defn.hpp +71 -0
  149. data/ruby/Makefile.am +1 -0
  150. data/ruby/Makefile.in +569 -0
  151. data/ruby/lib/Makefile.am +3 -0
  152. data/ruby/lib/Makefile.in +423 -0
  153. data/ruby/lib/mkmf-rice.rb.in +213 -0
  154. data/ruby/lib/version.rb +3 -0
  155. data/ruby.ac +136 -0
  156. data/sample/Makefile.am +47 -0
  157. data/sample/Makefile.in +408 -0
  158. data/sample/enum/extconf.rb +3 -0
  159. data/sample/enum/sample_enum.cpp +54 -0
  160. data/sample/enum/test.rb +8 -0
  161. data/sample/inheritance/animals.cpp +98 -0
  162. data/sample/inheritance/extconf.rb +3 -0
  163. data/sample/inheritance/test.rb +7 -0
  164. data/sample/map/extconf.rb +3 -0
  165. data/sample/map/map.cpp +81 -0
  166. data/sample/map/test.rb +7 -0
  167. data/test/Makefile.am +77 -0
  168. data/test/Makefile.in +820 -0
  169. data/test/ext/Makefile.am +43 -0
  170. data/test/ext/Makefile.in +404 -0
  171. data/test/ext/t1/Foo.hpp +10 -0
  172. data/test/ext/t1/extconf.rb +2 -0
  173. data/test/ext/t1/t1.cpp +15 -0
  174. data/test/ext/t2/extconf.rb +2 -0
  175. data/test/ext/t2/t2.cpp +11 -0
  176. data/test/test_Address_Registration_Guard.cpp +43 -0
  177. data/test/test_Array.cpp +241 -0
  178. data/test/test_Builtin_Object.cpp +72 -0
  179. data/test/test_Class.cpp +498 -0
  180. data/test/test_Constructor.cpp +128 -0
  181. data/test/test_Critical_Guard.cpp +51 -0
  182. data/test/test_Data_Object.cpp +275 -0
  183. data/test/test_Data_Type.cpp +348 -0
  184. data/test/test_Director.cpp +303 -0
  185. data/test/test_Enum.cpp +195 -0
  186. data/test/test_Exception.cpp +46 -0
  187. data/test/test_Hash.cpp +198 -0
  188. data/test/test_Identifier.cpp +70 -0
  189. data/test/test_Jump_Tag.cpp +17 -0
  190. data/test/test_Memory_Management.cpp +50 -0
  191. data/test/test_Module.cpp +497 -0
  192. data/test/test_Object.cpp +148 -0
  193. data/test/test_String.cpp +94 -0
  194. data/test/test_Struct.cpp +192 -0
  195. data/test/test_Symbol.cpp +63 -0
  196. data/test/test_To_From_Ruby.cpp +321 -0
  197. data/test/test_VM.cpp +26 -0
  198. data/test/test_global_functions.cpp +114 -0
  199. data/test/test_rice.rb +43 -0
  200. data/test/unittest.cpp +136 -0
  201. data/test/unittest.hpp +294 -0
  202. metadata +259 -0
@@ -0,0 +1,423 @@
1
+ # Makefile.in generated by automake 1.11.3 from Makefile.am.
2
+ # @configure_input@
3
+
4
+ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
+ # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
6
+ # Foundation, Inc.
7
+ # This Makefile.in is free software; the Free Software Foundation
8
+ # gives unlimited permission to copy and/or distribute it,
9
+ # with or without modifications, as long as this notice is preserved.
10
+
11
+ # This program is distributed in the hope that it will be useful,
12
+ # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
13
+ # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
14
+ # PARTICULAR PURPOSE.
15
+
16
+ @SET_MAKE@
17
+
18
+ VPATH = @srcdir@
19
+ pkgdatadir = $(datadir)/@PACKAGE@
20
+ pkgincludedir = $(includedir)/@PACKAGE@
21
+ pkglibdir = $(libdir)/@PACKAGE@
22
+ pkglibexecdir = $(libexecdir)/@PACKAGE@
23
+ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
24
+ install_sh_DATA = $(install_sh) -c -m 644
25
+ install_sh_PROGRAM = $(install_sh) -c
26
+ install_sh_SCRIPT = $(install_sh) -c
27
+ INSTALL_HEADER = $(INSTALL_DATA)
28
+ transform = $(program_transform_name)
29
+ NORMAL_INSTALL = :
30
+ PRE_INSTALL = :
31
+ POST_INSTALL = :
32
+ NORMAL_UNINSTALL = :
33
+ PRE_UNINSTALL = :
34
+ POST_UNINSTALL = :
35
+ build_triplet = @build@
36
+ host_triplet = @host@
37
+ subdir = ruby/lib
38
+ DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
39
+ $(srcdir)/mkmf-rice.rb.in
40
+ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
41
+ am__aclocal_m4_deps = $(top_srcdir)/ruby.ac $(top_srcdir)/doxygen.ac \
42
+ $(top_srcdir)/configure.ac
43
+ am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44
+ $(ACLOCAL_M4)
45
+ mkinstalldirs = $(install_sh) -d
46
+ CONFIG_HEADER = $(top_builddir)/rice/config.hpp
47
+ CONFIG_CLEAN_FILES = mkmf-rice.rb
48
+ CONFIG_CLEAN_VPATH_FILES =
49
+ SOURCES =
50
+ DIST_SOURCES =
51
+ am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
52
+ am__vpath_adj = case $$p in \
53
+ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
54
+ *) f=$$p;; \
55
+ esac;
56
+ am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
57
+ am__install_max = 40
58
+ am__nobase_strip_setup = \
59
+ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
60
+ am__nobase_strip = \
61
+ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
62
+ am__nobase_list = $(am__nobase_strip_setup); \
63
+ for p in $$list; do echo "$$p $$p"; done | \
64
+ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
65
+ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
66
+ if (++n[$$2] == $(am__install_max)) \
67
+ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
68
+ END { for (dir in files) print dir, files[dir] }'
69
+ am__base_list = \
70
+ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
71
+ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
72
+ am__uninstall_files_from_dir = { \
73
+ test -z "$$files" \
74
+ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
75
+ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
76
+ $(am__cd) "$$dir" && rm -f $$files; }; \
77
+ }
78
+ am__installdirs = "$(DESTDIR)$(rubydir)"
79
+ DATA = $(ruby_DATA)
80
+ DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
81
+ ACLOCAL = @ACLOCAL@
82
+ AMTAR = @AMTAR@
83
+ AUTOCONF = @AUTOCONF@
84
+ AUTOHEADER = @AUTOHEADER@
85
+ AUTOMAKE = @AUTOMAKE@
86
+ AWK = @AWK@
87
+ CPPFLAGS = @CPPFLAGS@
88
+ CXX = @CXX@
89
+ CXXDEPMODE = @CXXDEPMODE@
90
+ CXXFLAGS = @CXXFLAGS@
91
+ CYGPATH_W = @CYGPATH_W@
92
+ DEFS = @DEFS@
93
+ DEPDIR = @DEPDIR@
94
+ DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@
95
+ DX_CONFIG = @DX_CONFIG@
96
+ DX_DOCDIR = @DX_DOCDIR@
97
+ DX_DOT = @DX_DOT@
98
+ DX_DOXYGEN = @DX_DOXYGEN@
99
+ DX_DVIPS = @DX_DVIPS@
100
+ DX_EGREP = @DX_EGREP@
101
+ DX_ENV = @DX_ENV@
102
+ DX_FLAG_chi = @DX_FLAG_chi@
103
+ DX_FLAG_chm = @DX_FLAG_chm@
104
+ DX_FLAG_doc = @DX_FLAG_doc@
105
+ DX_FLAG_dot = @DX_FLAG_dot@
106
+ DX_FLAG_html = @DX_FLAG_html@
107
+ DX_FLAG_man = @DX_FLAG_man@
108
+ DX_FLAG_pdf = @DX_FLAG_pdf@
109
+ DX_FLAG_ps = @DX_FLAG_ps@
110
+ DX_FLAG_rtf = @DX_FLAG_rtf@
111
+ DX_FLAG_xml = @DX_FLAG_xml@
112
+ DX_HHC = @DX_HHC@
113
+ DX_LATEX = @DX_LATEX@
114
+ DX_MAKEINDEX = @DX_MAKEINDEX@
115
+ DX_PDFLATEX = @DX_PDFLATEX@
116
+ DX_PERL = @DX_PERL@
117
+ DX_PROJECT = @DX_PROJECT@
118
+ ECHO_C = @ECHO_C@
119
+ ECHO_N = @ECHO_N@
120
+ ECHO_T = @ECHO_T@
121
+ EXEEXT = @EXEEXT@
122
+ INSTALL = @INSTALL@
123
+ INSTALL_DATA = @INSTALL_DATA@
124
+ INSTALL_PROGRAM = @INSTALL_PROGRAM@
125
+ INSTALL_SCRIPT = @INSTALL_SCRIPT@
126
+ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
127
+ LDFLAGS = @LDFLAGS@
128
+ LIBOBJS = @LIBOBJS@
129
+ LIBS = @LIBS@
130
+ LTLIBOBJS = @LTLIBOBJS@
131
+ MAKEINFO = @MAKEINFO@
132
+ MKDIR_P = @MKDIR_P@
133
+ OBJEXT = @OBJEXT@
134
+ PACKAGE = @PACKAGE@
135
+ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
136
+ PACKAGE_NAME = @PACKAGE_NAME@
137
+ PACKAGE_STRING = @PACKAGE_STRING@
138
+ PACKAGE_TARNAME = @PACKAGE_TARNAME@
139
+ PACKAGE_URL = @PACKAGE_URL@
140
+ PACKAGE_VERSION = @PACKAGE_VERSION@
141
+ PATH_SEPARATOR = @PATH_SEPARATOR@
142
+ RANLIB = @RANLIB@
143
+ RICE_CPPFLAGS = @RICE_CPPFLAGS@
144
+ RICE_LDFLAGS = @RICE_LDFLAGS@
145
+ RICE_ROOT = @RICE_ROOT@
146
+ RICE_SAMPLES = @RICE_SAMPLES@
147
+ RICE_USING_MINGW32 = @RICE_USING_MINGW32@
148
+ RUBY = @RUBY@
149
+ RUBY_CFLAGS = @RUBY_CFLAGS@
150
+ RUBY_CPPFLAGS = @RUBY_CPPFLAGS@
151
+ RUBY_CXXFLAGS = @RUBY_CXXFLAGS@
152
+ RUBY_LDFLAGS = @RUBY_LDFLAGS@
153
+ RUBY_LIBRUBYARG = @RUBY_LIBRUBYARG@
154
+ RUBY_LIBRUBYARG_STATIC = @RUBY_LIBRUBYARG_STATIC@
155
+ RUBY_LIBS = @RUBY_LIBS@
156
+ RUBY_SITELIBDIR = @RUBY_SITELIBDIR@
157
+ RUBY_VERSION_CODE = @RUBY_VERSION_CODE@
158
+ SET_MAKE = @SET_MAKE@
159
+ SHELL = @SHELL@
160
+ STRIP = @STRIP@
161
+ VERSION = @VERSION@
162
+ abs_builddir = @abs_builddir@
163
+ abs_srcdir = @abs_srcdir@
164
+ abs_top_builddir = @abs_top_builddir@
165
+ abs_top_srcdir = @abs_top_srcdir@
166
+ ac_ct_CXX = @ac_ct_CXX@
167
+ am__include = @am__include@
168
+ am__leading_dot = @am__leading_dot@
169
+ am__quote = @am__quote@
170
+ am__tar = @am__tar@
171
+ am__untar = @am__untar@
172
+ bindir = @bindir@
173
+ build = @build@
174
+ build_alias = @build_alias@
175
+ build_cpu = @build_cpu@
176
+ build_os = @build_os@
177
+ build_vendor = @build_vendor@
178
+ builddir = @builddir@
179
+ datadir = @datadir@
180
+ datarootdir = @datarootdir@
181
+ docdir = @docdir@
182
+ dvidir = @dvidir@
183
+ exec_prefix = @exec_prefix@
184
+ host = @host@
185
+ host_alias = @host_alias@
186
+ host_cpu = @host_cpu@
187
+ host_os = @host_os@
188
+ host_vendor = @host_vendor@
189
+ htmldir = @htmldir@
190
+ includedir = @includedir@
191
+ infodir = @infodir@
192
+ install_sh = @install_sh@
193
+ libdir = @libdir@
194
+ libexecdir = @libexecdir@
195
+ localedir = @localedir@
196
+ localstatedir = @localstatedir@
197
+ mandir = @mandir@
198
+ mkdir_p = @mkdir_p@
199
+ oldincludedir = @oldincludedir@
200
+ pdfdir = @pdfdir@
201
+ prefix = @prefix@
202
+ program_transform_name = @program_transform_name@
203
+ psdir = @psdir@
204
+ sbindir = @sbindir@
205
+ sharedstatedir = @sharedstatedir@
206
+ srcdir = @srcdir@
207
+ sysconfdir = @sysconfdir@
208
+ target_alias = @target_alias@
209
+ top_build_prefix = @top_build_prefix@
210
+ top_builddir = @top_builddir@
211
+ top_srcdir = @top_srcdir@
212
+ rubydir = @RUBY_SITELIBDIR@
213
+ ruby_DATA = mkmf-rice.rb
214
+ all: all-am
215
+
216
+ .SUFFIXES:
217
+ $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
218
+ @for dep in $?; do \
219
+ case '$(am__configure_deps)' in \
220
+ *$$dep*) \
221
+ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
222
+ && { if test -f $@; then exit 0; else break; fi; }; \
223
+ exit 1;; \
224
+ esac; \
225
+ done; \
226
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu ruby/lib/Makefile'; \
227
+ $(am__cd) $(top_srcdir) && \
228
+ $(AUTOMAKE) --gnu ruby/lib/Makefile
229
+ .PRECIOUS: Makefile
230
+ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
231
+ @case '$?' in \
232
+ *config.status*) \
233
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
234
+ *) \
235
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
236
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
237
+ esac;
238
+
239
+ $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
240
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
241
+
242
+ $(top_srcdir)/configure: $(am__configure_deps)
243
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
244
+ $(ACLOCAL_M4): $(am__aclocal_m4_deps)
245
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
246
+ $(am__aclocal_m4_deps):
247
+ mkmf-rice.rb: $(top_builddir)/config.status $(srcdir)/mkmf-rice.rb.in
248
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
249
+ install-rubyDATA: $(ruby_DATA)
250
+ @$(NORMAL_INSTALL)
251
+ test -z "$(rubydir)" || $(MKDIR_P) "$(DESTDIR)$(rubydir)"
252
+ @list='$(ruby_DATA)'; test -n "$(rubydir)" || list=; \
253
+ for p in $$list; do \
254
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
255
+ echo "$$d$$p"; \
256
+ done | $(am__base_list) | \
257
+ while read files; do \
258
+ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(rubydir)'"; \
259
+ $(INSTALL_DATA) $$files "$(DESTDIR)$(rubydir)" || exit $$?; \
260
+ done
261
+
262
+ uninstall-rubyDATA:
263
+ @$(NORMAL_UNINSTALL)
264
+ @list='$(ruby_DATA)'; test -n "$(rubydir)" || list=; \
265
+ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
266
+ dir='$(DESTDIR)$(rubydir)'; $(am__uninstall_files_from_dir)
267
+ tags: TAGS
268
+ TAGS:
269
+
270
+ ctags: CTAGS
271
+ CTAGS:
272
+
273
+
274
+ distdir: $(DISTFILES)
275
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
276
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
277
+ list='$(DISTFILES)'; \
278
+ dist_files=`for file in $$list; do echo $$file; done | \
279
+ sed -e "s|^$$srcdirstrip/||;t" \
280
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
281
+ case $$dist_files in \
282
+ */*) eval $(MKDIR_P) `echo "$$dist_files" | \
283
+ sed '/\//!d;s|^|"$(distdir)"/|;s,/[^/]*$$,,' | \
284
+ sort -u` ;; \
285
+ esac; \
286
+ for file in $$dist_files; do \
287
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
288
+ if test -d $$d/$$file; then \
289
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
290
+ if test -d "$(distdir)/$$file"; then \
291
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
292
+ fi; \
293
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
294
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
295
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
296
+ fi; \
297
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
298
+ else \
299
+ test -f "$(distdir)/$$file" \
300
+ || cp -p $$d/$$file "$(distdir)/$$file" \
301
+ || exit 1; \
302
+ fi; \
303
+ done
304
+ check-am: all-am
305
+ check: check-am
306
+ all-am: Makefile $(DATA)
307
+ installdirs:
308
+ for dir in "$(DESTDIR)$(rubydir)"; do \
309
+ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
310
+ done
311
+ install: install-am
312
+ install-exec: install-exec-am
313
+ install-data: install-data-am
314
+ uninstall: uninstall-am
315
+
316
+ install-am: all-am
317
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
318
+
319
+ installcheck: installcheck-am
320
+ install-strip:
321
+ if test -z '$(STRIP)'; then \
322
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
323
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
324
+ install; \
325
+ else \
326
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
327
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
328
+ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
329
+ fi
330
+ mostlyclean-generic:
331
+
332
+ clean-generic:
333
+
334
+ distclean-generic:
335
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
336
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
337
+
338
+ maintainer-clean-generic:
339
+ @echo "This command is intended for maintainers to use"
340
+ @echo "it deletes files that may require special tools to rebuild."
341
+ clean: clean-am
342
+
343
+ clean-am: clean-generic mostlyclean-am
344
+
345
+ distclean: distclean-am
346
+ -rm -f Makefile
347
+ distclean-am: clean-am distclean-generic
348
+
349
+ dvi: dvi-am
350
+
351
+ dvi-am:
352
+
353
+ html: html-am
354
+
355
+ html-am:
356
+
357
+ info: info-am
358
+
359
+ info-am:
360
+
361
+ install-data-am: install-rubyDATA
362
+
363
+ install-dvi: install-dvi-am
364
+
365
+ install-dvi-am:
366
+
367
+ install-exec-am:
368
+
369
+ install-html: install-html-am
370
+
371
+ install-html-am:
372
+
373
+ install-info: install-info-am
374
+
375
+ install-info-am:
376
+
377
+ install-man:
378
+
379
+ install-pdf: install-pdf-am
380
+
381
+ install-pdf-am:
382
+
383
+ install-ps: install-ps-am
384
+
385
+ install-ps-am:
386
+
387
+ installcheck-am:
388
+
389
+ maintainer-clean: maintainer-clean-am
390
+ -rm -f Makefile
391
+ maintainer-clean-am: distclean-am maintainer-clean-generic
392
+
393
+ mostlyclean: mostlyclean-am
394
+
395
+ mostlyclean-am: mostlyclean-generic
396
+
397
+ pdf: pdf-am
398
+
399
+ pdf-am:
400
+
401
+ ps: ps-am
402
+
403
+ ps-am:
404
+
405
+ uninstall-am: uninstall-rubyDATA
406
+
407
+ .MAKE: install-am install-strip
408
+
409
+ .PHONY: all all-am check check-am clean clean-generic distclean \
410
+ distclean-generic distdir dvi dvi-am html html-am info info-am \
411
+ install install-am install-data install-data-am install-dvi \
412
+ install-dvi-am install-exec install-exec-am install-html \
413
+ install-html-am install-info install-info-am install-man \
414
+ install-pdf install-pdf-am install-ps install-ps-am \
415
+ install-rubyDATA install-strip installcheck installcheck-am \
416
+ installdirs maintainer-clean maintainer-clean-generic \
417
+ mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
418
+ uninstall-am uninstall-rubyDATA
419
+
420
+
421
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
422
+ # Otherwise a system limit (for SysV at least) may be exceeded.
423
+ .NOEXPORT:
@@ -0,0 +1,213 @@
1
+ # Make sure that archflags does not include ppc if we're
2
+ # on Intel x86 processor on Mac, and that we use the proper
3
+ # arch depending on 10.5 or 10.6
4
+ if `uname`.chomp == "Darwin"
5
+ arch =
6
+ if RUBY_PLATFORM =~ /darwin10/
7
+ 'x86_64'
8
+ else
9
+ `uname -p`.chomp
10
+ end
11
+
12
+ ENV["ARCHFLAGS"] = "-arch #{arch}"
13
+ end
14
+
15
+ require 'mkmf'
16
+ require 'rbconfig'
17
+
18
+ #
19
+ # A script to override some defaults in mkmf.rb for C++ code
20
+ # compilation.
21
+ #
22
+ # If this looks like a big hack, that's because it is.
23
+ #
24
+
25
+ def init_mkmf_rice(config = CONFIG)
26
+ # Set some defaults that we got from autoconf -- they're more likely
27
+ # to be correct than what Ruby was built with
28
+ $CXX = "@CXX@"
29
+ $LIBS = "@RUBY_LIBS@"
30
+ $LIBRUBYARG = "@RUBY_LIBRUBYARG@"
31
+ $LIBRUBYARG_STATIC = "@RUBY_LIBRUBYARG_STATIC@"
32
+ $RICE_CPPFLAGS = "@RICE_CPPFLAGS@"
33
+ $RICE_LDFLAGS = "@RICE_LDFLAGS@"
34
+ $RICE_PREFIX = "@prefix@"
35
+
36
+ $RICE_USING_MINGW32 = @RICE_USING_MINGW32@
37
+
38
+ # Ruby < 1.8.6 does not have $DEFLIBPATH
39
+ $DEFLIBPATH ||= []
40
+
41
+ # We use this for the samples
42
+ $DEFLIBPATH.unshift(with_config('libpath')) if with_config('libpath')
43
+
44
+ # Ruby 1.8.6 uses $preload without setting it
45
+ $preload ||= nil
46
+
47
+ $CPPFLAGS << " #{$RICE_CPPFLAGS} -I#{$RICE_PREFIX}/include"
48
+ $LDFLAGS << " #{$RICE_LDFLAGS} -L#{$RICE_PREFIX}/lib -lrice"
49
+
50
+ # Turn on debugging and verbose warnings by default on compilers that
51
+ # support it
52
+ $CXXFLAGS = ''
53
+ if $CXX == 'g++'
54
+ $CXXFLAGS << ' -Wall -g'
55
+ end
56
+
57
+ # Fix-up the linker used for confidence tests
58
+ TRY_LINK.sub!(/^#{Regexp.quote("$(CC)")}/, $CXX)
59
+ TRY_LINK.sub!(/^#{config['CC']}/, $CXX)
60
+ TRY_LINK.sub!(/#{Regexp.quote("$(CFLAGS)")}/, "$(CXXFLAGS)")
61
+
62
+ # Set $LDSHARED_CXX to the linker to be used for C++ libraries (usually
63
+ # the C++ compiler itself)
64
+ case config['target_os']
65
+ when 'darwin'
66
+ $LDSHARED_CXX = \
67
+ replace_cc_with_cxx(config['LDSHARED']) + \
68
+ ' -read_only_relocs suppress'
69
+ when 'mswin32'
70
+ if $RICE_USING_MINGW32 then
71
+ init_rice_mkmf_cross_compile_mingw2_for_vc6
72
+ end
73
+ else
74
+ $LDSHARED_CXX = \
75
+ replace_cc_with_cxx(config['LDSHARED'])
76
+ end
77
+ end
78
+
79
+ def replace_cc_with_cxx(str)
80
+ return str.sub(
81
+ /^(cc|\$\(CC\)|#{CONFIG['CC']})(?=\s)/,
82
+ $CXX)
83
+ end
84
+
85
+ def init_rice_mkmf_cross_compile_mingw2_for_vc6
86
+ $LDSHARED_CXX = "#{$CXX} -shared -s"
87
+ $OBJEXT = 'o'
88
+ $DLDFLAGS.gsub!(/^-link.*\.pdb$/, '')
89
+
90
+ constants = {
91
+ :TRY_LINK =>
92
+ "#{$LDSHARED_CXX} -oconftest $(INCFLAGS) $(CPPFLAGS) " + \
93
+ "$(CFLAGS) $(src) $(LIBPATH) $(LDFLAGS) $(ARCH_FLAG) " + \
94
+ "$(LOCAL_LIBS) $(LIBS)",
95
+ :LINK_SO =>
96
+ "#{$LDSHARED_CXX} $(DLDFLAGS) $(LIBPATH) -o$@ " + \
97
+ "$(OBJS) $(LOCAL_LIBS) $(LIBS)",
98
+ :LIBARG =>
99
+ '-l%s',
100
+ :LIBPATHFLAG =>
101
+ ' -L %s',
102
+ :COMPILE_RULES =>
103
+ %w[.%s.%s:],
104
+ :RULE_SUBST =>
105
+ '%s',
106
+ :COMPILE_CXX =>
107
+ '$(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<',
108
+ :OUTFLAG =>
109
+ '-o',
110
+ }
111
+
112
+ constants.each do |name, value|
113
+ Object.instance_eval { remove_const name }
114
+ Object.const_set(name, value)
115
+ end
116
+ end
117
+
118
+ class Object
119
+ alias_method :configuration_orig, :configuration
120
+ def configuration(srcdir)
121
+ configuration = configuration_orig(srcdir)
122
+ configuration.each do |config|
123
+ # Make sure we link the extension using the C++ compiler
124
+ config.gsub!(/^LDSHARED\s*=.*$/, "LDSHARED = #{$LDSHARED_CXX}")
125
+
126
+ # Make sure set the C++ flags correctly
127
+ config.gsub!(/^CXXFLAGS\s*=.*$/, "CXXFLAGS = $(CFLAGS) #{$CXXFLAGS}")
128
+ end
129
+ configuration << "\nCXX = #{$CXX}"
130
+ return configuration
131
+ end
132
+
133
+ alias_method :link_command_orig, :link_command
134
+ def link_command(ldflags, opt='', libpath=$DEFLIBPATH|$LIBPATH)
135
+ link_command = link_command_orig(ldflags, opt, libpath)
136
+ return Config::expand(
137
+ link_command,
138
+ 'CXXFLAGS' => "#{$CXXFLAGS}")
139
+ end
140
+
141
+ alias_method :create_header_orig, :create_header
142
+ def create_header(header = 'extconf.hpp')
143
+ create_header_orig(header)
144
+ end
145
+
146
+ alias_method :create_makefile_orig, :create_makefile
147
+ def create_makefile(target, srcprefix = nil)
148
+ makefile_creator = RiceMakefileCreator.new
149
+ makefile_creator.create_makefile(target, srcprefix)
150
+ end
151
+ end
152
+
153
+ class RiceMakefileCreator
154
+ def create_makefile(target, srcprefix)
155
+ create_makefile_orig(target, srcprefix)
156
+ end
157
+
158
+ class MakefileWriter
159
+ def self.new(file, mode)
160
+ file = super(file, mode)
161
+ if block_given? then
162
+ begin
163
+ yield file
164
+ ensure
165
+ file.close if not file.closed?
166
+ end
167
+ else
168
+ return file
169
+ end
170
+ end
171
+
172
+ def initialize(file, mode)
173
+ @file = File.open(file, mode)
174
+ end
175
+
176
+ def print(*strings)
177
+ strings.each do |string|
178
+ # Make sure -lruby comes after -lrice (necessary on some
179
+ # platforms)
180
+ string = string.to_s.gsub(/^(LIBS\s*=\s*)(#{Regexp.quote($LIBRUBYARG)})\s+(.*)\s+(#{$LIBS})$/, '\1\3\2 \4')
181
+ @file.print(string)
182
+ end
183
+ end
184
+
185
+ def printf(format, *args)
186
+ @file.printf(format, *args)
187
+ end
188
+
189
+ def puts(*strings)
190
+ print(*strings.flatten.map { |s| "#{s}\n" })
191
+ end
192
+
193
+ def close
194
+ @file.close
195
+ end
196
+
197
+ def closed?
198
+ return @file.closed?
199
+ end
200
+ end
201
+
202
+ def open(file, mode, &block)
203
+ # Intercept makefile output using the MakefileWriter
204
+ if file == 'Makefile' then
205
+ return MakefileWriter.new(file, mode, &block)
206
+ else
207
+ return super(file, mode, &block)
208
+ end
209
+ end
210
+ end
211
+
212
+ init_mkmf_rice
213
+
@@ -0,0 +1,3 @@
1
+ module Rice
2
+ VERSION = "1.5.1.keyme"
3
+ end