mhs-xapian 1.0.18a

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 (328) hide show
  1. data/.gitignore +3 -0
  2. data/AUTHORS +1 -0
  3. data/COPYING +340 -0
  4. data/ChangeLog +5876 -0
  5. data/HACKING +101 -0
  6. data/INSTALL +293 -0
  7. data/Makefile +722 -0
  8. data/Makefile.am +26 -0
  9. data/Makefile.in +722 -0
  10. data/NEWS +2110 -0
  11. data/README +59 -0
  12. data/Rakefile +51 -0
  13. data/TODO +47 -0
  14. data/aclocal.m4 +7675 -0
  15. data/config.guess +1501 -0
  16. data/config.h +56 -0
  17. data/config.h.in +55 -0
  18. data/config.status +1298 -0
  19. data/config.sub +1705 -0
  20. data/configure +18536 -0
  21. data/configure.ac +944 -0
  22. data/csharp/.deps/xapian_wrap.Plo +1 -0
  23. data/csharp/AssemblyInfo.cs +40 -0
  24. data/csharp/AssemblyInfo.cs.in +40 -0
  25. data/csharp/Auto.cs +46 -0
  26. data/csharp/BM25Weight.cs +107 -0
  27. data/csharp/BoolWeight.cs +103 -0
  28. data/csharp/Database.cs +275 -0
  29. data/csharp/DateValueRangeProcessor.cs +61 -0
  30. data/csharp/Document.cs +177 -0
  31. data/csharp/ESet.cs +94 -0
  32. data/csharp/ESetIterator.cs +117 -0
  33. data/csharp/Enquire.cs +274 -0
  34. data/csharp/ExpandDecider.cs +76 -0
  35. data/csharp/Flint.cs +58 -0
  36. data/csharp/InMemory.cs +46 -0
  37. data/csharp/MSet.cs +193 -0
  38. data/csharp/MSetIterator.cs +141 -0
  39. data/csharp/Makefile +868 -0
  40. data/csharp/Makefile.am +106 -0
  41. data/csharp/Makefile.in +868 -0
  42. data/csharp/MatchDecider.cs +76 -0
  43. data/csharp/MultiValueSorter.cs +63 -0
  44. data/csharp/NumberValueRangeProcessor.cs +61 -0
  45. data/csharp/PositionIterator.cs +101 -0
  46. data/csharp/PostingIterator.cs +125 -0
  47. data/csharp/Quartz.cs +58 -0
  48. data/csharp/Query.cs +150 -0
  49. data/csharp/QueryParser.cs +174 -0
  50. data/csharp/RSet.cs +102 -0
  51. data/csharp/Remote.cs +100 -0
  52. data/csharp/SWIGTYPE_p_std__string.cs +30 -0
  53. data/csharp/SWIGTYPE_p_std__vectorTXapian__Query_t.cs +30 -0
  54. data/csharp/SWIGTYPE_p_std__vectorTstd__string_t.cs +30 -0
  55. data/csharp/SimpleStopper.cs +64 -0
  56. data/csharp/SmokeTest.cs +178 -0
  57. data/csharp/Sorter.cs +76 -0
  58. data/csharp/Stem.cs +66 -0
  59. data/csharp/Stopper.cs +91 -0
  60. data/csharp/StringValueRangeProcessor.cs +53 -0
  61. data/csharp/TermGenerator.cs +152 -0
  62. data/csharp/TermIterator.cs +125 -0
  63. data/csharp/TradWeight.cs +107 -0
  64. data/csharp/ValueIterator.cs +102 -0
  65. data/csharp/ValueRangeProcessor.cs +76 -0
  66. data/csharp/Version.cs +60 -0
  67. data/csharp/Weight.cs +93 -0
  68. data/csharp/WritableDatabase.cs +153 -0
  69. data/csharp/Xapian.cs +65 -0
  70. data/csharp/XapianPINVOKE.cs +1527 -0
  71. data/csharp/docs/Makefile +450 -0
  72. data/csharp/docs/Makefile.am +16 -0
  73. data/csharp/docs/Makefile.in +450 -0
  74. data/csharp/docs/examples/SimpleExpand.cs +109 -0
  75. data/csharp/docs/examples/SimpleIndex.cs +71 -0
  76. data/csharp/docs/examples/SimpleSearch.cs +78 -0
  77. data/csharp/docs/index.html +211 -0
  78. data/csharp/util.i +233 -0
  79. data/csharp/xapian_wrap.cc +10338 -0
  80. data/csharp/xapian_wrap.h +93 -0
  81. data/depcomp +632 -0
  82. data/extconf.rb +20 -0
  83. data/generic/except.i +80 -0
  84. data/generic/generic.mk +48 -0
  85. data/install-sh +520 -0
  86. data/java-swig/.deps/xapian_wrap.Plo +1 -0
  87. data/java-swig/Auto.java +35 -0
  88. data/java-swig/BM25Weight.java +81 -0
  89. data/java-swig/BoolWeight.java +77 -0
  90. data/java-swig/Database.java +195 -0
  91. data/java-swig/DateValueRangeProcessor.java +51 -0
  92. data/java-swig/Document.java +135 -0
  93. data/java-swig/ESet.java +71 -0
  94. data/java-swig/ESetIterator.java +71 -0
  95. data/java-swig/Enquire.java +246 -0
  96. data/java-swig/ExpandDecider.java +59 -0
  97. data/java-swig/Flint.java +43 -0
  98. data/java-swig/InMemory.java +35 -0
  99. data/java-swig/MSet.java +143 -0
  100. data/java-swig/MSetIterator.java +87 -0
  101. data/java-swig/Makefile +781 -0
  102. data/java-swig/Makefile.am +132 -0
  103. data/java-swig/Makefile.in +781 -0
  104. data/java-swig/MatchDecider.java +59 -0
  105. data/java-swig/MultiValueSorter.java +51 -0
  106. data/java-swig/NumberValueRangeProcessor.java +51 -0
  107. data/java-swig/PositionIterator.java +63 -0
  108. data/java-swig/PostingIterator.java +83 -0
  109. data/java-swig/Quartz.java +43 -0
  110. data/java-swig/Query.java +189 -0
  111. data/java-swig/QueryParser.java +214 -0
  112. data/java-swig/RSet.java +79 -0
  113. data/java-swig/Remote.java +71 -0
  114. data/java-swig/SWIGTYPE_p_std__string.java +25 -0
  115. data/java-swig/SimpleStopper.java +51 -0
  116. data/java-swig/SmokeTest.java +161 -0
  117. data/java-swig/Sorter.java +59 -0
  118. data/java-swig/Stem.java +51 -0
  119. data/java-swig/Stopper.java +63 -0
  120. data/java-swig/StringValueRangeProcessor.java +43 -0
  121. data/java-swig/TermGenerator.java +158 -0
  122. data/java-swig/TermIterator.java +83 -0
  123. data/java-swig/TradWeight.java +81 -0
  124. data/java-swig/ValueIterator.java +67 -0
  125. data/java-swig/ValueRangeProcessor.java +59 -0
  126. data/java-swig/Version.java +47 -0
  127. data/java-swig/Weight.java +68 -0
  128. data/java-swig/WritableDatabase.java +123 -0
  129. data/java-swig/Xapian.java +39 -0
  130. data/java-swig/XapianConstants.java +15 -0
  131. data/java-swig/XapianJNI.java +508 -0
  132. data/java-swig/run-java-test +6 -0
  133. data/java-swig/xapian_wrap.cc +12594 -0
  134. data/java-swig/xapian_wrap.h +91 -0
  135. data/java/Makefile +660 -0
  136. data/java/Makefile.am +35 -0
  137. data/java/Makefile.in +660 -0
  138. data/java/README +76 -0
  139. data/java/SmokeTest.java +148 -0
  140. data/java/native/.deps/Database.Plo +1 -0
  141. data/java/native/.deps/Document.Plo +1 -0
  142. data/java/native/.deps/ESet.Plo +1 -0
  143. data/java/native/.deps/ESetIterator.Plo +1 -0
  144. data/java/native/.deps/Enquire.Plo +1 -0
  145. data/java/native/.deps/MSet.Plo +1 -0
  146. data/java/native/.deps/MSetIterator.Plo +1 -0
  147. data/java/native/.deps/PositionIterator.Plo +1 -0
  148. data/java/native/.deps/Query.Plo +1 -0
  149. data/java/native/.deps/RSet.Plo +1 -0
  150. data/java/native/.deps/Stem.Plo +1 -0
  151. data/java/native/.deps/TermIterator.Plo +1 -0
  152. data/java/native/.deps/WritableDatabase.Plo +1 -0
  153. data/java/native/.deps/org_xapian_XapianJNI.Plo +1 -0
  154. data/java/native/.deps/utils.Plo +1 -0
  155. data/java/native/Database.cc +222 -0
  156. data/java/native/Document.cc +173 -0
  157. data/java/native/ESet.cc +79 -0
  158. data/java/native/ESetIterator.cc +82 -0
  159. data/java/native/Enquire.cc +271 -0
  160. data/java/native/MSet.cc +169 -0
  161. data/java/native/MSetIterator.cc +107 -0
  162. data/java/native/Makefile +594 -0
  163. data/java/native/Makefile.am +51 -0
  164. data/java/native/Makefile.in +594 -0
  165. data/java/native/PositionIterator.cc +64 -0
  166. data/java/native/Query.cc +180 -0
  167. data/java/native/RSet.cc +98 -0
  168. data/java/native/Stem.cc +75 -0
  169. data/java/native/TermIterator.cc +107 -0
  170. data/java/native/WritableDatabase.cc +118 -0
  171. data/java/native/XapianObjectHolder.h +115 -0
  172. data/java/native/org_xapian_XapianJNI.cc +78 -0
  173. data/java/native/org_xapian_XapianJNI.h +1369 -0
  174. data/java/native/utils.cc +51 -0
  175. data/java/native/xapian_jni.h +116 -0
  176. data/java/org/xapian/Database.java +148 -0
  177. data/java/org/xapian/Document.java +135 -0
  178. data/java/org/xapian/ESet.java +66 -0
  179. data/java/org/xapian/ESetIterator.java +97 -0
  180. data/java/org/xapian/Enquire.java +136 -0
  181. data/java/org/xapian/ExpandDecider.java +30 -0
  182. data/java/org/xapian/MSet.java +104 -0
  183. data/java/org/xapian/MSetIterator.java +132 -0
  184. data/java/org/xapian/Makefile +580 -0
  185. data/java/org/xapian/Makefile.am +38 -0
  186. data/java/org/xapian/Makefile.in +580 -0
  187. data/java/org/xapian/MatchDecider.java +30 -0
  188. data/java/org/xapian/PositionIterator.java +89 -0
  189. data/java/org/xapian/Query.java +190 -0
  190. data/java/org/xapian/RSet.java +89 -0
  191. data/java/org/xapian/Stem.java +80 -0
  192. data/java/org/xapian/TermIterator.java +142 -0
  193. data/java/org/xapian/WritableDatabase.java +92 -0
  194. data/java/org/xapian/Xapian.java +114 -0
  195. data/java/org/xapian/XapianJNI.java +444 -0
  196. data/java/org/xapian/errors/AssertionError.java +40 -0
  197. data/java/org/xapian/errors/DatabaseCorruptError.java +40 -0
  198. data/java/org/xapian/errors/DatabaseError.java +40 -0
  199. data/java/org/xapian/errors/DatabaseLockError.java +40 -0
  200. data/java/org/xapian/errors/DatabaseModifiedError.java +40 -0
  201. data/java/org/xapian/errors/DatabaseOpeningError.java +40 -0
  202. data/java/org/xapian/errors/DocNotFoundError.java +40 -0
  203. data/java/org/xapian/errors/FeatureUnavailableError.java +40 -0
  204. data/java/org/xapian/errors/InternalError.java +40 -0
  205. data/java/org/xapian/errors/InvalidArgumentError.java +40 -0
  206. data/java/org/xapian/errors/InvalidOperationError.java +40 -0
  207. data/java/org/xapian/errors/LogicError.java +40 -0
  208. data/java/org/xapian/errors/Makefile +416 -0
  209. data/java/org/xapian/errors/Makefile.am +32 -0
  210. data/java/org/xapian/errors/Makefile.in +416 -0
  211. data/java/org/xapian/errors/NetworkError.java +40 -0
  212. data/java/org/xapian/errors/NetworkTimeoutError.java +40 -0
  213. data/java/org/xapian/errors/RangeError.java +40 -0
  214. data/java/org/xapian/errors/RuntimeError.java +40 -0
  215. data/java/org/xapian/errors/UnimplementedError.java +40 -0
  216. data/java/org/xapian/errors/XapianError.java +40 -0
  217. data/java/org/xapian/errors/XapianRuntimeError.java +49 -0
  218. data/java/org/xapian/examples/Makefile +391 -0
  219. data/java/org/xapian/examples/Makefile.am +8 -0
  220. data/java/org/xapian/examples/Makefile.in +391 -0
  221. data/java/org/xapian/examples/SimpleIndex.java +68 -0
  222. data/java/org/xapian/examples/SimpleSearch.java +71 -0
  223. data/java/run-java-test +6 -0
  224. data/libtool +7618 -0
  225. data/ltmain.sh +6956 -0
  226. data/mhs-xapian.gemspec +368 -0
  227. data/missing +378 -0
  228. data/php/.deps/xapian_wrap.Plo +1 -0
  229. data/php/Makefile +871 -0
  230. data/php/Makefile.am +82 -0
  231. data/php/Makefile.in +871 -0
  232. data/php/docs/Makefile +453 -0
  233. data/php/docs/Makefile.am +19 -0
  234. data/php/docs/Makefile.in +453 -0
  235. data/php/docs/examples/simpleexpand.php4 +108 -0
  236. data/php/docs/examples/simpleexpand.php5 +104 -0
  237. data/php/docs/examples/simpleindex.php4 +76 -0
  238. data/php/docs/examples/simpleindex.php5 +73 -0
  239. data/php/docs/examples/simplesearch.php4 +75 -0
  240. data/php/docs/examples/simplesearch.php5 +72 -0
  241. data/php/docs/index.html +313 -0
  242. data/php/except.i +98 -0
  243. data/php/php4/php_xapian.h +323 -0
  244. data/php/php4/xapian.php +32 -0
  245. data/php/php4/xapian_wrap.cc +27656 -0
  246. data/php/php5/php_xapian.h +319 -0
  247. data/php/php5/xapian.php +1566 -0
  248. data/php/php5/xapian_wrap.cc +24330 -0
  249. data/php/smoketest.php +246 -0
  250. data/php/smoketest4.php +84 -0
  251. data/php/smoketest5.php +79 -0
  252. data/php/util.i +187 -0
  253. data/python/.deps/xapian_wrap.Plo +1 -0
  254. data/python/Makefile +891 -0
  255. data/python/Makefile.am +105 -0
  256. data/python/Makefile.in +891 -0
  257. data/python/doccomments.i +5134 -0
  258. data/python/docs/Makefile +448 -0
  259. data/python/docs/Makefile.am +14 -0
  260. data/python/docs/Makefile.in +448 -0
  261. data/python/docs/examples/simpleexpand.py +98 -0
  262. data/python/docs/examples/simpleindex.py +65 -0
  263. data/python/docs/examples/simplematchdecider.py +78 -0
  264. data/python/docs/examples/simplesearch.py +65 -0
  265. data/python/docs/index.html +420 -0
  266. data/python/except.i +290 -0
  267. data/python/extra.i +1048 -0
  268. data/python/extracomments.i +28 -0
  269. data/python/generate-python-exceptions +189 -0
  270. data/python/generate-python-exceptions.in +189 -0
  271. data/python/modern/xapian.py +5662 -0
  272. data/python/modern/xapian_wrap.cc +35170 -0
  273. data/python/modern/xapian_wrap.h +244 -0
  274. data/python/pythontest.py +1110 -0
  275. data/python/smoketest.py +328 -0
  276. data/python/testsuite.py +382 -0
  277. data/python/util.i +517 -0
  278. data/ruby/.deps/xapian_wrap.Plo +494 -0
  279. data/ruby/.libs/_xapian.bundle +0 -0
  280. data/ruby/.libs/_xapian.bundle.dSYM/Contents/Info.plist +25 -0
  281. data/ruby/.libs/_xapian.bundle.dSYM/Contents/Resources/DWARF/_xapian.bundle +0 -0
  282. data/ruby/.libs/_xapian.la +35 -0
  283. data/ruby/.libs/_xapian.lai +35 -0
  284. data/ruby/Makefile +854 -0
  285. data/ruby/Makefile.am +62 -0
  286. data/ruby/Makefile.in +854 -0
  287. data/ruby/_xapian.la +35 -0
  288. data/ruby/docs/Makefile +487 -0
  289. data/ruby/docs/Makefile.am +50 -0
  290. data/ruby/docs/Makefile.in +487 -0
  291. data/ruby/docs/examples/simpleexpand.rb +98 -0
  292. data/ruby/docs/examples/simpleindex.rb +60 -0
  293. data/ruby/docs/examples/simplematchdecider.rb +74 -0
  294. data/ruby/docs/examples/simplesearch.rb +63 -0
  295. data/ruby/docs/index.html +197 -0
  296. data/ruby/smoketest.rb +211 -0
  297. data/ruby/util.i +232 -0
  298. data/ruby/xapian.rb +280 -0
  299. data/ruby/xapian_wrap.cc +25837 -0
  300. data/ruby/xapian_wrap.h +65 -0
  301. data/ruby/xapian_wrap.lo +12 -0
  302. data/skiptest +2 -0
  303. data/stamp-h1 +1 -0
  304. data/tcl8/.deps/xapian_wrap.Plo +1 -0
  305. data/tcl8/Makefile +835 -0
  306. data/tcl8/Makefile.am +49 -0
  307. data/tcl8/Makefile.in +835 -0
  308. data/tcl8/docs/Makefile +448 -0
  309. data/tcl8/docs/Makefile.am +14 -0
  310. data/tcl8/docs/Makefile.in +448 -0
  311. data/tcl8/docs/examples/simpleexpand.tcl +104 -0
  312. data/tcl8/docs/examples/simpleindex.tcl +68 -0
  313. data/tcl8/docs/examples/simplesearch.tcl +66 -0
  314. data/tcl8/docs/index.html +208 -0
  315. data/tcl8/except.i +48 -0
  316. data/tcl8/pkgIndex.tcl +1 -0
  317. data/tcl8/pkgIndex.tcl.in +1 -0
  318. data/tcl8/run-tcl-test +15 -0
  319. data/tcl8/runtest.tcl +29 -0
  320. data/tcl8/smoketest.tcl +155 -0
  321. data/tcl8/util.i +76 -0
  322. data/tcl8/xapian_wrap.cc +20900 -0
  323. data/xapian-bindings.spec +206 -0
  324. data/xapian-bindings.spec.in +206 -0
  325. data/xapian-version.h +1 -0
  326. data/xapian-version.h.in +1 -0
  327. data/xapian.i +939 -0
  328. metadata +395 -0
data/HACKING ADDED
@@ -0,0 +1,101 @@
1
+ Instructions for hacking on Xapian's bindings
2
+ =============================================
3
+
4
+ This file is aimed to help developers get started with working on
5
+ Xapian's bindings. You should also read the HACKING file in the
6
+ xapian-core sources which gives information which isn't specific
7
+ to the bindings.
8
+
9
+ Extra options to give to configure:
10
+ ===================================
11
+
12
+ Note: Non-developer configure options are described in INSTALL
13
+
14
+ --enable-maintainer-mode
15
+ This tells configure to enable make dependencies for regenerating build
16
+ system files (such as configure, Makefile.in, and Makefile), and also
17
+ enables rules to rebuild the bindings glue code by rerunning SWIG.
18
+ You'll need to specify this if you're going to modify configure.ac, any
19
+ Makefile.am, or any .i file.
20
+
21
+ Adding support for other programming languages
22
+ ==============================================
23
+
24
+ Many languages can be done using SWIG, and it's probably easier to do so
25
+ even though some languages may have better tools available just because it's
26
+ less overall work. SWIG makes it particularly easy to wrap a new method for
27
+ all the supported languages at once, often by just copying the new method
28
+ prototype into xapian.i (and for some headers we parse the Xapian header
29
+ directly so no work is needed!)
30
+
31
+ XS bindings for Perl have been contributed for Perl. SWIG's Perl backend
32
+ doesn't support directors, so we'd lose the ability to support callbacks
33
+ (e.g. for Xapian::MatchDecider) if we switched these to use SWIG.
34
+
35
+ We also currently have hand written JNI bindings for Java. The plan is to
36
+ move these over to using SWIG to reduce the maintenance cost (the SWIG
37
+ generated bindings are also somewhat smaller, and allow us to support
38
+ GCJ's CNI alternative to JNI). Some work has been done and can be found
39
+ in the java-swig subdirectory.
40
+
41
+ What's really needed is someone interested in bindings for a particular
42
+ language who knows that language well and will be using them actively.
43
+ We can help with the Xapian and SWIG side, but without somebody who knows
44
+ the language well it's hard to produce a solid, well tested set of bindings
45
+ rather than just a token implementation...
46
+
47
+ To be worth shipping in the xapian-bindings tarball, bindings for an additional
48
+ language really need a version of the smoketest (so we can be confident that
49
+ they actually work!), and also documentation and examples along the lines of
50
+ the existing bindings (without these the bindings aren't likely to be useful to
51
+ anyone else).
52
+
53
+ To give an idea of how much work a set of bindings might be, the author of the
54
+ Ruby bindings estimated they took about 25 hours, starting from not knowing
55
+ SWIG. However, the time taken could vary substantially depending on the
56
+ language, how well you know it, and how well SWIG supports it.
57
+
58
+ These are languages which SWIG supports and which people have done some work
59
+ on producing Xapian bindings for:
60
+
61
+ Pike Bill Welliver has written some Pike bindings for Xapian
62
+ covering some of the API, which are available from here:
63
+ http://modules.gotpike.org/module_info.html?module_id=42
64
+ These bindings appear to be hand-coded rather than generated
65
+ using SWIG.
66
+
67
+ Guile rm@fabula.de did some work on getting Guile bindings working,
68
+ but sadly most of this was lost when his laptop's hard disk
69
+ died.
70
+
71
+ These are the other languages which SWIG supports, but which nobody has yet
72
+ (to our knowledge!) worked on producing Xapian bindings for (from
73
+ http://www.swig.org/compare.html and SWIG release notes):
74
+
75
+ Mzscheme Supported by SWIG 1.3.6 onwards
76
+ Ocaml Supported by SWIG 1.3.14 onwards
77
+ Pike Supported by SWIG 1.3.14 onwards
78
+ Chicken Supported by SWIG 1.3.18 onwards
79
+ Allegro CL SWIG 1.3.28 added support for wrapping C++ with Allegro CL
80
+ Modula-3 Supported by SWIG 1.3.22 onwards
81
+ Lua Supported by SWIG 1.3.26 onwards
82
+ CLISP Supported by SWIG 1.3.26 onwards
83
+ Common Lisp with UFFI
84
+ Supported by SWIG 1.3.26 onwards
85
+
86
+ These languages have support via patches against reasonably recent versions
87
+ of SWIG:
88
+
89
+ occam-pi For a patch against SWIG 1.3.29 see:
90
+ http://article.gmane.org/gmane.comp.programming.swig.devel/16036
91
+ Squirrel For a patch against SWIG 1.3.28 see:
92
+ http://article.gmane.org/gmane.comp.programming.swig.devel/16000
93
+ ("No attempts were made to support C++ classes because I do
94
+ not have such need right now.")
95
+ Q See http://thread.gmane.org/gmane.comp.programming.swig/5248
96
+ Patched version of SWIG 1.3.22 available from
97
+ http://q-lang.sourceforge.net/
98
+
99
+ It may be possible to support a language which isn't listed above, but it's
100
+ likely to be harder unless you're already familiar with the tools available
101
+ for wrapping a C++ library for use with that language.
data/INSTALL ADDED
@@ -0,0 +1,293 @@
1
+ Xapian-bindings Installation
2
+ ============================
3
+
4
+ Known Issues
5
+ ============
6
+
7
+ * The bindings fail to link on Mac OS X 10.1 and 10.2. Unfortunately we
8
+ don't know of a workaround other than to upgrade to Mac OS X 10.3 or
9
+ higher. If you know of a solution please let us know.
10
+
11
+ * The bindings glue code generated by SWIG seems to require a lot of memory
12
+ to compile and can take several minutes even on a fast machine (at least
13
+ with most versions of g++). Some systems (such as OpenBSD) may require
14
+ you to increase the amount of memory a process can use (using ulimit is
15
+ the simplest way). Alternatively you can compile the bindings without
16
+ optimisation using:
17
+
18
+ make CXXFLAGS=-g
19
+
20
+ Xapian-bindings version 0.9.3 reduced the compile time by something like a
21
+ factor of 3 and probably also reduced memory usage significantly, but you
22
+ might still encounter this issue on slower machines with less memory.
23
+
24
+ Quick Installation Guide
25
+ ========================
26
+
27
+ The simplest way to compile this package is:
28
+
29
+ 1. `cd' to the directory containing the package's source code and type
30
+ `./configure' to configure the package for your system. If you're
31
+ using `csh' on an old version of System V, you might need to type
32
+ `sh ./configure' instead to prevent `csh' from trying to execute
33
+ `configure' itself.
34
+
35
+ You need to make sure that xapian-config from xapian-core is on your path,
36
+ or else pass its full path to xapian-bindings's configure script:
37
+
38
+ ./configure XAPIAN_CONFIG=/path/to/xapian-config
39
+
40
+ By default, configure will enable building of bindings for all languages
41
+ which it can find the required tools for. Alternatively you can specify
42
+ exactly which bindings you want to build by passing one or more of the
43
+ following options to configure:
44
+
45
+ --with-python enable Python bindings
46
+ --with-php enable PHP bindings
47
+ --with-ruby enable Ruby bindings
48
+ --with-tcl enable Tcl bindings
49
+ --with-java enable Java bindings
50
+ --with-csharp enable CSharp bindings
51
+
52
+ If you've requested particular bindings using these options, then
53
+ configure will fail with an error if it is missing the prerequisite
54
+ tools, libraries, header files, etc required to build bindings for
55
+ any of the specified languages.
56
+
57
+ If you have more than one version of a particular language installed
58
+ you can tell configure which to build the bindings for by setting
59
+ variables on the configure command line. For a full list of such
60
+ variables, see the output of `configure --help' - for example, for
61
+ Python you might use:
62
+
63
+ ./configure PYTHON=/opt/bin/python2.6
64
+
65
+ Running `configure' takes a while. While running, it prints some
66
+ messages telling which features it is checking for.
67
+
68
+ 2. Type `make' to compile the package (if you don't have root access
69
+ and want to compile any of the bindings other than Java and C#,
70
+ read the next section).
71
+
72
+ 3. Optionally, type `make check' to run the self-tests that come with
73
+ the package.
74
+
75
+ 4. Type `make install' to install the programs and any data files and
76
+ documentation.
77
+
78
+ 5. You can remove the program binaries and object files from the
79
+ source code directory by typing `make clean'. To also remove the
80
+ files that `configure' created (so you can compile the package for
81
+ a different kind of computer), type `make distclean'. There is
82
+ also a `make maintainer-clean' target, but that is intended mainly
83
+ for the package's developers. If you use it, you may have to get
84
+ all sorts of other programs in order to regenerate files that came
85
+ with the distribution.
86
+
87
+ Installing without root access
88
+ ==============================
89
+
90
+ By default the bindings for all languages apart from Java and C# will
91
+ automatically detect where the language interpreter expects extension
92
+ modules to be installed and try to install there. This is a problem
93
+ if you want to install them and don't have root access. In this case
94
+ follow the instructions for the particular language below (note: you
95
+ still build several at once - just pass the arguments listed below
96
+ for each language to "./configure", to "make", and to "make install".)
97
+ Note that you also need to pass a "--prefix" option to configure so that
98
+ the documentation and examples can be installed.
99
+
100
+ PHP:
101
+
102
+ ./configure --with-php --prefix=$HOME/install PHP_EXTENSION_DIR=$HOME/my_php_extensions
103
+ make
104
+ make install
105
+
106
+ And you'll need to load the Xapian module in your PHP code using something
107
+ like:
108
+
109
+ dl("../../../home/USERNAME/my_php_extensions/xapian.so");
110
+
111
+ The number of ".."s you need depends on what extension_dir is set to
112
+ in php.ini.
113
+
114
+ Python:
115
+
116
+ ./configure --with-python --prefix=$HOME/install PYTHON_LIB=$HOME/my_python_modules
117
+ make
118
+ make install
119
+
120
+ And then you'll need to tell Python to look for modules in this directory.
121
+ Here are two possible ways to do that.
122
+
123
+ setenv PYTHONPATH=$HOME/my_python_modules python myscript.py
124
+
125
+ Or you can add this to your Python script:
126
+
127
+ import sys
128
+ sys.path.insert(0, "/home/USERNAME/my_python_modules")
129
+ import xapian
130
+
131
+ Ruby:
132
+
133
+ ./configure --with-ruby --prefix=$HOME/install RUBY_LIB=$HOME/my_ruby_modules RUBY_LIB_ARCH=$HOME/my_ruby_modules
134
+ make
135
+ make install
136
+
137
+ And then you'll need to tell Ruby to look for modules in this directory:
138
+
139
+ ruby -I$HOME/my_ruby_modules myscript.rb
140
+
141
+ Tcl8:
142
+
143
+ ./configure --with-tcl --prefix=$HOME/install TCL_LIB=$HOME/my_tcl_modules
144
+ make
145
+ make install
146
+
147
+ And then add the following to the start of your script to load Xapian:
148
+
149
+ load [file join "/home/USERNAME/my_tcl_modules" xapian.so]
150
+
151
+ Compilers and Options
152
+ =====================
153
+
154
+ Some systems may require unusual options for compilation or linking that
155
+ the `configure' script does not know about. Run `./configure --help'
156
+ for details on some of the pertinent environment variables.
157
+
158
+ You can give `configure' initial values for configuration parameters
159
+ by setting variables in the command line or in the environment. Here
160
+ is an example:
161
+
162
+ ./configure LIBS=-lposix
163
+
164
+ If your system requires special flags, do let us know. Where possible
165
+ we'd prefer configure to determine such flags by itself, but if we can't
166
+ then at least we can document the special flags to help other users of
167
+ systems like yours.
168
+
169
+ Compiling For Multiple Architectures
170
+ ====================================
171
+
172
+ You can compile the package for more than one kind of computer at the
173
+ same time, by placing the object files for each architecture in their
174
+ own directory. To do this, you must use a version of `make' that
175
+ supports the `VPATH' variable, such as GNU `make'. `cd' to the
176
+ directory where you want the object files and executables to go and run
177
+ the `configure' script. `configure' automatically checks for the
178
+ source code in the directory that `configure' is in and in `..'.
179
+
180
+ If you have to use a `make' that does not support the `VPATH'
181
+ variable, you have to compile the package for one architecture at a
182
+ time in the source code directory. After you have installed the
183
+ package for one architecture, use `make distclean' before reconfiguring
184
+ for another architecture.
185
+
186
+ Installation Names
187
+ ==================
188
+
189
+ By default, `make install' will install the package's files in
190
+ `/usr/local/bin', `/usr/local/man', etc. You can specify an
191
+ installation prefix other than `/usr/local' by giving `configure' the
192
+ option `--prefix=PATH'.
193
+
194
+ You can specify separate installation prefixes for
195
+ architecture-specific files and architecture-independent files. If you
196
+ give `configure' the option `--exec-prefix=PATH', the package will use
197
+ PATH as the prefix for installing programs and libraries.
198
+ Documentation and other data files will still use the regular prefix.
199
+
200
+ In addition, if you use an unusual directory layout you can give
201
+ options like `--bindir=PATH' to specify different values for particular
202
+ kinds of files. Run `configure --help' for a list of the directories
203
+ you can set and what kinds of files go in them.
204
+
205
+ Specifying the System Type
206
+ ==========================
207
+
208
+ There may be some features `configure' cannot figure out
209
+ automatically, but needs to determine by the type of machine the package
210
+ will run on. Usually, assuming the package is built to be run on the
211
+ _same_ architectures, `configure' can figure that out, but if it prints
212
+ a message saying it cannot guess the machine type, give it the
213
+ `--build=TYPE' option. TYPE can either be a short name for the system
214
+ type, such as `sun4', or a canonical name which has the form:
215
+
216
+ CPU-COMPANY-SYSTEM
217
+
218
+ where SYSTEM can have one of these forms:
219
+
220
+ OS KERNEL-OS
221
+
222
+ See the file `config.sub' for the possible values of each field. If
223
+ `config.sub' isn't included in this package, then this package doesn't
224
+ need to know the machine type.
225
+
226
+ If you want to _use_ a cross compiler, that generates code for a
227
+ platform different from the build platform, you should specify the
228
+ "host" platform (i.e., that on which the generated programs will
229
+ eventually be run) with `--host=TYPE'.
230
+
231
+ Sharing Defaults
232
+ ================
233
+
234
+ If you want to set default values for `configure' scripts to share,
235
+ you can create a site shell script called `config.site' that gives
236
+ default values for variables like `CXX', `cache_file', and `prefix'.
237
+ `configure' looks for `PREFIX/share/config.site' if it exists, then
238
+ `PREFIX/etc/config.site' if it exists. Or, you can set the
239
+ `CONFIG_SITE' environment variable to the location of the site script.
240
+ A warning: not all `configure' scripts look for a site script.
241
+
242
+ Defining Variables
243
+ ==================
244
+
245
+ Variables not defined in a site shell script can be set in the
246
+ environment passed to `configure'. However, some packages may run
247
+ configure again during the build, and the customized values of these
248
+ variables may be lost. In order to avoid this problem, you should set
249
+ them in the `configure' command line, using `VAR=value'. For example:
250
+
251
+ ./configure CXX=/usr/local2/bin/g++
252
+
253
+ will cause the specified g++ to be used as the C++ compiler (unless it is
254
+ overridden in the site shell script).
255
+
256
+ `configure' Invocation
257
+ ======================
258
+
259
+ As well as the options documented in the "Quick Installation Guide",
260
+ `configure' recognizes the following standard options to control how it
261
+ operates:
262
+
263
+ `--help'
264
+ `-h'
265
+ Print a summary of the options to `configure', and exit.
266
+
267
+ `--version'
268
+ `-V'
269
+ Print the version of Autoconf used to generate the `configure'
270
+ script, and exit.
271
+
272
+ `--cache-file=FILE'
273
+ Enable the cache: use and save the results of the tests in FILE,
274
+ traditionally `config.cache'. FILE defaults to `/dev/null' to
275
+ disable caching.
276
+
277
+ `--config-cache'
278
+ `-C'
279
+ Alias for `--cache-file=config.cache'.
280
+
281
+ `--quiet'
282
+ `--silent'
283
+ `-q'
284
+ Do not print messages saying which checks are being made. To
285
+ suppress all normal output, redirect it to `/dev/null' (any error
286
+ messages will still be shown).
287
+
288
+ `--srcdir=DIR'
289
+ Look for the package's source code in directory DIR. Usually
290
+ `configure' can determine that directory automatically.
291
+
292
+ `configure' also accepts some other, not widely useful, options. Run
293
+ `configure --help' for more details.
data/Makefile ADDED
@@ -0,0 +1,722 @@
1
+ # Makefile.in generated by automake 1.10.3 from Makefile.am.
2
+ # Makefile. Generated from Makefile.in by configure.
3
+
4
+ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
+ # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
6
+ # 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
+
17
+
18
+ pkgdatadir = $(datadir)/xapian-bindings
19
+ pkglibdir = $(libdir)/xapian-bindings
20
+ pkgincludedir = $(includedir)/xapian-bindings
21
+ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22
+ install_sh_DATA = $(install_sh) -c -m 644
23
+ install_sh_PROGRAM = $(install_sh) -c
24
+ install_sh_SCRIPT = $(install_sh) -c
25
+ INSTALL_HEADER = $(INSTALL_DATA)
26
+ transform = $(program_transform_name)
27
+ NORMAL_INSTALL = :
28
+ PRE_INSTALL = :
29
+ POST_INSTALL = :
30
+ NORMAL_UNINSTALL = :
31
+ PRE_UNINSTALL = :
32
+ POST_UNINSTALL = :
33
+ build_triplet = i386-apple-darwin9.8.0
34
+ host_triplet = i386-apple-darwin9.8.0
35
+ subdir = .
36
+ DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
37
+ $(srcdir)/Makefile.in $(srcdir)/config.h.in \
38
+ $(srcdir)/xapian-bindings.spec.in \
39
+ $(srcdir)/xapian-version.h.in $(top_srcdir)/configure AUTHORS \
40
+ COPYING ChangeLog INSTALL NEWS TODO config.guess config.sub \
41
+ depcomp install-sh ltmain.sh missing
42
+ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
43
+ am__aclocal_m4_deps = $(top_srcdir)/configure.ac
44
+ am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
45
+ $(ACLOCAL_M4)
46
+ am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
47
+ configure.lineno config.status.lineno
48
+ mkinstalldirs = $(install_sh) -d
49
+ CONFIG_HEADER = config.h
50
+ CONFIG_CLEAN_FILES = xapian-version.h xapian-bindings.spec
51
+ SOURCES =
52
+ DIST_SOURCES =
53
+ RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
54
+ html-recursive info-recursive install-data-recursive \
55
+ install-dvi-recursive install-exec-recursive \
56
+ install-html-recursive install-info-recursive \
57
+ install-pdf-recursive install-ps-recursive install-recursive \
58
+ installcheck-recursive installdirs-recursive pdf-recursive \
59
+ ps-recursive uninstall-recursive
60
+ RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
61
+ distclean-recursive maintainer-clean-recursive
62
+ ETAGS = etags
63
+ CTAGS = ctags
64
+ DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
65
+ distdir = $(PACKAGE)-$(VERSION)
66
+ top_distdir = $(distdir)
67
+ am__remove_distdir = \
68
+ { test ! -d $(distdir) \
69
+ || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
70
+ && rm -fr $(distdir); }; }
71
+ DIST_ARCHIVES = $(distdir).tar.gz
72
+ GZIP_ENV = --best
73
+ distuninstallcheck_listfiles = find . -type f -print
74
+ distcleancheck_listfiles = find . -type f -print
75
+ ACLOCAL = ${SHELL} /Users/zdennis/source/opensource_projects/xapian/missing --run aclocal-1.10
76
+ AMTAR = ${SHELL} /Users/zdennis/source/opensource_projects/xapian/missing --run tar
77
+ AR = ar
78
+ AUTOCONF = ${SHELL} /Users/zdennis/source/opensource_projects/xapian/missing --run autoconf
79
+ AUTOHEADER = ${SHELL} /Users/zdennis/source/opensource_projects/xapian/missing --run autoheader
80
+ AUTOM4TE = autom4te
81
+ AUTOMAKE = ${SHELL} /Users/zdennis/source/opensource_projects/xapian/missing --run automake-1.10
82
+ AWK = gawk
83
+ BINDINGS = ruby
84
+ CC = gcc
85
+ CCDEPMODE = depmode=gcc3
86
+ CFLAGS = -g -O2
87
+ COMPAT_VERSION = 1.0.18
88
+ CPP = gcc -E
89
+ CPPFLAGS =
90
+ CSC =
91
+ CXX = g++
92
+ CXXCPP = g++ -E
93
+ CXXDEPMODE = depmode=gcc3
94
+ CXXFLAGS = -g -O2
95
+ CYGPATH_W = echo
96
+ DEFS = -DHAVE_CONFIG_H
97
+ DEPDIR = .deps
98
+ DSYMUTIL = dsymutil
99
+ ECHO = /bin/echo
100
+ ECHO_C = \c
101
+ ECHO_N =
102
+ ECHO_T =
103
+ EGREP = /usr/bin/grep -E
104
+ EXEEXT =
105
+ GACUTIL =
106
+ GREP = /usr/bin/grep
107
+ INSTALL = /opt/local/bin/ginstall -c
108
+ INSTALL_DATA = ${INSTALL} -m 644
109
+ INSTALL_PROGRAM = ${INSTALL}
110
+ INSTALL_SCRIPT = ${INSTALL}
111
+ INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
112
+ JAR =
113
+ JAVA =
114
+ JAVAC =
115
+ JAVA_CPPFLAGS =
116
+ JAVA_CXXFLAGS = -Wall -W -Wno-unused
117
+ JAVA_HOME =
118
+ JAVA_PATHSEP =
119
+ JDK_HOME =
120
+ JNI_INCLUDE_DIR =
121
+ LDFLAGS =
122
+ LIBOBJS =
123
+ LIBS =
124
+
125
+ # `make QUIET=' overrides `./configure --enable-quiet'.
126
+ # `make QUIET=y' overrides `./configure' without `--enable-quiet'.
127
+ LIBTOOL = $(SHELL) $(top_builddir)/libtool $(QUIET:y=--quiet)
128
+ LN_S = ln -s
129
+ LTLIBOBJS =
130
+ MAINT = #
131
+ MAKEINFO = ${SHELL} /Users/zdennis/source/opensource_projects/xapian/missing --run makeinfo
132
+ MKDIR_P = /opt/local/bin/gmkdir -p
133
+ MONO =
134
+ NMEDIT = nmedit
135
+ NO_UNDEFINED =
136
+ OBJEXT = o
137
+ OVERRIDE_MACOSX_DEPLOYMENT_TARGET = 10.3
138
+ PACKAGE = xapian-bindings
139
+ PACKAGE_BUGREPORT = http://xapian.org/bugs
140
+ PACKAGE_NAME = xapian-bindings
141
+ PACKAGE_STRING = xapian-bindings 1.0.18
142
+ PACKAGE_TARNAME = xapian-bindings
143
+ PACKAGE_VERSION = 1.0.18
144
+ PATH_SEPARATOR = :
145
+ PERL =
146
+ PHP =
147
+ PHP_CONFIG =
148
+ PHP_EXTENSION_DIR =
149
+ PHP_INC =
150
+ PHP_LIBS =
151
+ PHP_MAJOR_VERSION =
152
+ PYTHON =
153
+ PYTHON_INC =
154
+ PYTHON_LIB =
155
+ PYTHON_LIBS =
156
+ PYTHON_SO =
157
+ RANLIB = ranlib
158
+ RDOC =
159
+ RUBY = /opt/local/bin/ruby
160
+ RUBY_DLEXT = bundle
161
+ RUBY_INC = /opt/local/lib/ruby/1.8/i686-darwin9
162
+ RUBY_INC_ARCH = /opt/local/lib/ruby/1.8/i686-darwin9
163
+ RUBY_LIB = /opt/local/lib/ruby/site_ruby/1.8
164
+ RUBY_LIBS =
165
+ RUBY_LIB_ARCH = /opt/local/lib/ruby/site_ruby/1.8/i686-darwin9
166
+ RUN_CSHARP =
167
+ SED = /opt/local/bin/gsed
168
+ SET_MAKE =
169
+ SHELL = /bin/sh
170
+ SN =
171
+ STRIP = strip
172
+ SWIG =
173
+ SWIG_CXXFLAGS = -fno-strict-aliasing -Wall -Wno-unused -Wno-uninitialized -fvisibility=hidden
174
+ SWIG_FLAGS =
175
+ TCLSH =
176
+ TCL_CPPFLAGS =
177
+ TCL_LIB =
178
+ TCL_LIBS =
179
+ VERSION = 1.0.18
180
+ VERSION_NO_SNAPSHOT = 1.0.18
181
+ XAPIAN_CONFIG = /opt/local/bin/xapian-config
182
+ XAPIAN_CXXFLAGS = -I/opt/local/include
183
+ XAPIAN_LIBS = /opt/local/lib/libxapian.la -lstdc++
184
+ XAPIAN_VERSION = 1.0.18
185
+ abs_builddir = /Users/zdennis/source/opensource_projects/xapian
186
+ abs_srcdir = /Users/zdennis/source/opensource_projects/xapian
187
+ abs_top_builddir = /Users/zdennis/source/opensource_projects/xapian
188
+ abs_top_srcdir = /Users/zdennis/source/opensource_projects/xapian
189
+ ac_ct_CC = gcc
190
+ ac_ct_CXX = g++
191
+ am__include = include
192
+ am__leading_dot = .
193
+ am__quote =
194
+ am__tar = tar --format=ustar -chf - "$$tardir"
195
+ am__untar = tar -xf -
196
+ bindir = ${exec_prefix}/bin
197
+ build = i386-apple-darwin9.8.0
198
+ build_alias =
199
+ build_cpu = i386
200
+ build_os = darwin9.8.0
201
+ build_vendor = apple
202
+ builddir = .
203
+ datadir = ${datarootdir}
204
+ datarootdir = ${prefix}/share
205
+ docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
206
+ dvidir = ${docdir}
207
+ exec_prefix = ${prefix}
208
+ host = i386-apple-darwin9.8.0
209
+ host_alias =
210
+ host_cpu = i386
211
+ host_os = darwin9.8.0
212
+ host_vendor = apple
213
+ htmldir = ${docdir}
214
+ includedir = ${prefix}/include
215
+ infodir = ${datarootdir}/info
216
+ install_sh = $(SHELL) /Users/zdennis/source/opensource_projects/xapian/install-sh
217
+ libdir = ${exec_prefix}/lib
218
+ libexecdir = ${exec_prefix}/libexec
219
+ localedir = ${datarootdir}/locale
220
+ localstatedir = ${prefix}/var
221
+ mandir = ${datarootdir}/man
222
+ mkdir_p = /opt/local/bin/gmkdir -p
223
+ oldincludedir = /usr/include
224
+ pdfdir = ${docdir}
225
+ prefix = /usr/local
226
+ program_transform_name = s,x,x,
227
+ psdir = ${docdir}
228
+ sbindir = ${exec_prefix}/sbin
229
+ sharedstatedir = ${prefix}/com
230
+ srcdir = .
231
+ sysconfdir = ${prefix}/etc
232
+ target_alias =
233
+ top_build_prefix =
234
+ top_builddir = .
235
+ top_srcdir = .
236
+ EXTRA_DIST = xapian.i generic/except.i \
237
+ xapian-bindings.spec.in xapian-bindings.spec skiptest \
238
+ xapian-version.h.in xapian-version.h HACKING TODO
239
+
240
+ DISTCLEANFILES = xapian-version.h
241
+ SUBDIRS = ruby
242
+ DIST_SUBDIRS = python php java-swig java ruby tcl8 csharp # guile
243
+ DISTCHECK_CONFIGURE_FLAGS = XAPIAN_CONFIG="$(XAPIAN_CONFIG)" \
244
+ PYTHON_LIB="`pwd`/../_inst/tmp_pylib" \
245
+ PHP_EXTENSION_DIR="`pwd`/../_inst/tmp_phpext" \
246
+ RUBY_LIB="`pwd`/../_inst/tmp_rubylib" \
247
+ RUBY_LIB_ARCH="`pwd`/../_inst/tmp_rubylibarch" \
248
+ TCL_LIB="`pwd`/../_inst/tmp_tcllib"
249
+
250
+ all: config.h
251
+ $(MAKE) $(AM_MAKEFLAGS) all-recursive
252
+
253
+ .SUFFIXES:
254
+ am--refresh:
255
+ @:
256
+ $(srcdir)/Makefile.in: # $(srcdir)/Makefile.am $(am__configure_deps)
257
+ @for dep in $?; do \
258
+ case '$(am__configure_deps)' in \
259
+ *$$dep*) \
260
+ echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \
261
+ cd $(srcdir) && $(AUTOMAKE) --gnu \
262
+ && exit 0; \
263
+ exit 1;; \
264
+ esac; \
265
+ done; \
266
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
267
+ cd $(top_srcdir) && \
268
+ $(AUTOMAKE) --gnu Makefile
269
+ .PRECIOUS: Makefile
270
+ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
271
+ @case '$?' in \
272
+ *config.status*) \
273
+ echo ' $(SHELL) ./config.status'; \
274
+ $(SHELL) ./config.status;; \
275
+ *) \
276
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
277
+ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
278
+ esac;
279
+
280
+ $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
281
+ $(SHELL) ./config.status --recheck
282
+
283
+ $(top_srcdir)/configure: # $(am__configure_deps)
284
+ cd $(srcdir) && $(AUTOCONF)
285
+ $(ACLOCAL_M4): # $(am__aclocal_m4_deps)
286
+ cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
287
+
288
+ config.h: stamp-h1
289
+ @if test ! -f $@; then \
290
+ rm -f stamp-h1; \
291
+ $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
292
+ else :; fi
293
+
294
+ stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
295
+ @rm -f stamp-h1
296
+ cd $(top_builddir) && $(SHELL) ./config.status config.h
297
+ $(srcdir)/config.h.in: # $(am__configure_deps)
298
+ cd $(top_srcdir) && $(AUTOHEADER)
299
+ rm -f stamp-h1
300
+ touch $@
301
+
302
+ distclean-hdr:
303
+ -rm -f config.h stamp-h1
304
+ xapian-version.h: $(top_builddir)/config.status $(srcdir)/xapian-version.h.in
305
+ cd $(top_builddir) && $(SHELL) ./config.status $@
306
+ xapian-bindings.spec: $(top_builddir)/config.status $(srcdir)/xapian-bindings.spec.in
307
+ cd $(top_builddir) && $(SHELL) ./config.status $@
308
+
309
+ mostlyclean-libtool:
310
+ -rm -f *.lo
311
+
312
+ clean-libtool:
313
+ -rm -rf .libs _libs
314
+
315
+ distclean-libtool:
316
+ -rm -f libtool config.lt
317
+
318
+ # This directory's subdirectories are mostly independent; you can cd
319
+ # into them and run `make' without going through this Makefile.
320
+ # To change the values of `make' variables: instead of editing Makefiles,
321
+ # (1) if the variable is set in `config.status', edit `config.status'
322
+ # (which will cause the Makefiles to be regenerated when you run `make');
323
+ # (2) otherwise, pass the desired values on the `make' command line.
324
+ $(RECURSIVE_TARGETS):
325
+ @fail= failcom='exit 1'; \
326
+ for f in x $$MAKEFLAGS; do \
327
+ case $$f in \
328
+ *=* | --[!k]*);; \
329
+ *k*) failcom='fail=yes';; \
330
+ esac; \
331
+ done; \
332
+ dot_seen=no; \
333
+ target=`echo $@ | sed s/-recursive//`; \
334
+ list='$(SUBDIRS)'; for subdir in $$list; do \
335
+ echo "Making $$target in $$subdir"; \
336
+ if test "$$subdir" = "."; then \
337
+ dot_seen=yes; \
338
+ local_target="$$target-am"; \
339
+ else \
340
+ local_target="$$target"; \
341
+ fi; \
342
+ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
343
+ || eval $$failcom; \
344
+ done; \
345
+ if test "$$dot_seen" = "no"; then \
346
+ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
347
+ fi; test -z "$$fail"
348
+
349
+ $(RECURSIVE_CLEAN_TARGETS):
350
+ @fail= failcom='exit 1'; \
351
+ for f in x $$MAKEFLAGS; do \
352
+ case $$f in \
353
+ *=* | --[!k]*);; \
354
+ *k*) failcom='fail=yes';; \
355
+ esac; \
356
+ done; \
357
+ dot_seen=no; \
358
+ case "$@" in \
359
+ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
360
+ *) list='$(SUBDIRS)' ;; \
361
+ esac; \
362
+ rev=''; for subdir in $$list; do \
363
+ if test "$$subdir" = "."; then :; else \
364
+ rev="$$subdir $$rev"; \
365
+ fi; \
366
+ done; \
367
+ rev="$$rev ."; \
368
+ target=`echo $@ | sed s/-recursive//`; \
369
+ for subdir in $$rev; do \
370
+ echo "Making $$target in $$subdir"; \
371
+ if test "$$subdir" = "."; then \
372
+ local_target="$$target-am"; \
373
+ else \
374
+ local_target="$$target"; \
375
+ fi; \
376
+ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
377
+ || eval $$failcom; \
378
+ done && test -z "$$fail"
379
+ tags-recursive:
380
+ list='$(SUBDIRS)'; for subdir in $$list; do \
381
+ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
382
+ done
383
+ ctags-recursive:
384
+ list='$(SUBDIRS)'; for subdir in $$list; do \
385
+ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
386
+ done
387
+
388
+ ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
389
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
390
+ unique=`for i in $$list; do \
391
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
392
+ done | \
393
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
394
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
395
+ mkid -fID $$unique
396
+ tags: TAGS
397
+
398
+ TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
399
+ $(TAGS_FILES) $(LISP)
400
+ tags=; \
401
+ here=`pwd`; \
402
+ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
403
+ include_option=--etags-include; \
404
+ empty_fix=.; \
405
+ else \
406
+ include_option=--include; \
407
+ empty_fix=; \
408
+ fi; \
409
+ list='$(SUBDIRS)'; for subdir in $$list; do \
410
+ if test "$$subdir" = .; then :; else \
411
+ test ! -f $$subdir/TAGS || \
412
+ tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
413
+ fi; \
414
+ done; \
415
+ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
416
+ unique=`for i in $$list; do \
417
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
418
+ done | \
419
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
420
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
421
+ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
422
+ test -n "$$unique" || unique=$$empty_fix; \
423
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
424
+ $$tags $$unique; \
425
+ fi
426
+ ctags: CTAGS
427
+ CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
428
+ $(TAGS_FILES) $(LISP)
429
+ tags=; \
430
+ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
431
+ unique=`for i in $$list; do \
432
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
433
+ done | \
434
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
435
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
436
+ test -z "$(CTAGS_ARGS)$$tags$$unique" \
437
+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
438
+ $$tags $$unique
439
+
440
+ GTAGS:
441
+ here=`$(am__cd) $(top_builddir) && pwd` \
442
+ && cd $(top_srcdir) \
443
+ && gtags -i $(GTAGS_ARGS) $$here
444
+
445
+ distclean-tags:
446
+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
447
+
448
+ distdir: $(DISTFILES)
449
+ $(am__remove_distdir)
450
+ test -d $(distdir) || mkdir $(distdir)
451
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
452
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
453
+ list='$(DISTFILES)'; \
454
+ dist_files=`for file in $$list; do echo $$file; done | \
455
+ sed -e "s|^$$srcdirstrip/||;t" \
456
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
457
+ case $$dist_files in \
458
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
459
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
460
+ sort -u` ;; \
461
+ esac; \
462
+ for file in $$dist_files; do \
463
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
464
+ if test -d $$d/$$file; then \
465
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
466
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
467
+ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
468
+ fi; \
469
+ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
470
+ else \
471
+ test -f $(distdir)/$$file \
472
+ || cp -p $$d/$$file $(distdir)/$$file \
473
+ || exit 1; \
474
+ fi; \
475
+ done
476
+ list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
477
+ if test "$$subdir" = .; then :; else \
478
+ test -d "$(distdir)/$$subdir" \
479
+ || $(MKDIR_P) "$(distdir)/$$subdir" \
480
+ || exit 1; \
481
+ distdir=`$(am__cd) $(distdir) && pwd`; \
482
+ top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
483
+ (cd $$subdir && \
484
+ $(MAKE) $(AM_MAKEFLAGS) \
485
+ top_distdir="$$top_distdir" \
486
+ distdir="$$distdir/$$subdir" \
487
+ am__remove_distdir=: \
488
+ am__skip_length_check=: \
489
+ distdir) \
490
+ || exit 1; \
491
+ fi; \
492
+ done
493
+ -find "$(distdir)" -type d ! -perm -755 \
494
+ -exec chmod u+rwx,go+rx {} \; -o \
495
+ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
496
+ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
497
+ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
498
+ || chmod -R a+r $(distdir)
499
+ dist-gzip: distdir
500
+ tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
501
+ $(am__remove_distdir)
502
+
503
+ dist-bzip2: distdir
504
+ tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
505
+ $(am__remove_distdir)
506
+
507
+ dist-lzma: distdir
508
+ tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
509
+ $(am__remove_distdir)
510
+
511
+ dist-tarZ: distdir
512
+ tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
513
+ $(am__remove_distdir)
514
+
515
+ dist-shar: distdir
516
+ shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
517
+ $(am__remove_distdir)
518
+
519
+ dist-zip: distdir
520
+ -rm -f $(distdir).zip
521
+ zip -rq $(distdir).zip $(distdir)
522
+ $(am__remove_distdir)
523
+
524
+ dist dist-all: distdir
525
+ tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
526
+ $(am__remove_distdir)
527
+
528
+ # This target untars the dist file and tries a VPATH configuration. Then
529
+ # it guarantees that the distribution is self-contained by making another
530
+ # tarfile.
531
+ distcheck: dist
532
+ case '$(DIST_ARCHIVES)' in \
533
+ *.tar.gz*) \
534
+ GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
535
+ *.tar.bz2*) \
536
+ bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
537
+ *.tar.lzma*) \
538
+ unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\
539
+ *.tar.Z*) \
540
+ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
541
+ *.shar.gz*) \
542
+ GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
543
+ *.zip*) \
544
+ unzip $(distdir).zip ;;\
545
+ esac
546
+ chmod -R a-w $(distdir); chmod a+w $(distdir)
547
+ mkdir $(distdir)/_build
548
+ mkdir $(distdir)/_inst
549
+ chmod a-w $(distdir)
550
+ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
551
+ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
552
+ && cd $(distdir)/_build \
553
+ && ../configure --srcdir=.. --prefix="$$dc_install_base" \
554
+ $(DISTCHECK_CONFIGURE_FLAGS) \
555
+ && $(MAKE) $(AM_MAKEFLAGS) \
556
+ && $(MAKE) $(AM_MAKEFLAGS) dvi \
557
+ && $(MAKE) $(AM_MAKEFLAGS) check \
558
+ && $(MAKE) $(AM_MAKEFLAGS) install \
559
+ && $(MAKE) $(AM_MAKEFLAGS) installcheck \
560
+ && $(MAKE) $(AM_MAKEFLAGS) uninstall \
561
+ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
562
+ distuninstallcheck \
563
+ && chmod -R a-w "$$dc_install_base" \
564
+ && ({ \
565
+ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
566
+ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
567
+ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
568
+ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
569
+ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
570
+ } || { rm -rf "$$dc_destdir"; exit 1; }) \
571
+ && rm -rf "$$dc_destdir" \
572
+ && $(MAKE) $(AM_MAKEFLAGS) dist \
573
+ && rm -rf $(DIST_ARCHIVES) \
574
+ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
575
+ $(am__remove_distdir)
576
+ @(echo "$(distdir) archives ready for distribution: "; \
577
+ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
578
+ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
579
+ distuninstallcheck:
580
+ @cd $(distuninstallcheck_dir) \
581
+ && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
582
+ || { echo "ERROR: files left after uninstall:" ; \
583
+ if test -n "$(DESTDIR)"; then \
584
+ echo " (check DESTDIR support)"; \
585
+ fi ; \
586
+ $(distuninstallcheck_listfiles) ; \
587
+ exit 1; } >&2
588
+ distcleancheck: distclean
589
+ @if test '$(srcdir)' = . ; then \
590
+ echo "ERROR: distcleancheck can only run from a VPATH build" ; \
591
+ exit 1 ; \
592
+ fi
593
+ @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
594
+ || { echo "ERROR: files left in build directory after distclean:" ; \
595
+ $(distcleancheck_listfiles) ; \
596
+ exit 1; } >&2
597
+ check-am: all-am
598
+ check: check-recursive
599
+ all-am: Makefile config.h
600
+ installdirs: installdirs-recursive
601
+ installdirs-am:
602
+ install: install-recursive
603
+ install-exec: install-exec-recursive
604
+ install-data: install-data-recursive
605
+ uninstall: uninstall-recursive
606
+
607
+ install-am: all-am
608
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
609
+
610
+ installcheck: installcheck-recursive
611
+ install-strip:
612
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
613
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
614
+ `test -z '$(STRIP)' || \
615
+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
616
+ mostlyclean-generic:
617
+
618
+ clean-generic:
619
+
620
+ distclean-generic:
621
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
622
+ -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
623
+
624
+ maintainer-clean-generic:
625
+ @echo "This command is intended for maintainers to use"
626
+ @echo "it deletes files that may require special tools to rebuild."
627
+ clean: clean-recursive
628
+
629
+ clean-am: clean-generic clean-libtool mostlyclean-am
630
+
631
+ distclean: distclean-recursive
632
+ -rm -f $(am__CONFIG_DISTCLEAN_FILES)
633
+ -rm -f Makefile
634
+ distclean-am: clean-am distclean-generic distclean-hdr \
635
+ distclean-libtool distclean-tags
636
+
637
+ dvi: dvi-recursive
638
+
639
+ dvi-am:
640
+
641
+ html: html-recursive
642
+
643
+ html-am:
644
+
645
+ info: info-recursive
646
+
647
+ info-am:
648
+
649
+ install-data-am:
650
+
651
+ install-dvi: install-dvi-recursive
652
+
653
+ install-dvi-am:
654
+
655
+ install-exec-am:
656
+
657
+ install-html: install-html-recursive
658
+
659
+ install-html-am:
660
+
661
+ install-info: install-info-recursive
662
+
663
+ install-info-am:
664
+
665
+ install-man:
666
+
667
+ install-pdf: install-pdf-recursive
668
+
669
+ install-pdf-am:
670
+
671
+ install-ps: install-ps-recursive
672
+
673
+ install-ps-am:
674
+
675
+ installcheck-am:
676
+
677
+ maintainer-clean: maintainer-clean-recursive
678
+ -rm -f $(am__CONFIG_DISTCLEAN_FILES)
679
+ -rm -rf $(top_srcdir)/autom4te.cache
680
+ -rm -f Makefile
681
+ maintainer-clean-am: distclean-am maintainer-clean-generic
682
+
683
+ mostlyclean: mostlyclean-recursive
684
+
685
+ mostlyclean-am: mostlyclean-generic mostlyclean-libtool
686
+
687
+ pdf: pdf-recursive
688
+
689
+ pdf-am:
690
+
691
+ ps: ps-recursive
692
+
693
+ ps-am:
694
+
695
+ uninstall-am:
696
+
697
+ .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
698
+ install-strip
699
+
700
+ .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
701
+ all all-am am--refresh check check-am clean clean-generic \
702
+ clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
703
+ dist-gzip dist-lzma dist-shar dist-tarZ dist-zip distcheck \
704
+ distclean distclean-generic distclean-hdr distclean-libtool \
705
+ distclean-tags distcleancheck distdir distuninstallcheck dvi \
706
+ dvi-am html html-am info info-am install install-am \
707
+ install-data install-data-am install-dvi install-dvi-am \
708
+ install-exec install-exec-am install-html install-html-am \
709
+ install-info install-info-am install-man install-pdf \
710
+ install-pdf-am install-ps install-ps-am install-strip \
711
+ installcheck installcheck-am installdirs installdirs-am \
712
+ maintainer-clean maintainer-clean-generic mostlyclean \
713
+ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
714
+ tags tags-recursive uninstall uninstall-am
715
+
716
+
717
+ # Export these so that we run the locally installed autotools when building
718
+ # from a bootstrapped SVN tree.
719
+ #export ACLOCAL AUTOCONF AUTOHEADER AUTOM4TE AUTOMAKE
720
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
721
+ # Otherwise a system limit (for SysV at least) may be exceeded.
722
+ .NOEXPORT: