nutcracker 0.2.4.4 → 0.2.4.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (293) hide show
  1. data/README.md +1 -1
  2. data/ext/nutcracker/ChangeLog +0 -0
  3. data/ext/nutcracker/LICENSE +0 -0
  4. data/ext/nutcracker/Makefile +643 -0
  5. data/ext/nutcracker/Makefile.am +0 -0
  6. data/ext/nutcracker/Makefile.in +82 -190
  7. data/ext/nutcracker/NOTICE +0 -0
  8. data/ext/nutcracker/README.md +0 -0
  9. data/ext/nutcracker/aclocal.m4 +122 -231
  10. data/ext/nutcracker/autom4te.cache/output.0 +18664 -0
  11. data/ext/nutcracker/autom4te.cache/output.1 +18664 -0
  12. data/ext/nutcracker/autom4te.cache/output.2 +18664 -0
  13. data/ext/nutcracker/autom4te.cache/requests +494 -0
  14. data/ext/nutcracker/autom4te.cache/traces.0 +2415 -0
  15. data/ext/nutcracker/autom4te.cache/traces.1 +945 -0
  16. data/ext/nutcracker/autom4te.cache/traces.2 +2415 -0
  17. data/ext/nutcracker/conf/nutcracker.leaf.yml +0 -0
  18. data/ext/nutcracker/conf/nutcracker.root.yml +0 -0
  19. data/ext/nutcracker/conf/nutcracker.yml +0 -0
  20. data/ext/nutcracker/config.h +332 -0
  21. data/ext/nutcracker/config.h.in +15 -0
  22. data/ext/nutcracker/config.log +2684 -0
  23. data/ext/nutcracker/config.status +2317 -0
  24. data/ext/nutcracker/config/config.guess +248 -278
  25. data/ext/nutcracker/config/config.sub +77 -234
  26. data/ext/nutcracker/config/depcomp +39 -143
  27. data/ext/nutcracker/config/install-sh +116 -136
  28. data/ext/nutcracker/config/ltmain.sh +788 -1704
  29. data/ext/nutcracker/config/missing +65 -29
  30. data/ext/nutcracker/configure +1068 -2014
  31. data/ext/nutcracker/configure.ac +34 -2
  32. data/ext/nutcracker/contrib/Makefile +494 -0
  33. data/ext/nutcracker/contrib/Makefile.am +0 -0
  34. data/ext/nutcracker/contrib/Makefile.in +47 -120
  35. data/ext/nutcracker/contrib/yaml-0.1.4.tar.gz +0 -0
  36. data/ext/nutcracker/contrib/yaml-0.1.4/Makefile +736 -0
  37. data/ext/nutcracker/contrib/yaml-0.1.4/autom4te.cache/output.0 +13102 -0
  38. data/ext/nutcracker/contrib/yaml-0.1.4/autom4te.cache/output.1 +13085 -0
  39. data/ext/nutcracker/contrib/yaml-0.1.4/autom4te.cache/output.2 +13085 -0
  40. data/ext/nutcracker/contrib/yaml-0.1.4/autom4te.cache/requests +476 -0
  41. data/ext/nutcracker/contrib/yaml-0.1.4/autom4te.cache/traces.0 +2339 -0
  42. data/ext/nutcracker/contrib/yaml-0.1.4/autom4te.cache/traces.1 +545 -0
  43. data/ext/nutcracker/contrib/yaml-0.1.4/autom4te.cache/traces.2 +2339 -0
  44. data/ext/nutcracker/contrib/yaml-0.1.4/config.h +81 -0
  45. data/ext/nutcracker/contrib/yaml-0.1.4/config.h.in~ +80 -0
  46. data/ext/nutcracker/contrib/yaml-0.1.4/config.log +688 -0
  47. data/ext/nutcracker/contrib/yaml-0.1.4/config.status +2032 -0
  48. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/annotated.html +51 -0
  49. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/bc_s.png +0 -0
  50. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/classes.html +41 -0
  51. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/closed.png +0 -0
  52. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/doxygen.css +656 -0
  53. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/doxygen.png +0 -0
  54. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/files.html +40 -0
  55. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions.html +91 -0
  56. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x62.html +84 -0
  57. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x63.html +87 -0
  58. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x64.html +83 -0
  59. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x65.html +110 -0
  60. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x66.html +79 -0
  61. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x68.html +80 -0
  62. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x69.html +92 -0
  63. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x6b.html +71 -0
  64. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x6c.html +88 -0
  65. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x6d.html +96 -0
  66. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x6e.html +71 -0
  67. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x6f.html +80 -0
  68. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x70.html +100 -0
  69. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x71.html +71 -0
  70. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x72.html +87 -0
  71. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x73.html +163 -0
  72. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x74.html +115 -0
  73. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x75.html +71 -0
  74. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x76.html +80 -0
  75. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x77.html +77 -0
  76. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars.html +91 -0
  77. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x62.html +84 -0
  78. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x63.html +87 -0
  79. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x64.html +83 -0
  80. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x65.html +110 -0
  81. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x66.html +79 -0
  82. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x68.html +80 -0
  83. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x69.html +92 -0
  84. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x6b.html +71 -0
  85. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x6c.html +88 -0
  86. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x6d.html +96 -0
  87. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x6e.html +71 -0
  88. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x6f.html +80 -0
  89. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x70.html +100 -0
  90. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x71.html +71 -0
  91. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x72.html +87 -0
  92. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x73.html +163 -0
  93. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x74.html +115 -0
  94. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x75.html +71 -0
  95. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x76.html +80 -0
  96. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x77.html +77 -0
  97. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/globals.html +667 -0
  98. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/globals_defs.html +81 -0
  99. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/globals_enum.html +78 -0
  100. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/globals_eval.html +373 -0
  101. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/globals_func.html +196 -0
  102. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/globals_type.html +126 -0
  103. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/group__basic.html +320 -0
  104. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/group__emitter.html +819 -0
  105. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/group__events.html +664 -0
  106. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/group__export.html +60 -0
  107. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/group__nodes.html +795 -0
  108. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/group__parser.html +606 -0
  109. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/group__styles.html +222 -0
  110. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/group__tokens.html +246 -0
  111. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/group__version.html +106 -0
  112. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/index.html +31 -0
  113. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/modules.html +42 -0
  114. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/nav_f.png +0 -0
  115. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/nav_h.png +0 -0
  116. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/open.png +0 -0
  117. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__alias__data__s.html +108 -0
  118. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__document__s.html +235 -0
  119. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__emitter__s.html +1300 -0
  120. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__event__s.html +496 -0
  121. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__mark__s.html +108 -0
  122. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__node__pair__s.html +91 -0
  123. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__node__s.html +420 -0
  124. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__parser__s.html +1229 -0
  125. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__simple__key__s.html +97 -0
  126. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__tag__directive__s.html +91 -0
  127. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__token__s.html +413 -0
  128. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__version__directive__s.html +91 -0
  129. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/tab_a.png +0 -0
  130. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/tab_b.png +0 -0
  131. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/tab_h.png +0 -0
  132. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/tab_s.png +0 -0
  133. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/tabs.css +59 -0
  134. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/yaml_8h.html +525 -0
  135. data/ext/nutcracker/contrib/yaml-0.1.4/include/Makefile.am +17 -0
  136. data/ext/nutcracker/contrib/yaml-0.1.4/include/Makefile.in +470 -0
  137. data/ext/nutcracker/contrib/yaml-0.1.4/libtool +8890 -0
  138. data/ext/nutcracker/contrib/yaml-0.1.4/src/Makefile +484 -0
  139. data/ext/nutcracker/contrib/yaml-0.1.4/src/api.lo +12 -0
  140. data/ext/nutcracker/contrib/yaml-0.1.4/src/api.o +0 -0
  141. data/ext/nutcracker/contrib/yaml-0.1.4/src/dumper.lo +12 -0
  142. data/ext/nutcracker/contrib/yaml-0.1.4/src/dumper.o +0 -0
  143. data/ext/nutcracker/contrib/yaml-0.1.4/src/emitter.lo +12 -0
  144. data/ext/nutcracker/contrib/yaml-0.1.4/src/emitter.o +0 -0
  145. data/ext/nutcracker/contrib/yaml-0.1.4/src/libyaml.la +41 -0
  146. data/ext/nutcracker/contrib/yaml-0.1.4/src/loader.lo +12 -0
  147. data/ext/nutcracker/contrib/yaml-0.1.4/src/loader.o +0 -0
  148. data/ext/nutcracker/contrib/yaml-0.1.4/src/parser.lo +12 -0
  149. data/ext/nutcracker/contrib/yaml-0.1.4/src/parser.o +0 -0
  150. data/ext/nutcracker/contrib/yaml-0.1.4/src/reader.lo +12 -0
  151. data/ext/nutcracker/contrib/yaml-0.1.4/src/reader.o +0 -0
  152. data/ext/nutcracker/contrib/yaml-0.1.4/src/scanner.lo +12 -0
  153. data/ext/nutcracker/contrib/yaml-0.1.4/src/scanner.o +0 -0
  154. data/ext/nutcracker/contrib/yaml-0.1.4/src/writer.lo +12 -0
  155. data/ext/nutcracker/contrib/yaml-0.1.4/src/writer.o +0 -0
  156. data/ext/nutcracker/contrib/yaml-0.1.4/stamp-h1 +1 -0
  157. data/ext/nutcracker/contrib/yaml-0.1.4/tests/Makefile +675 -0
  158. data/ext/nutcracker/contrib/yaml-0.1.4/tests/example-deconstructor +0 -0
  159. data/ext/nutcracker/contrib/yaml-0.1.4/tests/example-deconstructor-alt +0 -0
  160. data/ext/nutcracker/contrib/yaml-0.1.4/tests/example-deconstructor-alt.o +0 -0
  161. data/ext/nutcracker/contrib/yaml-0.1.4/tests/example-deconstructor.o +0 -0
  162. data/ext/nutcracker/contrib/yaml-0.1.4/tests/example-reformatter +0 -0
  163. data/ext/nutcracker/contrib/yaml-0.1.4/tests/example-reformatter-alt +0 -0
  164. data/ext/nutcracker/contrib/yaml-0.1.4/tests/example-reformatter-alt.o +0 -0
  165. data/ext/nutcracker/contrib/yaml-0.1.4/tests/example-reformatter.o +0 -0
  166. data/ext/nutcracker/contrib/yaml-0.1.4/tests/run-dumper +0 -0
  167. data/ext/nutcracker/contrib/yaml-0.1.4/tests/run-dumper.o +0 -0
  168. data/ext/nutcracker/contrib/yaml-0.1.4/tests/run-emitter +0 -0
  169. data/ext/nutcracker/contrib/yaml-0.1.4/tests/run-emitter.o +0 -0
  170. data/ext/nutcracker/contrib/yaml-0.1.4/tests/run-loader +0 -0
  171. data/ext/nutcracker/contrib/yaml-0.1.4/tests/run-loader.o +0 -0
  172. data/ext/nutcracker/contrib/yaml-0.1.4/tests/run-parser +0 -0
  173. data/ext/nutcracker/contrib/yaml-0.1.4/tests/run-parser.o +0 -0
  174. data/ext/nutcracker/contrib/yaml-0.1.4/tests/run-scanner +0 -0
  175. data/ext/nutcracker/contrib/yaml-0.1.4/tests/run-scanner.o +0 -0
  176. data/ext/nutcracker/contrib/yaml-0.1.4/yaml-0.1.pc +10 -0
  177. data/ext/nutcracker/contrib/yaml-0.1.4/yaml-0.1.pc.in +10 -0
  178. data/ext/nutcracker/exconf.rb +0 -0
  179. data/ext/nutcracker/extconf.rb +2 -5
  180. data/ext/nutcracker/libtool +9403 -0
  181. data/ext/nutcracker/m4/libtool.m4 +396 -960
  182. data/ext/nutcracker/m4/ltoptions.m4 +2 -17
  183. data/ext/nutcracker/m4/ltversion.m4 +6 -6
  184. data/ext/nutcracker/notes/c-styleguide.txt +0 -0
  185. data/ext/nutcracker/notes/debug.txt +0 -0
  186. data/ext/nutcracker/notes/memcache.txt +0 -0
  187. data/ext/nutcracker/notes/recommendation.md +0 -0
  188. data/ext/nutcracker/notes/redis.md +0 -0
  189. data/ext/nutcracker/notes/socket.txt +0 -0
  190. data/ext/nutcracker/scripts/nutcracker.init +0 -0
  191. data/ext/nutcracker/scripts/nutcracker.spec +0 -0
  192. data/ext/nutcracker/scripts/redis-check.py +0 -0
  193. data/ext/nutcracker/src/Makefile +647 -0
  194. data/ext/nutcracker/src/Makefile.am +1 -1
  195. data/ext/nutcracker/src/Makefile.in +81 -167
  196. data/ext/nutcracker/src/hashkit/Makefile +476 -0
  197. data/ext/nutcracker/src/hashkit/Makefile.am +0 -0
  198. data/ext/nutcracker/src/hashkit/Makefile.in +37 -72
  199. data/ext/nutcracker/src/hashkit/libhashkit.a +0 -0
  200. data/ext/nutcracker/src/hashkit/nc_crc16.c +0 -0
  201. data/ext/nutcracker/src/hashkit/nc_crc16.o +0 -0
  202. data/ext/nutcracker/src/hashkit/nc_crc32.c +0 -0
  203. data/ext/nutcracker/src/hashkit/nc_crc32.o +0 -0
  204. data/ext/nutcracker/src/hashkit/nc_fnv.c +0 -0
  205. data/ext/nutcracker/src/hashkit/nc_fnv.o +0 -0
  206. data/ext/nutcracker/src/hashkit/nc_hashkit.h +0 -0
  207. data/ext/nutcracker/src/hashkit/nc_hsieh.c +0 -0
  208. data/ext/nutcracker/src/hashkit/nc_hsieh.o +0 -0
  209. data/ext/nutcracker/src/hashkit/nc_jenkins.c +0 -0
  210. data/ext/nutcracker/src/hashkit/nc_jenkins.o +0 -0
  211. data/ext/nutcracker/src/hashkit/nc_ketama.c +0 -0
  212. data/ext/nutcracker/src/hashkit/nc_ketama.o +0 -0
  213. data/ext/nutcracker/src/hashkit/nc_md5.c +0 -0
  214. data/ext/nutcracker/src/hashkit/nc_md5.o +0 -0
  215. data/ext/nutcracker/src/hashkit/nc_modula.c +0 -0
  216. data/ext/nutcracker/src/hashkit/nc_modula.o +0 -0
  217. data/ext/nutcracker/src/hashkit/nc_murmur.c +0 -0
  218. data/ext/nutcracker/src/hashkit/nc_murmur.o +0 -0
  219. data/ext/nutcracker/src/hashkit/nc_one_at_a_time.c +0 -0
  220. data/ext/nutcracker/src/hashkit/nc_one_at_a_time.o +0 -0
  221. data/ext/nutcracker/src/hashkit/nc_random.c +0 -0
  222. data/ext/nutcracker/src/hashkit/nc_random.o +0 -0
  223. data/ext/nutcracker/src/nc.c +0 -0
  224. data/ext/nutcracker/src/nc.o +0 -0
  225. data/ext/nutcracker/src/nc_array.c +0 -0
  226. data/ext/nutcracker/src/nc_array.h +0 -0
  227. data/ext/nutcracker/src/nc_array.o +0 -0
  228. data/ext/nutcracker/src/nc_client.c +0 -0
  229. data/ext/nutcracker/src/nc_client.h +0 -0
  230. data/ext/nutcracker/src/nc_client.o +0 -0
  231. data/ext/nutcracker/src/nc_conf.c +0 -0
  232. data/ext/nutcracker/src/nc_conf.h +0 -0
  233. data/ext/nutcracker/src/nc_conf.o +0 -0
  234. data/ext/nutcracker/src/nc_connection.c +0 -0
  235. data/ext/nutcracker/src/nc_connection.h +0 -0
  236. data/ext/nutcracker/src/nc_connection.o +0 -0
  237. data/ext/nutcracker/src/nc_core.c +29 -26
  238. data/ext/nutcracker/src/nc_core.h +13 -5
  239. data/ext/nutcracker/src/nc_core.o +0 -0
  240. data/ext/nutcracker/src/{nc_event.c → nc_epoll.c} +94 -30
  241. data/ext/nutcracker/src/nc_epoll.o +0 -0
  242. data/ext/nutcracker/src/nc_event.h +33 -13
  243. data/ext/nutcracker/src/nc_kqueue.c +296 -0
  244. data/ext/nutcracker/src/nc_kqueue.o +0 -0
  245. data/ext/nutcracker/src/nc_log.c +0 -0
  246. data/ext/nutcracker/src/nc_log.h +0 -0
  247. data/ext/nutcracker/src/nc_log.o +0 -0
  248. data/ext/nutcracker/src/nc_mbuf.c +0 -0
  249. data/ext/nutcracker/src/nc_mbuf.h +0 -0
  250. data/ext/nutcracker/src/nc_mbuf.o +0 -0
  251. data/ext/nutcracker/src/nc_message.c +0 -0
  252. data/ext/nutcracker/src/nc_message.h +0 -0
  253. data/ext/nutcracker/src/nc_message.o +0 -0
  254. data/ext/nutcracker/src/nc_proxy.c +8 -8
  255. data/ext/nutcracker/src/nc_proxy.h +0 -0
  256. data/ext/nutcracker/src/nc_proxy.o +0 -0
  257. data/ext/nutcracker/src/nc_queue.h +0 -0
  258. data/ext/nutcracker/src/nc_rbtree.c +0 -0
  259. data/ext/nutcracker/src/nc_rbtree.h +0 -0
  260. data/ext/nutcracker/src/nc_rbtree.o +0 -0
  261. data/ext/nutcracker/src/nc_request.c +3 -3
  262. data/ext/nutcracker/src/nc_request.o +0 -0
  263. data/ext/nutcracker/src/nc_response.c +4 -6
  264. data/ext/nutcracker/src/nc_response.o +0 -0
  265. data/ext/nutcracker/src/nc_server.c +5 -5
  266. data/ext/nutcracker/src/nc_server.h +0 -0
  267. data/ext/nutcracker/src/nc_server.o +0 -0
  268. data/ext/nutcracker/src/nc_signal.c +0 -0
  269. data/ext/nutcracker/src/nc_signal.h +0 -0
  270. data/ext/nutcracker/src/nc_signal.o +0 -0
  271. data/ext/nutcracker/src/nc_stats.c +16 -21
  272. data/ext/nutcracker/src/nc_stats.h +3 -4
  273. data/ext/nutcracker/src/nc_stats.o +0 -0
  274. data/ext/nutcracker/src/nc_string.c +0 -0
  275. data/ext/nutcracker/src/nc_string.h +0 -0
  276. data/ext/nutcracker/src/nc_string.o +0 -0
  277. data/ext/nutcracker/src/nc_util.c +16 -0
  278. data/ext/nutcracker/src/nc_util.h +1 -0
  279. data/ext/nutcracker/src/nc_util.o +0 -0
  280. data/ext/nutcracker/src/nutcracker +0 -0
  281. data/ext/nutcracker/src/proto/Makefile +454 -0
  282. data/ext/nutcracker/src/proto/Makefile.am +0 -0
  283. data/ext/nutcracker/src/proto/Makefile.in +37 -72
  284. data/ext/nutcracker/src/proto/libproto.a +0 -0
  285. data/ext/nutcracker/src/proto/nc_memcache.c +0 -0
  286. data/ext/nutcracker/src/proto/nc_memcache.o +0 -0
  287. data/ext/nutcracker/src/proto/nc_proto.h +0 -0
  288. data/ext/nutcracker/src/proto/nc_redis.c +0 -0
  289. data/ext/nutcracker/src/proto/nc_redis.o +0 -0
  290. data/ext/nutcracker/stamp-h1 +1 -0
  291. data/lib/nutcracker.rb +95 -4
  292. data/lib/nutcracker/version.rb +1 -1
  293. metadata +217 -4
@@ -1,8 +1,8 @@
1
1
  # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
2
2
  #
3
3
  # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
4
- # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5
- # Foundation, Inc.
4
+ # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
5
+ # Inc.
6
6
  # Written by Gordon Matzigkeit, 1996
7
7
  #
8
8
  # This file is free software; the Free Software Foundation gives
@@ -11,8 +11,8 @@
11
11
 
12
12
  m4_define([_LT_COPYING], [dnl
13
13
  # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14
- # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15
- # Foundation, Inc.
14
+ # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
15
+ # Inc.
16
16
  # Written by Gordon Matzigkeit, 1996
17
17
  #
18
18
  # This file is part of GNU Libtool.
@@ -146,8 +146,6 @@ AC_REQUIRE([AC_CANONICAL_BUILD])dnl
146
146
  AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
147
147
  AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
148
148
 
149
- _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
150
- dnl
151
149
  _LT_DECL([], [host_alias], [0], [The host system])dnl
152
150
  _LT_DECL([], [host], [0])dnl
153
151
  _LT_DECL([], [host_os], [0])dnl
@@ -170,13 +168,10 @@ _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
170
168
  dnl
171
169
  m4_require([_LT_FILEUTILS_DEFAULTS])dnl
172
170
  m4_require([_LT_CHECK_SHELL_FEATURES])dnl
173
- m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
174
171
  m4_require([_LT_CMD_RELOAD])dnl
175
172
  m4_require([_LT_CHECK_MAGIC_METHOD])dnl
176
- m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
177
173
  m4_require([_LT_CMD_OLD_ARCHIVE])dnl
178
174
  m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
179
- m4_require([_LT_WITH_SYSROOT])dnl
180
175
 
181
176
  _LT_CONFIG_LIBTOOL_INIT([
182
177
  # See if we are running on zsh, and set the options which allow our
@@ -639,7 +634,7 @@ m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
639
634
  m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
640
635
  configured by $[0], generated by m4_PACKAGE_STRING.
641
636
 
642
- Copyright (C) 2011 Free Software Foundation, Inc.
637
+ Copyright (C) 2010 Free Software Foundation, Inc.
643
638
  This config.lt script is free software; the Free Software Foundation
644
639
  gives unlimited permision to copy, distribute and modify it."
645
640
 
@@ -712,8 +707,8 @@ _LT_CONFIG_SAVE_COMMANDS([
712
707
  fi
713
708
 
714
709
  cfgfile="${ofile}T"
715
- trap "$RM \"$cfgfile\"; exit 1" 1 2 15
716
- $RM "$cfgfile"
710
+ trap "$RM -f \"$cfgfile\"; exit 1" 1 2 15
711
+ $RM -f "$cfgfile"
717
712
 
718
713
  cat <<_LT_EOF >> "$cfgfile"
719
714
  #! $SHELL
@@ -753,12 +748,15 @@ _LT_EOF
753
748
  # if finds mixed CR/LF and LF-only lines. Since sed operates in
754
749
  # text mode, it properly converts lines to CR/LF. This bash problem
755
750
  # is reportedly fixed, but why not run on old versions too?
756
- sed '$q' "$ltmain" >> "$cfgfile" \
757
- || (rm -f "$cfgfile"; exit 1)
751
+ sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
752
+ || (rm -f "$cfgfile"; exit 1)
753
+
754
+ _LT_PROG_XSI_SHELLFNS
758
755
 
759
- _LT_PROG_REPLACE_SHELLFNS
756
+ sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
757
+ || (rm -f "$cfgfile"; exit 1)
760
758
 
761
- mv -f "$cfgfile" "$ofile" ||
759
+ mv -f "$cfgfile" "$ofile" ||
762
760
  (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
763
761
  chmod +x "$ofile"
764
762
  ],
@@ -803,7 +801,6 @@ AC_DEFUN([LT_LANG],
803
801
  m4_case([$1],
804
802
  [C], [_LT_LANG(C)],
805
803
  [C++], [_LT_LANG(CXX)],
806
- [Go], [_LT_LANG(GO)],
807
804
  [Java], [_LT_LANG(GCJ)],
808
805
  [Fortran 77], [_LT_LANG(F77)],
809
806
  [Fortran], [_LT_LANG(FC)],
@@ -825,31 +822,6 @@ m4_defun([_LT_LANG],
825
822
  ])# _LT_LANG
826
823
 
827
824
 
828
- m4_ifndef([AC_PROG_GO], [
829
- ############################################################
830
- # NOTE: This macro has been submitted for inclusion into #
831
- # GNU Autoconf as AC_PROG_GO. When it is available in #
832
- # a released version of Autoconf we should remove this #
833
- # macro and use it instead. #
834
- ############################################################
835
- m4_defun([AC_PROG_GO],
836
- [AC_LANG_PUSH(Go)dnl
837
- AC_ARG_VAR([GOC], [Go compiler command])dnl
838
- AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
839
- _AC_ARG_VAR_LDFLAGS()dnl
840
- AC_CHECK_TOOL(GOC, gccgo)
841
- if test -z "$GOC"; then
842
- if test -n "$ac_tool_prefix"; then
843
- AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
844
- fi
845
- fi
846
- if test -z "$GOC"; then
847
- AC_CHECK_PROG(GOC, gccgo, gccgo, false)
848
- fi
849
- ])#m4_defun
850
- ])#m4_ifndef
851
-
852
-
853
825
  # _LT_LANG_DEFAULT_CONFIG
854
826
  # -----------------------
855
827
  m4_defun([_LT_LANG_DEFAULT_CONFIG],
@@ -880,10 +852,6 @@ AC_PROVIDE_IFELSE([AC_PROG_GCJ],
880
852
  m4_ifdef([LT_PROG_GCJ],
881
853
  [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
882
854
 
883
- AC_PROVIDE_IFELSE([AC_PROG_GO],
884
- [LT_LANG(GO)],
885
- [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
886
-
887
855
  AC_PROVIDE_IFELSE([LT_PROG_RC],
888
856
  [LT_LANG(RC)],
889
857
  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
@@ -934,7 +902,7 @@ ac_outfile=conftest.$ac_objext
934
902
  echo "$lt_simple_compile_test_code" >conftest.$ac_ext
935
903
  eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
936
904
  _lt_compiler_boilerplate=`cat conftest.err`
937
- $RM conftest*
905
+ $RM -r conftest*
938
906
  ])# _LT_COMPILER_BOILERPLATE
939
907
 
940
908
 
@@ -986,13 +954,7 @@ m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
986
954
  $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
987
955
  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
988
956
  _lt_result=$?
989
- # If there is a non-empty error log, and "single_module"
990
- # appears in it, assume the flag caused a linker warning
991
- if test -s conftest.err && $GREP single_module conftest.err; then
992
- cat conftest.err >&AS_MESSAGE_LOG_FD
993
- # Otherwise, if the output was created with a 0 exit code from
994
- # the compiler, it worked.
995
- elif test -f libconftest.dylib && test $_lt_result -eq 0; then
957
+ if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
996
958
  lt_cv_apple_cc_single_mod=yes
997
959
  else
998
960
  cat conftest.err >&AS_MESSAGE_LOG_FD
@@ -1000,7 +962,6 @@ m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
1000
962
  rm -rf libconftest.dylib*
1001
963
  rm -f conftest.*
1002
964
  fi])
1003
-
1004
965
  AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1005
966
  [lt_cv_ld_exported_symbols_list],
1006
967
  [lt_cv_ld_exported_symbols_list=no
@@ -1012,7 +973,6 @@ m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
1012
973
  [lt_cv_ld_exported_symbols_list=no])
1013
974
  LDFLAGS="$save_LDFLAGS"
1014
975
  ])
1015
-
1016
976
  AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
1017
977
  [lt_cv_ld_force_load=no
1018
978
  cat > conftest.c << _LT_EOF
@@ -1030,9 +990,7 @@ _LT_EOF
1030
990
  echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
1031
991
  $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
1032
992
  _lt_result=$?
1033
- if test -s conftest.err && $GREP force_load conftest.err; then
1034
- cat conftest.err >&AS_MESSAGE_LOG_FD
1035
- elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
993
+ if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
1036
994
  lt_cv_ld_force_load=yes
1037
995
  else
1038
996
  cat conftest.err >&AS_MESSAGE_LOG_FD
@@ -1077,8 +1035,8 @@ _LT_EOF
1077
1035
  ])
1078
1036
 
1079
1037
 
1080
- # _LT_DARWIN_LINKER_FEATURES([TAG])
1081
- # ---------------------------------
1038
+ # _LT_DARWIN_LINKER_FEATURES
1039
+ # --------------------------
1082
1040
  # Checks for linker and compiler features on darwin
1083
1041
  m4_defun([_LT_DARWIN_LINKER_FEATURES],
1084
1042
  [
@@ -1089,8 +1047,6 @@ m4_defun([_LT_DARWIN_LINKER_FEATURES],
1089
1047
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1090
1048
  if test "$lt_cv_ld_force_load" = "yes"; then
1091
1049
  _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
1092
- m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
1093
- [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
1094
1050
  else
1095
1051
  _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1096
1052
  fi
@@ -1117,41 +1073,30 @@ m4_defun([_LT_DARWIN_LINKER_FEATURES],
1117
1073
  fi
1118
1074
  ])
1119
1075
 
1120
- # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
1121
- # ----------------------------------
1076
+ # _LT_SYS_MODULE_PATH_AIX
1077
+ # -----------------------
1122
1078
  # Links a minimal program and checks the executable
1123
1079
  # for the system default hardcoded library path. In most cases,
1124
1080
  # this is /usr/lib:/lib, but when the MPI compilers are used
1125
1081
  # the location of the communication and MPI libs are included too.
1126
1082
  # If we don't find anything, use the default library path according
1127
1083
  # to the aix ld manual.
1128
- # Store the results from the different compilers for each TAGNAME.
1129
- # Allow to override them for all tags through lt_cv_aix_libpath.
1130
1084
  m4_defun([_LT_SYS_MODULE_PATH_AIX],
1131
1085
  [m4_require([_LT_DECL_SED])dnl
1132
- if test "${lt_cv_aix_libpath+set}" = set; then
1133
- aix_libpath=$lt_cv_aix_libpath
1134
- else
1135
- AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
1136
- [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
1137
- lt_aix_libpath_sed='[
1138
- /Import File Strings/,/^$/ {
1139
- /^0/ {
1140
- s/^0 *\([^ ]*\) *$/\1/
1141
- p
1142
- }
1143
- }]'
1144
- _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1145
- # Check for a 64-bit object if we didn't find anything.
1146
- if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1147
- _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1148
- fi],[])
1149
- if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1150
- _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
1151
- fi
1152
- ])
1153
- aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
1154
- fi
1086
+ AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1087
+ lt_aix_libpath_sed='
1088
+ /Import File Strings/,/^$/ {
1089
+ /^0/ {
1090
+ s/^0 *\(.*\)$/\1/
1091
+ p
1092
+ }
1093
+ }'
1094
+ aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1095
+ # Check for a 64-bit object if we didn't find anything.
1096
+ if test -z "$aix_libpath"; then
1097
+ aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1098
+ fi],[])
1099
+ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1155
1100
  ])# _LT_SYS_MODULE_PATH_AIX
1156
1101
 
1157
1102
 
@@ -1176,7 +1121,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1176
1121
 
1177
1122
  AC_MSG_CHECKING([how to print strings])
1178
1123
  # Test print first, because it will be a builtin if present.
1179
- if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1124
+ if test "X`print -r -- -n 2>/dev/null`" = X-n && \
1180
1125
  test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1181
1126
  ECHO='print -r --'
1182
1127
  elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
@@ -1220,39 +1165,6 @@ _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1220
1165
  ])# _LT_PROG_ECHO_BACKSLASH
1221
1166
 
1222
1167
 
1223
- # _LT_WITH_SYSROOT
1224
- # ----------------
1225
- AC_DEFUN([_LT_WITH_SYSROOT],
1226
- [AC_MSG_CHECKING([for sysroot])
1227
- AC_ARG_WITH([sysroot],
1228
- [ --with-sysroot[=DIR] Search for dependent libraries within DIR
1229
- (or the compiler's sysroot if not specified).],
1230
- [], [with_sysroot=no])
1231
-
1232
- dnl lt_sysroot will always be passed unquoted. We quote it here
1233
- dnl in case the user passed a directory name.
1234
- lt_sysroot=
1235
- case ${with_sysroot} in #(
1236
- yes)
1237
- if test "$GCC" = yes; then
1238
- lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1239
- fi
1240
- ;; #(
1241
- /*)
1242
- lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1243
- ;; #(
1244
- no|'')
1245
- ;; #(
1246
- *)
1247
- AC_MSG_RESULT([${with_sysroot}])
1248
- AC_MSG_ERROR([The sysroot must be an absolute path.])
1249
- ;;
1250
- esac
1251
-
1252
- AC_MSG_RESULT([${lt_sysroot:-no}])
1253
- _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1254
- [dependent libraries, and in which our libraries should be installed.])])
1255
-
1256
1168
  # _LT_ENABLE_LOCK
1257
1169
  # ---------------
1258
1170
  m4_defun([_LT_ENABLE_LOCK],
@@ -1374,27 +1286,14 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1374
1286
  CFLAGS="$SAVE_CFLAGS"
1375
1287
  fi
1376
1288
  ;;
1377
- *-*solaris*)
1289
+ sparc*-*solaris*)
1378
1290
  # Find out which ABI we are using.
1379
1291
  echo 'int i;' > conftest.$ac_ext
1380
1292
  if AC_TRY_EVAL(ac_compile); then
1381
1293
  case `/usr/bin/file conftest.o` in
1382
1294
  *64-bit*)
1383
1295
  case $lt_cv_prog_gnu_ld in
1384
- yes*)
1385
- case $host in
1386
- i?86-*-solaris*)
1387
- LD="${LD-ld} -m elf_x86_64"
1388
- ;;
1389
- sparc*-*-solaris*)
1390
- LD="${LD-ld} -m elf64_sparc"
1391
- ;;
1392
- esac
1393
- # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
1394
- if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
1395
- LD="${LD-ld}_sol2"
1396
- fi
1397
- ;;
1296
+ yes*) LD="${LD-ld} -m elf64_sparc" ;;
1398
1297
  *)
1399
1298
  if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1400
1299
  LD="${LD-ld} -64"
@@ -1412,47 +1311,14 @@ need_locks="$enable_libtool_lock"
1412
1311
  ])# _LT_ENABLE_LOCK
1413
1312
 
1414
1313
 
1415
- # _LT_PROG_AR
1416
- # -----------
1417
- m4_defun([_LT_PROG_AR],
1418
- [AC_CHECK_TOOLS(AR, [ar], false)
1419
- : ${AR=ar}
1420
- : ${AR_FLAGS=cru}
1421
- _LT_DECL([], [AR], [1], [The archiver])
1422
- _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
1423
-
1424
- AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
1425
- [lt_cv_ar_at_file=no
1426
- AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
1427
- [echo conftest.$ac_objext > conftest.lst
1428
- lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
1429
- AC_TRY_EVAL([lt_ar_try])
1430
- if test "$ac_status" -eq 0; then
1431
- # Ensure the archiver fails upon bogus file names.
1432
- rm -f conftest.$ac_objext libconftest.a
1433
- AC_TRY_EVAL([lt_ar_try])
1434
- if test "$ac_status" -ne 0; then
1435
- lt_cv_ar_at_file=@
1436
- fi
1437
- fi
1438
- rm -f conftest.* libconftest.a
1439
- ])
1440
- ])
1441
-
1442
- if test "x$lt_cv_ar_at_file" = xno; then
1443
- archiver_list_spec=
1444
- else
1445
- archiver_list_spec=$lt_cv_ar_at_file
1446
- fi
1447
- _LT_DECL([], [archiver_list_spec], [1],
1448
- [How to feed a file listing to the archiver])
1449
- ])# _LT_PROG_AR
1450
-
1451
-
1452
1314
  # _LT_CMD_OLD_ARCHIVE
1453
1315
  # -------------------
1454
1316
  m4_defun([_LT_CMD_OLD_ARCHIVE],
1455
- [_LT_PROG_AR
1317
+ [AC_CHECK_TOOL(AR, ar, false)
1318
+ test -z "$AR" && AR=ar
1319
+ test -z "$AR_FLAGS" && AR_FLAGS=cru
1320
+ _LT_DECL([], [AR], [1], [The archiver])
1321
+ _LT_DECL([], [AR_FLAGS], [1])
1456
1322
 
1457
1323
  AC_CHECK_TOOL(STRIP, strip, :)
1458
1324
  test -z "$STRIP" && STRIP=:
@@ -1471,13 +1337,13 @@ old_postuninstall_cmds=
1471
1337
  if test -n "$RANLIB"; then
1472
1338
  case $host_os in
1473
1339
  openbsd*)
1474
- old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1340
+ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1475
1341
  ;;
1476
1342
  *)
1477
- old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1343
+ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1478
1344
  ;;
1479
1345
  esac
1480
- old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
1346
+ old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1481
1347
  fi
1482
1348
 
1483
1349
  case $host_os in
@@ -1530,7 +1396,7 @@ AC_CACHE_CHECK([$1], [$2],
1530
1396
  $2=yes
1531
1397
  fi
1532
1398
  fi
1533
- $RM conftest*
1399
+ $RM -r conftest*
1534
1400
  ])
1535
1401
 
1536
1402
  if test x"[$]$2" = xyes; then
@@ -1657,11 +1523,6 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1657
1523
  lt_cv_sys_max_cmd_len=196608
1658
1524
  ;;
1659
1525
 
1660
- os2*)
1661
- # The test takes a long time on OS/2.
1662
- lt_cv_sys_max_cmd_len=8192
1663
- ;;
1664
-
1665
1526
  osf*)
1666
1527
  # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1667
1528
  # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
@@ -1701,7 +1562,7 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1701
1562
  # If test is not a shell built-in, we'll probably end up computing a
1702
1563
  # maximum length that is only half of the actual maximum length, but
1703
1564
  # we can't tell.
1704
- while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
1565
+ while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
1705
1566
  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
1706
1567
  test $i != 17 # 1/2 MB should be enough
1707
1568
  do
@@ -1797,10 +1658,10 @@ else
1797
1658
  /* When -fvisbility=hidden is used, assume the code has been annotated
1798
1659
  correspondingly for the symbols needed. */
1799
1660
  #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1800
- int fnord () __attribute__((visibility("default")));
1661
+ void fnord () __attribute__((visibility("default")));
1801
1662
  #endif
1802
1663
 
1803
- int fnord () { return 42; }
1664
+ void fnord () { int i=42; }
1804
1665
  int main ()
1805
1666
  {
1806
1667
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
@@ -2005,14 +1866,14 @@ AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2005
1866
  fi
2006
1867
  fi
2007
1868
  chmod u+w . 2>&AS_MESSAGE_LOG_FD
2008
- $RM conftest*
1869
+ $RM -r conftest*
2009
1870
  # SGI C++ compiler will create directory out/ii_files/ for
2010
1871
  # template instantiation
2011
1872
  test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
2012
1873
  $RM out/* && rmdir out
2013
1874
  cd ..
2014
1875
  $RM -r conftest
2015
- $RM conftest*
1876
+ $RM -r conftest*
2016
1877
  ])
2017
1878
  _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
2018
1879
  [Does compiler simultaneously support -c and -o options?])
@@ -2032,7 +1893,7 @@ if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" !=
2032
1893
  # do not overwrite the value of need_locks provided by the user
2033
1894
  AC_MSG_CHECKING([if we can lock with hard links])
2034
1895
  hard_links=yes
2035
- $RM conftest*
1896
+ $RM -r conftest*
2036
1897
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
2037
1898
  touch conftest.a
2038
1899
  ln conftest.a conftest.b 2>&5 || hard_links=no
@@ -2247,7 +2108,7 @@ need_version=unknown
2247
2108
 
2248
2109
  case $host_os in
2249
2110
  aix3*)
2250
- version_type=linux # correct to gnu/linux during the next big refactor
2111
+ version_type=linux
2251
2112
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2252
2113
  shlibpath_var=LIBPATH
2253
2114
 
@@ -2256,7 +2117,7 @@ aix3*)
2256
2117
  ;;
2257
2118
 
2258
2119
  aix[[4-9]]*)
2259
- version_type=linux # correct to gnu/linux during the next big refactor
2120
+ version_type=linux
2260
2121
  need_lib_prefix=no
2261
2122
  need_version=no
2262
2123
  hardcode_into_libs=yes
@@ -2321,7 +2182,7 @@ beos*)
2321
2182
  ;;
2322
2183
 
2323
2184
  bsdi[[45]]*)
2324
- version_type=linux # correct to gnu/linux during the next big refactor
2185
+ version_type=linux
2325
2186
  need_version=no
2326
2187
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2327
2188
  soname_spec='${libname}${release}${shared_ext}$major'
@@ -2340,9 +2201,8 @@ cygwin* | mingw* | pw32* | cegcc*)
2340
2201
  need_version=no
2341
2202
  need_lib_prefix=no
2342
2203
 
2343
- case $GCC,$cc_basename in
2344
- yes,*)
2345
- # gcc
2204
+ case $GCC,$host_os in
2205
+ yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
2346
2206
  library_names_spec='$libname.dll.a'
2347
2207
  # DLL is installed to $(libdir)/../bin by postinstall_cmds
2348
2208
  postinstall_cmds='base_file=`basename \${file}`~
@@ -2375,71 +2235,13 @@ m4_if([$1], [],[
2375
2235
  library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2376
2236
  ;;
2377
2237
  esac
2378
- dynamic_linker='Win32 ld.exe'
2379
- ;;
2380
-
2381
- *,cl*)
2382
- # Native MSVC
2383
- libname_spec='$name'
2384
- soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2385
- library_names_spec='${libname}.dll.lib'
2386
-
2387
- case $build_os in
2388
- mingw*)
2389
- sys_lib_search_path_spec=
2390
- lt_save_ifs=$IFS
2391
- IFS=';'
2392
- for lt_path in $LIB
2393
- do
2394
- IFS=$lt_save_ifs
2395
- # Let DOS variable expansion print the short 8.3 style file name.
2396
- lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
2397
- sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
2398
- done
2399
- IFS=$lt_save_ifs
2400
- # Convert to MSYS style.
2401
- sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
2402
- ;;
2403
- cygwin*)
2404
- # Convert to unix form, then to dos form, then back to unix form
2405
- # but this time dos style (no spaces!) so that the unix form looks
2406
- # like /cygdrive/c/PROGRA~1:/cygdr...
2407
- sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
2408
- sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
2409
- sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2410
- ;;
2411
- *)
2412
- sys_lib_search_path_spec="$LIB"
2413
- if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2414
- # It is most probably a Windows format PATH.
2415
- sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2416
- else
2417
- sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2418
- fi
2419
- # FIXME: find the short name or the path components, as spaces are
2420
- # common. (e.g. "Program Files" -> "PROGRA~1")
2421
- ;;
2422
- esac
2423
-
2424
- # DLL is installed to $(libdir)/../bin by postinstall_cmds
2425
- postinstall_cmds='base_file=`basename \${file}`~
2426
- dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2427
- dldir=$destdir/`dirname \$dlpath`~
2428
- test -d \$dldir || mkdir -p \$dldir~
2429
- $install_prog $dir/$dlname \$dldir/$dlname'
2430
- postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2431
- dlpath=$dir/\$dldll~
2432
- $RM \$dlpath'
2433
- shlibpath_overrides_runpath=yes
2434
- dynamic_linker='Win32 link.exe'
2435
2238
  ;;
2436
2239
 
2437
2240
  *)
2438
- # Assume MSVC wrapper
2439
2241
  library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2440
- dynamic_linker='Win32 ld.exe'
2441
2242
  ;;
2442
2243
  esac
2244
+ dynamic_linker='Win32 ld.exe'
2443
2245
  # FIXME: first we should search . and the directory the executable is in
2444
2246
  shlibpath_var=PATH
2445
2247
  ;;
@@ -2449,7 +2251,7 @@ darwin* | rhapsody*)
2449
2251
  version_type=darwin
2450
2252
  need_lib_prefix=no
2451
2253
  need_version=no
2452
- library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2254
+ library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
2453
2255
  soname_spec='${libname}${release}${major}$shared_ext'
2454
2256
  shlibpath_overrides_runpath=yes
2455
2257
  shlibpath_var=DYLD_LIBRARY_PATH
@@ -2460,7 +2262,7 @@ m4_if([$1], [],[
2460
2262
  ;;
2461
2263
 
2462
2264
  dgux*)
2463
- version_type=linux # correct to gnu/linux during the next big refactor
2265
+ version_type=linux
2464
2266
  need_lib_prefix=no
2465
2267
  need_version=no
2466
2268
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
@@ -2468,6 +2270,10 @@ dgux*)
2468
2270
  shlibpath_var=LD_LIBRARY_PATH
2469
2271
  ;;
2470
2272
 
2273
+ freebsd1*)
2274
+ dynamic_linker=no
2275
+ ;;
2276
+
2471
2277
  freebsd* | dragonfly*)
2472
2278
  # DragonFly does not have aout. When/if they implement a new
2473
2279
  # versioning mechanism, adjust this.
@@ -2475,7 +2281,7 @@ freebsd* | dragonfly*)
2475
2281
  objformat=`/usr/bin/objformat`
2476
2282
  else
2477
2283
  case $host_os in
2478
- freebsd[[23]].*) objformat=aout ;;
2284
+ freebsd[[123]]*) objformat=aout ;;
2479
2285
  *) objformat=elf ;;
2480
2286
  esac
2481
2287
  fi
@@ -2493,7 +2299,7 @@ freebsd* | dragonfly*)
2493
2299
  esac
2494
2300
  shlibpath_var=LD_LIBRARY_PATH
2495
2301
  case $host_os in
2496
- freebsd2.*)
2302
+ freebsd2*)
2497
2303
  shlibpath_overrides_runpath=yes
2498
2304
  ;;
2499
2305
  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
@@ -2513,18 +2319,17 @@ freebsd* | dragonfly*)
2513
2319
  ;;
2514
2320
 
2515
2321
  gnu*)
2516
- version_type=linux # correct to gnu/linux during the next big refactor
2322
+ version_type=linux
2517
2323
  need_lib_prefix=no
2518
2324
  need_version=no
2519
2325
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2520
2326
  soname_spec='${libname}${release}${shared_ext}$major'
2521
2327
  shlibpath_var=LD_LIBRARY_PATH
2522
- shlibpath_overrides_runpath=no
2523
2328
  hardcode_into_libs=yes
2524
2329
  ;;
2525
2330
 
2526
2331
  haiku*)
2527
- version_type=linux # correct to gnu/linux during the next big refactor
2332
+ version_type=linux
2528
2333
  need_lib_prefix=no
2529
2334
  need_version=no
2530
2335
  dynamic_linker="$host_os runtime_loader"
@@ -2585,7 +2390,7 @@ hpux9* | hpux10* | hpux11*)
2585
2390
  ;;
2586
2391
 
2587
2392
  interix[[3-9]]*)
2588
- version_type=linux # correct to gnu/linux during the next big refactor
2393
+ version_type=linux
2589
2394
  need_lib_prefix=no
2590
2395
  need_version=no
2591
2396
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
@@ -2601,7 +2406,7 @@ irix5* | irix6* | nonstopux*)
2601
2406
  nonstopux*) version_type=nonstopux ;;
2602
2407
  *)
2603
2408
  if test "$lt_cv_prog_gnu_ld" = yes; then
2604
- version_type=linux # correct to gnu/linux during the next big refactor
2409
+ version_type=linux
2605
2410
  else
2606
2411
  version_type=irix
2607
2412
  fi ;;
@@ -2638,9 +2443,9 @@ linux*oldld* | linux*aout* | linux*coff*)
2638
2443
  dynamic_linker=no
2639
2444
  ;;
2640
2445
 
2641
- # This must be glibc/ELF.
2446
+ # This must be Linux ELF.
2642
2447
  linux* | k*bsd*-gnu | kopensolaris*-gnu)
2643
- version_type=linux # correct to gnu/linux during the next big refactor
2448
+ version_type=linux
2644
2449
  need_lib_prefix=no
2645
2450
  need_version=no
2646
2451
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
@@ -2684,18 +2489,6 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu)
2684
2489
  dynamic_linker='GNU/Linux ld.so'
2685
2490
  ;;
2686
2491
 
2687
- netbsdelf*-gnu)
2688
- version_type=linux
2689
- need_lib_prefix=no
2690
- need_version=no
2691
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2692
- soname_spec='${libname}${release}${shared_ext}$major'
2693
- shlibpath_var=LD_LIBRARY_PATH
2694
- shlibpath_overrides_runpath=no
2695
- hardcode_into_libs=yes
2696
- dynamic_linker='NetBSD ld.elf_so'
2697
- ;;
2698
-
2699
2492
  netbsd*)
2700
2493
  version_type=sunos
2701
2494
  need_lib_prefix=no
@@ -2715,7 +2508,7 @@ netbsd*)
2715
2508
  ;;
2716
2509
 
2717
2510
  newsos6)
2718
- version_type=linux # correct to gnu/linux during the next big refactor
2511
+ version_type=linux
2719
2512
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2720
2513
  shlibpath_var=LD_LIBRARY_PATH
2721
2514
  shlibpath_overrides_runpath=yes
@@ -2784,7 +2577,7 @@ rdos*)
2784
2577
  ;;
2785
2578
 
2786
2579
  solaris*)
2787
- version_type=linux # correct to gnu/linux during the next big refactor
2580
+ version_type=linux
2788
2581
  need_lib_prefix=no
2789
2582
  need_version=no
2790
2583
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
@@ -2809,7 +2602,7 @@ sunos4*)
2809
2602
  ;;
2810
2603
 
2811
2604
  sysv4 | sysv4.3*)
2812
- version_type=linux # correct to gnu/linux during the next big refactor
2605
+ version_type=linux
2813
2606
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2814
2607
  soname_spec='${libname}${release}${shared_ext}$major'
2815
2608
  shlibpath_var=LD_LIBRARY_PATH
@@ -2833,7 +2626,7 @@ sysv4 | sysv4.3*)
2833
2626
 
2834
2627
  sysv4*MP*)
2835
2628
  if test -d /usr/nec ;then
2836
- version_type=linux # correct to gnu/linux during the next big refactor
2629
+ version_type=linux
2837
2630
  library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2838
2631
  soname_spec='$libname${shared_ext}.$major'
2839
2632
  shlibpath_var=LD_LIBRARY_PATH
@@ -2864,7 +2657,7 @@ sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2864
2657
 
2865
2658
  tpf*)
2866
2659
  # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
2867
- version_type=linux # correct to gnu/linux during the next big refactor
2660
+ version_type=linux
2868
2661
  need_lib_prefix=no
2869
2662
  need_version=no
2870
2663
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
@@ -2874,7 +2667,7 @@ tpf*)
2874
2667
  ;;
2875
2668
 
2876
2669
  uts4*)
2877
- version_type=linux # correct to gnu/linux during the next big refactor
2670
+ version_type=linux
2878
2671
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2879
2672
  soname_spec='${libname}${release}${shared_ext}$major'
2880
2673
  shlibpath_var=LD_LIBRARY_PATH
@@ -3152,11 +2945,6 @@ case $reload_flag in
3152
2945
  esac
3153
2946
  reload_cmds='$LD$reload_flag -o $output$reload_objs'
3154
2947
  case $host_os in
3155
- cygwin* | mingw* | pw32* | cegcc*)
3156
- if test "$GCC" != yes; then
3157
- reload_cmds=false
3158
- fi
3159
- ;;
3160
2948
  darwin*)
3161
2949
  if test "$GCC" = yes; then
3162
2950
  reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
@@ -3296,12 +3084,12 @@ irix5* | irix6* | nonstopux*)
3296
3084
  lt_cv_deplibs_check_method=pass_all
3297
3085
  ;;
3298
3086
 
3299
- # This must be glibc/ELF.
3087
+ # This must be Linux ELF.
3300
3088
  linux* | k*bsd*-gnu | kopensolaris*-gnu)
3301
3089
  lt_cv_deplibs_check_method=pass_all
3302
3090
  ;;
3303
3091
 
3304
- netbsd* | netbsdelf*-gnu)
3092
+ netbsd*)
3305
3093
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3306
3094
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3307
3095
  else
@@ -3375,21 +3163,6 @@ tpf*)
3375
3163
  ;;
3376
3164
  esac
3377
3165
  ])
3378
-
3379
- file_magic_glob=
3380
- want_nocaseglob=no
3381
- if test "$build" = "$host"; then
3382
- case $host_os in
3383
- mingw* | pw32*)
3384
- if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
3385
- want_nocaseglob=yes
3386
- else
3387
- file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
3388
- fi
3389
- ;;
3390
- esac
3391
- fi
3392
-
3393
3166
  file_magic_cmd=$lt_cv_file_magic_cmd
3394
3167
  deplibs_check_method=$lt_cv_deplibs_check_method
3395
3168
  test -z "$deplibs_check_method" && deplibs_check_method=unknown
@@ -3397,11 +3170,7 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown
3397
3170
  _LT_DECL([], [deplibs_check_method], [1],
3398
3171
  [Method to check whether dependent libraries are shared objects])
3399
3172
  _LT_DECL([], [file_magic_cmd], [1],
3400
- [Command to use when deplibs_check_method = "file_magic"])
3401
- _LT_DECL([], [file_magic_glob], [1],
3402
- [How to find potential files when deplibs_check_method = "file_magic"])
3403
- _LT_DECL([], [want_nocaseglob], [1],
3404
- [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
3173
+ [Command to use when deplibs_check_method == "file_magic"])
3405
3174
  ])# _LT_CHECK_MAGIC_METHOD
3406
3175
 
3407
3176
 
@@ -3494,7 +3263,7 @@ AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3494
3263
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3495
3264
  lt_cv_nm_interface="MS dumpbin"
3496
3265
  fi
3497
- rm -f conftest*])
3266
+ rm -r -f conftest*])
3498
3267
  ])# LT_PATH_NM
3499
3268
 
3500
3269
  # Old names:
@@ -3504,67 +3273,6 @@ dnl aclocal-1.4 backwards compatibility:
3504
3273
  dnl AC_DEFUN([AM_PROG_NM], [])
3505
3274
  dnl AC_DEFUN([AC_PROG_NM], [])
3506
3275
 
3507
- # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3508
- # --------------------------------
3509
- # how to determine the name of the shared library
3510
- # associated with a specific link library.
3511
- # -- PORTME fill in with the dynamic library characteristics
3512
- m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
3513
- [m4_require([_LT_DECL_EGREP])
3514
- m4_require([_LT_DECL_OBJDUMP])
3515
- m4_require([_LT_DECL_DLLTOOL])
3516
- AC_CACHE_CHECK([how to associate runtime and link libraries],
3517
- lt_cv_sharedlib_from_linklib_cmd,
3518
- [lt_cv_sharedlib_from_linklib_cmd='unknown'
3519
-
3520
- case $host_os in
3521
- cygwin* | mingw* | pw32* | cegcc*)
3522
- # two different shell functions defined in ltmain.sh
3523
- # decide which to use based on capabilities of $DLLTOOL
3524
- case `$DLLTOOL --help 2>&1` in
3525
- *--identify-strict*)
3526
- lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
3527
- ;;
3528
- *)
3529
- lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
3530
- ;;
3531
- esac
3532
- ;;
3533
- *)
3534
- # fallback: assume linklib IS sharedlib
3535
- lt_cv_sharedlib_from_linklib_cmd="$ECHO"
3536
- ;;
3537
- esac
3538
- ])
3539
- sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
3540
- test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
3541
-
3542
- _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
3543
- [Command to associate shared and link libraries])
3544
- ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3545
-
3546
-
3547
- # _LT_PATH_MANIFEST_TOOL
3548
- # ----------------------
3549
- # locate the manifest tool
3550
- m4_defun([_LT_PATH_MANIFEST_TOOL],
3551
- [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
3552
- test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
3553
- AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
3554
- [lt_cv_path_mainfest_tool=no
3555
- echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
3556
- $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
3557
- cat conftest.err >&AS_MESSAGE_LOG_FD
3558
- if $GREP 'Manifest Tool' conftest.out > /dev/null; then
3559
- lt_cv_path_mainfest_tool=yes
3560
- fi
3561
- rm -f conftest*])
3562
- if test "x$lt_cv_path_mainfest_tool" != xyes; then
3563
- MANIFEST_TOOL=:
3564
- fi
3565
- _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
3566
- ])# _LT_PATH_MANIFEST_TOOL
3567
-
3568
3276
 
3569
3277
  # LT_LIB_M
3570
3278
  # --------
@@ -3691,8 +3399,8 @@ esac
3691
3399
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3692
3400
 
3693
3401
  # Transform an extracted symbol line into symbol name and symbol address
3694
- lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
3695
- lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
3402
+ lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
3403
+ lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
3696
3404
 
3697
3405
  # Handle CRLF in mingw tool chain
3698
3406
  opt_cr=
@@ -3716,7 +3424,6 @@ for ac_symprfx in "" "_"; do
3716
3424
  # which start with @ or ?.
3717
3425
  lt_cv_sys_global_symbol_pipe="$AWK ['"\
3718
3426
  " {last_section=section; section=\$ 3};"\
3719
- " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
3720
3427
  " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
3721
3428
  " \$ 0!~/External *\|/{next};"\
3722
3429
  " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
@@ -3729,12 +3436,11 @@ for ac_symprfx in "" "_"; do
3729
3436
  else
3730
3437
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
3731
3438
  fi
3732
- lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
3733
3439
 
3734
3440
  # Check to see that the pipe works correctly.
3735
3441
  pipe_works=no
3736
3442
 
3737
- rm -f conftest*
3443
+ rm -r -f conftest*
3738
3444
  cat > conftest.$ac_ext <<_LT_EOF
3739
3445
  #ifdef __cplusplus
3740
3446
  extern "C" {
@@ -3763,18 +3469,6 @@ _LT_EOF
3763
3469
  if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
3764
3470
  if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
3765
3471
  cat <<_LT_EOF > conftest.$ac_ext
3766
- /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
3767
- #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
3768
- /* DATA imports from DLLs on WIN32 con't be const, because runtime
3769
- relocations are performed -- see ld's documentation on pseudo-relocs. */
3770
- # define LT@&t@_DLSYM_CONST
3771
- #elif defined(__osf__)
3772
- /* This system does not cope well with relocations in const data. */
3773
- # define LT@&t@_DLSYM_CONST
3774
- #else
3775
- # define LT@&t@_DLSYM_CONST const
3776
- #endif
3777
-
3778
3472
  #ifdef __cplusplus
3779
3473
  extern "C" {
3780
3474
  #endif
@@ -3786,7 +3480,7 @@ _LT_EOF
3786
3480
  cat <<_LT_EOF >> conftest.$ac_ext
3787
3481
 
3788
3482
  /* The mapping between symbol names and symbols. */
3789
- LT@&t@_DLSYM_CONST struct {
3483
+ const struct {
3790
3484
  const char *name;
3791
3485
  void *address;
3792
3486
  }
@@ -3812,15 +3506,15 @@ static const void *lt_preloaded_setup() {
3812
3506
  _LT_EOF
3813
3507
  # Now try linking the two files.
3814
3508
  mv conftest.$ac_objext conftstm.$ac_objext
3815
- lt_globsym_save_LIBS=$LIBS
3816
- lt_globsym_save_CFLAGS=$CFLAGS
3509
+ lt_save_LIBS="$LIBS"
3510
+ lt_save_CFLAGS="$CFLAGS"
3817
3511
  LIBS="conftstm.$ac_objext"
3818
3512
  CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
3819
3513
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
3820
3514
  pipe_works=yes
3821
3515
  fi
3822
- LIBS=$lt_globsym_save_LIBS
3823
- CFLAGS=$lt_globsym_save_CFLAGS
3516
+ LIBS="$lt_save_LIBS"
3517
+ CFLAGS="$lt_save_CFLAGS"
3824
3518
  else
3825
3519
  echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
3826
3520
  fi
@@ -3853,13 +3547,6 @@ else
3853
3547
  AC_MSG_RESULT(ok)
3854
3548
  fi
3855
3549
 
3856
- # Response file support.
3857
- if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3858
- nm_file_list_spec='@'
3859
- elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
3860
- nm_file_list_spec='@'
3861
- fi
3862
-
3863
3550
  _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
3864
3551
  [Take the output of nm and produce a listing of raw symbols and C names])
3865
3552
  _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
@@ -3870,8 +3557,6 @@ _LT_DECL([global_symbol_to_c_name_address],
3870
3557
  _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
3871
3558
  [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
3872
3559
  [Transform the output of nm in a C name address pair when lib prefix is needed])
3873
- _LT_DECL([], [nm_file_list_spec], [1],
3874
- [Specify filename containing input files for $NM])
3875
3560
  ]) # _LT_CMD_GLOBAL_SYMBOLS
3876
3561
 
3877
3562
 
@@ -3883,6 +3568,7 @@ _LT_TAGVAR(lt_prog_compiler_wl, $1)=
3883
3568
  _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3884
3569
  _LT_TAGVAR(lt_prog_compiler_static, $1)=
3885
3570
 
3571
+ AC_MSG_CHECKING([for $compiler option to produce PIC])
3886
3572
  m4_if([$1], [CXX], [
3887
3573
  # C++ specific cases for pic, static, wl, etc.
3888
3574
  if test "$GXX" = yes; then
@@ -3987,12 +3673,6 @@ m4_if([$1], [CXX], [
3987
3673
  ;;
3988
3674
  esac
3989
3675
  ;;
3990
- mingw* | cygwin* | os2* | pw32* | cegcc*)
3991
- # This hack is so that the source file can tell whether it is being
3992
- # built for inclusion in a dll (and should export symbols for example).
3993
- m4_if([$1], [GCJ], [],
3994
- [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3995
- ;;
3996
3676
  dgux*)
3997
3677
  case $cc_basename in
3998
3678
  ec++*)
@@ -4113,7 +3793,7 @@ m4_if([$1], [CXX], [
4113
3793
  ;;
4114
3794
  esac
4115
3795
  ;;
4116
- netbsd* | netbsdelf*-gnu)
3796
+ netbsd*)
4117
3797
  ;;
4118
3798
  *qnx* | *nto*)
4119
3799
  # QNX uses GNU C++, but need to define -shared option too, otherwise
@@ -4301,9 +3981,7 @@ m4_if([$1], [CXX], [
4301
3981
  case $cc_basename in
4302
3982
  nvcc*) # Cuda Compiler Driver 2.2
4303
3983
  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
4304
- if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4305
- _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
4306
- fi
3984
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC'
4307
3985
  ;;
4308
3986
  esac
4309
3987
  else
@@ -4369,12 +4047,6 @@ m4_if([$1], [CXX], [
4369
4047
  _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4370
4048
  _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4371
4049
  ;;
4372
- nagfor*)
4373
- # NAG Fortran compiler
4374
- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4375
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4376
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4377
- ;;
4378
4050
  pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
4379
4051
  # Portland Group compilers (*not* the Pentium gcc compiler,
4380
4052
  # which looks to be a dead project)
@@ -4395,33 +4067,18 @@ m4_if([$1], [CXX], [
4395
4067
  ;;
4396
4068
  *)
4397
4069
  case `$CC -V 2>&1 | sed 5q` in
4398
- *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
4070
+ *Sun\ F* | *Sun*Fortran*)
4399
4071
  # Sun Fortran 8.3 passes all unrecognized flags to the linker
4400
4072
  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4401
4073
  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4402
4074
  _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4403
4075
  ;;
4404
- *Sun\ F* | *Sun*Fortran*)
4405
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4406
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4407
- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4408
- ;;
4409
4076
  *Sun\ C*)
4410
4077
  # Sun C 5.9
4411
4078
  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4412
4079
  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4413
4080
  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4414
4081
  ;;
4415
- *Intel*\ [[CF]]*Compiler*)
4416
- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4417
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4418
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4419
- ;;
4420
- *Portland\ Group*)
4421
- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4422
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4423
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4424
- ;;
4425
4082
  esac
4426
4083
  ;;
4427
4084
  esac
@@ -4509,11 +4166,9 @@ case $host_os in
4509
4166
  _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4510
4167
  ;;
4511
4168
  esac
4512
-
4513
- AC_CACHE_CHECK([for $compiler option to produce PIC],
4514
- [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
4515
- [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4516
- _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
4169
+ AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4170
+ _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4171
+ [How to pass a linker flag through the compiler])
4517
4172
 
4518
4173
  #
4519
4174
  # Check to make sure the PIC flag actually works.
@@ -4532,8 +4187,6 @@ fi
4532
4187
  _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4533
4188
  [Additional compiler flags for building library objects])
4534
4189
 
4535
- _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4536
- [How to pass a linker flag through the compiler])
4537
4190
  #
4538
4191
  # Check to make sure the static flag actually works.
4539
4192
  #
@@ -4554,7 +4207,6 @@ _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
4554
4207
  m4_defun([_LT_LINKER_SHLIBS],
4555
4208
  [AC_REQUIRE([LT_PATH_LD])dnl
4556
4209
  AC_REQUIRE([LT_PATH_NM])dnl
4557
- m4_require([_LT_PATH_MANIFEST_TOOL])dnl
4558
4210
  m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4559
4211
  m4_require([_LT_DECL_EGREP])dnl
4560
4212
  m4_require([_LT_DECL_SED])dnl
@@ -4563,7 +4215,6 @@ m4_require([_LT_TAG_COMPILER])dnl
4563
4215
  AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4564
4216
  m4_if([$1], [CXX], [
4565
4217
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4566
- _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4567
4218
  case $host_os in
4568
4219
  aix[[4-9]]*)
4569
4220
  # If we're using GNU nm, then we don't want the "-C" option.
@@ -4578,25 +4229,15 @@ m4_if([$1], [CXX], [
4578
4229
  ;;
4579
4230
  pw32*)
4580
4231
  _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4581
- ;;
4232
+ ;;
4582
4233
  cygwin* | mingw* | cegcc*)
4583
- case $cc_basename in
4584
- cl*)
4585
- _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
4586
- ;;
4587
- *)
4588
- _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4589
- _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
4590
- ;;
4591
- esac
4592
- ;;
4593
- linux* | k*bsd*-gnu | gnu*)
4594
- _LT_TAGVAR(link_all_deplibs, $1)=no
4595
- ;;
4234
+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4235
+ ;;
4596
4236
  *)
4597
4237
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4598
- ;;
4238
+ ;;
4599
4239
  esac
4240
+ _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4600
4241
  ], [
4601
4242
  runpath_var=
4602
4243
  _LT_TAGVAR(allow_undefined_flag, $1)=
@@ -4611,6 +4252,7 @@ m4_if([$1], [CXX], [
4611
4252
  _LT_TAGVAR(hardcode_direct, $1)=no
4612
4253
  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
4613
4254
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4255
+ _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4614
4256
  _LT_TAGVAR(hardcode_libdir_separator, $1)=
4615
4257
  _LT_TAGVAR(hardcode_minus_L, $1)=no
4616
4258
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
@@ -4655,9 +4297,6 @@ dnl Note also adjust exclude_expsyms for C++ above.
4655
4297
  openbsd*)
4656
4298
  with_gnu_ld=no
4657
4299
  ;;
4658
- linux* | k*bsd*-gnu | gnu*)
4659
- _LT_TAGVAR(link_all_deplibs, $1)=no
4660
- ;;
4661
4300
  esac
4662
4301
 
4663
4302
  _LT_TAGVAR(ld_shlibs, $1)=yes
@@ -4766,8 +4405,7 @@ _LT_EOF
4766
4405
  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4767
4406
  _LT_TAGVAR(always_export_symbols, $1)=no
4768
4407
  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4769
- _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4770
- _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
4408
+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
4771
4409
 
4772
4410
  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
4773
4411
  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
@@ -4815,7 +4453,7 @@ _LT_EOF
4815
4453
  if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
4816
4454
  && test "$tmp_diet" = no
4817
4455
  then
4818
- tmp_addflag=' $pic_flag'
4456
+ tmp_addflag=
4819
4457
  tmp_sharedflag='-shared'
4820
4458
  case $cc_basename,$host_cpu in
4821
4459
  pgcc*) # Portland Group C compiler
@@ -4864,7 +4502,8 @@ _LT_EOF
4864
4502
  xlf* | bgf* | bgxlf* | mpixlf*)
4865
4503
  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
4866
4504
  _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4867
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4505
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4506
+ _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
4868
4507
  _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
4869
4508
  if test "x$supports_anon_versioning" = xyes; then
4870
4509
  _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
@@ -4879,13 +4518,13 @@ _LT_EOF
4879
4518
  fi
4880
4519
  ;;
4881
4520
 
4882
- netbsd* | netbsdelf*-gnu)
4521
+ netbsd*)
4883
4522
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4884
4523
  _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4885
4524
  wlarc=
4886
4525
  else
4887
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4888
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4526
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4527
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4889
4528
  fi
4890
4529
  ;;
4891
4530
 
@@ -4903,8 +4542,8 @@ _LT_EOF
4903
4542
 
4904
4543
  _LT_EOF
4905
4544
  elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4906
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4907
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4545
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4546
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4908
4547
  else
4909
4548
  _LT_TAGVAR(ld_shlibs, $1)=no
4910
4549
  fi
@@ -4950,8 +4589,8 @@ _LT_EOF
4950
4589
 
4951
4590
  *)
4952
4591
  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4953
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4954
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4592
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4593
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4955
4594
  else
4956
4595
  _LT_TAGVAR(ld_shlibs, $1)=no
4957
4596
  fi
@@ -5056,7 +4695,6 @@ _LT_EOF
5056
4695
  if test "$aix_use_runtimelinking" = yes; then
5057
4696
  shared_flag="$shared_flag "'${wl}-G'
5058
4697
  fi
5059
- _LT_TAGVAR(link_all_deplibs, $1)=no
5060
4698
  else
5061
4699
  # not using gcc
5062
4700
  if test "$host_cpu" = ia64; then
@@ -5082,7 +4720,7 @@ _LT_EOF
5082
4720
  _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5083
4721
  # Determine the default libpath from the value encoded in an
5084
4722
  # empty executable.
5085
- _LT_SYS_MODULE_PATH_AIX([$1])
4723
+ _LT_SYS_MODULE_PATH_AIX
5086
4724
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5087
4725
  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5088
4726
  else
@@ -5093,7 +4731,7 @@ _LT_EOF
5093
4731
  else
5094
4732
  # Determine the default libpath from the value encoded in an
5095
4733
  # empty executable.
5096
- _LT_SYS_MODULE_PATH_AIX([$1])
4734
+ _LT_SYS_MODULE_PATH_AIX
5097
4735
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5098
4736
  # Warning - without using the other run time loading flags,
5099
4737
  # -berok will link without error, but may produce a broken library.
@@ -5137,64 +4775,20 @@ _LT_EOF
5137
4775
  # Microsoft Visual C++.
5138
4776
  # hardcode_libdir_flag_spec is actually meaningless, as there is
5139
4777
  # no search path for DLLs.
5140
- case $cc_basename in
5141
- cl*)
5142
- # Native MSVC
5143
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5144
- _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5145
- _LT_TAGVAR(always_export_symbols, $1)=yes
5146
- _LT_TAGVAR(file_list_spec, $1)='@'
5147
- # Tell ltmain to make .lib files, not .a files.
5148
- libext=lib
5149
- # Tell ltmain to make .dll files, not .so files.
5150
- shrext_cmds=".dll"
5151
- # FIXME: Setting linknames here is a bad hack.
5152
- _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
5153
- _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5154
- sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
5155
- else
5156
- sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
5157
- fi~
5158
- $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5159
- linknames='
5160
- # The linker will not automatically build a static lib if we build a DLL.
5161
- # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5162
- _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5163
- _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
5164
- _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5165
- # Don't use ranlib
5166
- _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
5167
- _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
5168
- lt_tool_outputfile="@TOOL_OUTPUT@"~
5169
- case $lt_outputfile in
5170
- *.exe|*.EXE) ;;
5171
- *)
5172
- lt_outputfile="$lt_outputfile.exe"
5173
- lt_tool_outputfile="$lt_tool_outputfile.exe"
5174
- ;;
5175
- esac~
5176
- if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
5177
- $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5178
- $RM "$lt_outputfile.manifest";
5179
- fi'
5180
- ;;
5181
- *)
5182
- # Assume MSVC wrapper
5183
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5184
- _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5185
- # Tell ltmain to make .lib files, not .a files.
5186
- libext=lib
5187
- # Tell ltmain to make .dll files, not .so files.
5188
- shrext_cmds=".dll"
5189
- # FIXME: Setting linknames here is a bad hack.
5190
- _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
5191
- # The linker will automatically build a .lib file if we build a DLL.
5192
- _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5193
- # FIXME: Should let the user specify the lib program.
5194
- _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5195
- _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5196
- ;;
5197
- esac
4778
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
4779
+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4780
+ # Tell ltmain to make .lib files, not .a files.
4781
+ libext=lib
4782
+ # Tell ltmain to make .dll files, not .so files.
4783
+ shrext_cmds=".dll"
4784
+ # FIXME: Setting linknames here is a bad hack.
4785
+ _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
4786
+ # The linker will automatically build a .lib file if we build a DLL.
4787
+ _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
4788
+ # FIXME: Should let the user specify the lib program.
4789
+ _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
4790
+ _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
4791
+ _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5198
4792
  ;;
5199
4793
 
5200
4794
  darwin* | rhapsody*)
@@ -5207,6 +4801,10 @@ _LT_EOF
5207
4801
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5208
4802
  ;;
5209
4803
 
4804
+ freebsd1*)
4805
+ _LT_TAGVAR(ld_shlibs, $1)=no
4806
+ ;;
4807
+
5210
4808
  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5211
4809
  # support. Future versions do this automatically, but an explicit c++rt0.o
5212
4810
  # does not break anything, and helps significantly (at the cost of a little
@@ -5219,7 +4817,7 @@ _LT_EOF
5219
4817
  ;;
5220
4818
 
5221
4819
  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5222
- freebsd2.*)
4820
+ freebsd2*)
5223
4821
  _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5224
4822
  _LT_TAGVAR(hardcode_direct, $1)=yes
5225
4823
  _LT_TAGVAR(hardcode_minus_L, $1)=yes
@@ -5228,7 +4826,7 @@ _LT_EOF
5228
4826
 
5229
4827
  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5230
4828
  freebsd* | dragonfly*)
5231
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4829
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5232
4830
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5233
4831
  _LT_TAGVAR(hardcode_direct, $1)=yes
5234
4832
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
@@ -5236,7 +4834,7 @@ _LT_EOF
5236
4834
 
5237
4835
  hpux9*)
5238
4836
  if test "$GCC" = yes; then
5239
- _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
4837
+ _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5240
4838
  else
5241
4839
  _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5242
4840
  fi
@@ -5252,12 +4850,13 @@ _LT_EOF
5252
4850
 
5253
4851
  hpux10*)
5254
4852
  if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5255
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4853
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5256
4854
  else
5257
4855
  _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5258
4856
  fi
5259
4857
  if test "$with_gnu_ld" = no; then
5260
4858
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4859
+ _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5261
4860
  _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5262
4861
  _LT_TAGVAR(hardcode_direct, $1)=yes
5263
4862
  _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
@@ -5275,10 +4874,10 @@ _LT_EOF
5275
4874
  _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5276
4875
  ;;
5277
4876
  ia64*)
5278
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
4877
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5279
4878
  ;;
5280
4879
  *)
5281
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4880
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5282
4881
  ;;
5283
4882
  esac
5284
4883
  else
@@ -5325,31 +4924,16 @@ _LT_EOF
5325
4924
 
5326
4925
  irix5* | irix6* | nonstopux*)
5327
4926
  if test "$GCC" = yes; then
5328
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4927
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5329
4928
  # Try to use the -exported_symbol ld option, if it does not
5330
4929
  # work, assume that -exports_file does not work either and
5331
4930
  # implicitly export all symbols.
5332
- # This should be the same for all languages, so no per-tag cache variable.
5333
- AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
5334
- [lt_cv_irix_exported_symbol],
5335
- [save_LDFLAGS="$LDFLAGS"
5336
- LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5337
- AC_LINK_IFELSE(
5338
- [AC_LANG_SOURCE(
5339
- [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
5340
- [C++], [[int foo (void) { return 0; }]],
5341
- [Fortran 77], [[
5342
- subroutine foo
5343
- end]],
5344
- [Fortran], [[
5345
- subroutine foo
5346
- end]])])],
5347
- [lt_cv_irix_exported_symbol=yes],
5348
- [lt_cv_irix_exported_symbol=no])
5349
- LDFLAGS="$save_LDFLAGS"])
5350
- if test "$lt_cv_irix_exported_symbol" = yes; then
5351
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
5352
- fi
4931
+ save_LDFLAGS="$LDFLAGS"
4932
+ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
4933
+ AC_LINK_IFELSE(int foo(void) {},
4934
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
4935
+ )
4936
+ LDFLAGS="$save_LDFLAGS"
5353
4937
  else
5354
4938
  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5355
4939
  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
@@ -5361,7 +4945,7 @@ _LT_EOF
5361
4945
  _LT_TAGVAR(link_all_deplibs, $1)=yes
5362
4946
  ;;
5363
4947
 
5364
- netbsd* | netbsdelf*-gnu)
4948
+ netbsd*)
5365
4949
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5366
4950
  _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5367
4951
  else
@@ -5434,7 +5018,7 @@ _LT_EOF
5434
5018
  osf4* | osf5*) # as osf3* with the addition of -msym flag
5435
5019
  if test "$GCC" = yes; then
5436
5020
  _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5437
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5021
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5438
5022
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5439
5023
  else
5440
5024
  _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
@@ -5453,9 +5037,9 @@ _LT_EOF
5453
5037
  _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
5454
5038
  if test "$GCC" = yes; then
5455
5039
  wlarc='${wl}'
5456
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5040
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5457
5041
  _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5458
- $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5042
+ $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5459
5043
  else
5460
5044
  case `$CC -V 2>&1` in
5461
5045
  *"Compilers 5.0"*)
@@ -5633,7 +5217,7 @@ x|xyes)
5633
5217
  # to ld, don't add -lc before -lgcc.
5634
5218
  AC_CACHE_CHECK([whether -lc should be explicitly linked in],
5635
5219
  [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
5636
- [$RM conftest*
5220
+ [$RM -r conftest*
5637
5221
  echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5638
5222
 
5639
5223
  if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
@@ -5660,7 +5244,7 @@ x|xyes)
5660
5244
  else
5661
5245
  cat conftest.err 1>&5
5662
5246
  fi
5663
- $RM conftest*
5247
+ $RM -r conftest*
5664
5248
  ])
5665
5249
  _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
5666
5250
  ;;
@@ -5699,6 +5283,9 @@ _LT_TAGDECL([], [no_undefined_flag], [1],
5699
5283
  _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
5700
5284
  [Flag to hardcode $libdir into a binary during linking.
5701
5285
  This must work even if $libdir does not exist])
5286
+ _LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
5287
+ [[If ld is used when linking, flag to hardcode $libdir into a binary
5288
+ during linking. This must work even if $libdir does not exist]])
5702
5289
  _LT_TAGDECL([], [hardcode_libdir_separator], [1],
5703
5290
  [Whether we need a single "-rpath" flag with a separated argument])
5704
5291
  _LT_TAGDECL([], [hardcode_direct], [0],
@@ -5724,6 +5311,8 @@ _LT_TAGDECL([], [inherit_rpath], [0],
5724
5311
  to runtime path list])
5725
5312
  _LT_TAGDECL([], [link_all_deplibs], [0],
5726
5313
  [Whether libtool must link a program against all its dependency libraries])
5314
+ _LT_TAGDECL([], [fix_srcfile_path], [1],
5315
+ [Fix the shell variable $srcfile for the compiler])
5727
5316
  _LT_TAGDECL([], [always_export_symbols], [0],
5728
5317
  [Set to "yes" if exported symbols are required])
5729
5318
  _LT_TAGDECL([], [export_symbols_cmds], [2],
@@ -5734,8 +5323,6 @@ _LT_TAGDECL([], [include_expsyms], [1],
5734
5323
  [Symbols that must always be exported])
5735
5324
  _LT_TAGDECL([], [prelink_cmds], [2],
5736
5325
  [Commands necessary for linking programs (against libraries) with templates])
5737
- _LT_TAGDECL([], [postlink_cmds], [2],
5738
- [Commands necessary for finishing linking programs])
5739
5326
  _LT_TAGDECL([], [file_list_spec], [1],
5740
5327
  [Specify filename containing input files])
5741
5328
  dnl FIXME: Not yet implemented
@@ -5837,7 +5424,6 @@ CC="$lt_save_CC"
5837
5424
  m4_defun([_LT_LANG_CXX_CONFIG],
5838
5425
  [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5839
5426
  m4_require([_LT_DECL_EGREP])dnl
5840
- m4_require([_LT_PATH_MANIFEST_TOOL])dnl
5841
5427
  if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5842
5428
  ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5843
5429
  (test "X$CXX" != "Xg++"))) ; then
@@ -5856,6 +5442,7 @@ _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5856
5442
  _LT_TAGVAR(hardcode_direct, $1)=no
5857
5443
  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
5858
5444
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5445
+ _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5859
5446
  _LT_TAGVAR(hardcode_libdir_separator, $1)=
5860
5447
  _LT_TAGVAR(hardcode_minus_L, $1)=no
5861
5448
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
@@ -5898,7 +5485,6 @@ if test "$_lt_caught_CXX_error" != yes; then
5898
5485
 
5899
5486
  # Allow CC to be a program name with arguments.
5900
5487
  lt_save_CC=$CC
5901
- lt_save_CFLAGS=$CFLAGS
5902
5488
  lt_save_LD=$LD
5903
5489
  lt_save_GCC=$GCC
5904
5490
  GCC=$GXX
@@ -5916,7 +5502,6 @@ if test "$_lt_caught_CXX_error" != yes; then
5916
5502
  fi
5917
5503
  test -z "${LDCXX+set}" || LD=$LDCXX
5918
5504
  CC=${CXX-"c++"}
5919
- CFLAGS=$CXXFLAGS
5920
5505
  compiler=$CC
5921
5506
  _LT_TAGVAR(compiler, $1)=$CC
5922
5507
  _LT_CC_BASENAME([$compiler])
@@ -5938,8 +5523,8 @@ if test "$_lt_caught_CXX_error" != yes; then
5938
5523
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
5939
5524
  # archiving commands below assume that GNU ld is being used.
5940
5525
  if test "$with_gnu_ld" = yes; then
5941
- _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5942
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5526
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5527
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5943
5528
 
5944
5529
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5945
5530
  _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
@@ -6080,7 +5665,7 @@ if test "$_lt_caught_CXX_error" != yes; then
6080
5665
  _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6081
5666
  # Determine the default libpath from the value encoded in an empty
6082
5667
  # executable.
6083
- _LT_SYS_MODULE_PATH_AIX([$1])
5668
+ _LT_SYS_MODULE_PATH_AIX
6084
5669
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6085
5670
 
6086
5671
  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
@@ -6092,7 +5677,7 @@ if test "$_lt_caught_CXX_error" != yes; then
6092
5677
  else
6093
5678
  # Determine the default libpath from the value encoded in an
6094
5679
  # empty executable.
6095
- _LT_SYS_MODULE_PATH_AIX([$1])
5680
+ _LT_SYS_MODULE_PATH_AIX
6096
5681
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6097
5682
  # Warning - without using the other run time loading flags,
6098
5683
  # -berok will link without error, but may produce a broken library.
@@ -6134,75 +5719,29 @@ if test "$_lt_caught_CXX_error" != yes; then
6134
5719
  ;;
6135
5720
 
6136
5721
  cygwin* | mingw* | pw32* | cegcc*)
6137
- case $GXX,$cc_basename in
6138
- ,cl* | no,cl*)
6139
- # Native MSVC
6140
- # hardcode_libdir_flag_spec is actually meaningless, as there is
6141
- # no search path for DLLs.
6142
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6143
- _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6144
- _LT_TAGVAR(always_export_symbols, $1)=yes
6145
- _LT_TAGVAR(file_list_spec, $1)='@'
6146
- # Tell ltmain to make .lib files, not .a files.
6147
- libext=lib
6148
- # Tell ltmain to make .dll files, not .so files.
6149
- shrext_cmds=".dll"
6150
- # FIXME: Setting linknames here is a bad hack.
6151
- _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
6152
- _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6153
- $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
6154
- else
6155
- $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
6156
- fi~
6157
- $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6158
- linknames='
6159
- # The linker will not automatically build a static lib if we build a DLL.
6160
- # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6161
- _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6162
- # Don't use ranlib
6163
- _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
6164
- _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6165
- lt_tool_outputfile="@TOOL_OUTPUT@"~
6166
- case $lt_outputfile in
6167
- *.exe|*.EXE) ;;
6168
- *)
6169
- lt_outputfile="$lt_outputfile.exe"
6170
- lt_tool_outputfile="$lt_tool_outputfile.exe"
6171
- ;;
6172
- esac~
6173
- func_to_tool_file "$lt_outputfile"~
6174
- if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
6175
- $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6176
- $RM "$lt_outputfile.manifest";
6177
- fi'
6178
- ;;
6179
- *)
6180
- # g++
6181
- # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6182
- # as there is no search path for DLLs.
6183
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6184
- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6185
- _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6186
- _LT_TAGVAR(always_export_symbols, $1)=no
6187
- _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6188
-
6189
- if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6190
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6191
- # If the export-symbols file already is a .def file (1st line
6192
- # is EXPORTS), use it as is; otherwise, prepend...
6193
- _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6194
- cp $export_symbols $output_objdir/$soname.def;
6195
- else
6196
- echo EXPORTS > $output_objdir/$soname.def;
6197
- cat $export_symbols >> $output_objdir/$soname.def;
6198
- fi~
6199
- $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6200
- else
6201
- _LT_TAGVAR(ld_shlibs, $1)=no
6202
- fi
6203
- ;;
6204
- esac
6205
- ;;
5722
+ # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5723
+ # as there is no search path for DLLs.
5724
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5725
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
5726
+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5727
+ _LT_TAGVAR(always_export_symbols, $1)=no
5728
+ _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5729
+
5730
+ if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5731
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5732
+ # If the export-symbols file already is a .def file (1st line
5733
+ # is EXPORTS), use it as is; otherwise, prepend...
5734
+ _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5735
+ cp $export_symbols $output_objdir/$soname.def;
5736
+ else
5737
+ echo EXPORTS > $output_objdir/$soname.def;
5738
+ cat $export_symbols >> $output_objdir/$soname.def;
5739
+ fi~
5740
+ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5741
+ else
5742
+ _LT_TAGVAR(ld_shlibs, $1)=no
5743
+ fi
5744
+ ;;
6206
5745
  darwin* | rhapsody*)
6207
5746
  _LT_DARWIN_LINKER_FEATURES($1)
6208
5747
  ;;
@@ -6225,7 +5764,7 @@ if test "$_lt_caught_CXX_error" != yes; then
6225
5764
  esac
6226
5765
  ;;
6227
5766
 
6228
- freebsd2.*)
5767
+ freebsd[[12]]*)
6229
5768
  # C++ shared libraries reported to be fairly broken before
6230
5769
  # switch to ELF
6231
5770
  _LT_TAGVAR(ld_shlibs, $1)=no
@@ -6277,7 +5816,7 @@ if test "$_lt_caught_CXX_error" != yes; then
6277
5816
  ;;
6278
5817
  *)
6279
5818
  if test "$GXX" = yes; then
6280
- _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5819
+ _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6281
5820
  else
6282
5821
  # FIXME: insert proper C++ library support
6283
5822
  _LT_TAGVAR(ld_shlibs, $1)=no
@@ -6348,10 +5887,10 @@ if test "$_lt_caught_CXX_error" != yes; then
6348
5887
  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6349
5888
  ;;
6350
5889
  ia64*)
6351
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5890
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6352
5891
  ;;
6353
5892
  *)
6354
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5893
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6355
5894
  ;;
6356
5895
  esac
6357
5896
  fi
@@ -6392,9 +5931,9 @@ if test "$_lt_caught_CXX_error" != yes; then
6392
5931
  *)
6393
5932
  if test "$GXX" = yes; then
6394
5933
  if test "$with_gnu_ld" = no; then
6395
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5934
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6396
5935
  else
6397
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
5936
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
6398
5937
  fi
6399
5938
  fi
6400
5939
  _LT_TAGVAR(link_all_deplibs, $1)=yes
@@ -6672,7 +6211,7 @@ if test "$_lt_caught_CXX_error" != yes; then
6672
6211
  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6673
6212
  ;;
6674
6213
  *)
6675
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6214
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6676
6215
  ;;
6677
6216
  esac
6678
6217
 
@@ -6759,9 +6298,9 @@ if test "$_lt_caught_CXX_error" != yes; then
6759
6298
  if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6760
6299
  _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6761
6300
  if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6762
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6301
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6763
6302
  _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6764
- $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6303
+ $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6765
6304
 
6766
6305
  # Commands to make compiler produce verbose output that lists
6767
6306
  # what "hidden" libraries, object files and flags are used when
@@ -6890,7 +6429,6 @@ if test "$_lt_caught_CXX_error" != yes; then
6890
6429
  fi # test -n "$compiler"
6891
6430
 
6892
6431
  CC=$lt_save_CC
6893
- CFLAGS=$lt_save_CFLAGS
6894
6432
  LDCXX=$LD
6895
6433
  LD=$lt_save_LD
6896
6434
  GCC=$lt_save_GCC
@@ -6905,29 +6443,6 @@ AC_LANG_POP
6905
6443
  ])# _LT_LANG_CXX_CONFIG
6906
6444
 
6907
6445
 
6908
- # _LT_FUNC_STRIPNAME_CNF
6909
- # ----------------------
6910
- # func_stripname_cnf prefix suffix name
6911
- # strip PREFIX and SUFFIX off of NAME.
6912
- # PREFIX and SUFFIX must not contain globbing or regex special
6913
- # characters, hashes, percent signs, but SUFFIX may contain a leading
6914
- # dot (in which case that matches only a dot).
6915
- #
6916
- # This function is identical to the (non-XSI) version of func_stripname,
6917
- # except this one can be used by m4 code that may be executed by configure,
6918
- # rather than the libtool script.
6919
- m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
6920
- AC_REQUIRE([_LT_DECL_SED])
6921
- AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
6922
- func_stripname_cnf ()
6923
- {
6924
- case ${2} in
6925
- .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
6926
- *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
6927
- esac
6928
- } # func_stripname_cnf
6929
- ])# _LT_FUNC_STRIPNAME_CNF
6930
-
6931
6446
  # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
6932
6447
  # ---------------------------------
6933
6448
  # Figure out "hidden" library dependencies from verbose
@@ -6936,7 +6451,6 @@ func_stripname_cnf ()
6936
6451
  # objects, libraries and library flags.
6937
6452
  m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
6938
6453
  [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6939
- AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
6940
6454
  # Dependencies to place before and after the object being linked:
6941
6455
  _LT_TAGVAR(predep_objects, $1)=
6942
6456
  _LT_TAGVAR(postdep_objects, $1)=
@@ -6986,20 +6500,7 @@ public class foo {
6986
6500
  }
6987
6501
  };
6988
6502
  _LT_EOF
6989
- ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
6990
- package foo
6991
- func foo() {
6992
- }
6993
- _LT_EOF
6994
6503
  ])
6995
-
6996
- _lt_libdeps_save_CFLAGS=$CFLAGS
6997
- case "$CC $CFLAGS " in #(
6998
- *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
6999
- *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
7000
- *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
7001
- esac
7002
-
7003
6504
  dnl Parse the compiler output and extract the necessary
7004
6505
  dnl objects, libraries and library flags.
7005
6506
  if AC_TRY_EVAL(ac_compile); then
@@ -7011,7 +6512,7 @@ if AC_TRY_EVAL(ac_compile); then
7011
6512
  pre_test_object_deps_done=no
7012
6513
 
7013
6514
  for p in `eval "$output_verbose_link_cmd"`; do
7014
- case ${prev}${p} in
6515
+ case $p in
7015
6516
 
7016
6517
  -L* | -R* | -l*)
7017
6518
  # Some compilers place space between "-{L,R}" and the path.
@@ -7020,22 +6521,13 @@ if AC_TRY_EVAL(ac_compile); then
7020
6521
  test $p = "-R"; then
7021
6522
  prev=$p
7022
6523
  continue
6524
+ else
6525
+ prev=
7023
6526
  fi
7024
6527
 
7025
- # Expand the sysroot to ease extracting the directories later.
7026
- if test -z "$prev"; then
7027
- case $p in
7028
- -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
7029
- -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
7030
- -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
7031
- esac
7032
- fi
7033
- case $p in
7034
- =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
7035
- esac
7036
6528
  if test "$pre_test_object_deps_done" = no; then
7037
- case ${prev} in
7038
- -L | -R)
6529
+ case $p in
6530
+ -L* | -R*)
7039
6531
  # Internal compiler library paths should come after those
7040
6532
  # provided the user. The postdeps already come after the
7041
6533
  # user supplied libs so there is no need to process them.
@@ -7055,10 +6547,8 @@ if AC_TRY_EVAL(ac_compile); then
7055
6547
  _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7056
6548
  fi
7057
6549
  fi
7058
- prev=
7059
6550
  ;;
7060
6551
 
7061
- *.lto.$objext) ;; # Ignore GCC LTO objects
7062
6552
  *.$objext)
7063
6553
  # This assumes that the test object file only shows up
7064
6554
  # once in the compiler output.
@@ -7094,7 +6584,6 @@ else
7094
6584
  fi
7095
6585
 
7096
6586
  $RM -f confest.$objext
7097
- CFLAGS=$_lt_libdeps_save_CFLAGS
7098
6587
 
7099
6588
  # PORTME: override above test on systems where it is broken
7100
6589
  m4_if([$1], [CXX],
@@ -7194,6 +6683,7 @@ _LT_TAGVAR(export_dynamic_flag_spec, $1)=
7194
6683
  _LT_TAGVAR(hardcode_direct, $1)=no
7195
6684
  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
7196
6685
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6686
+ _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7197
6687
  _LT_TAGVAR(hardcode_libdir_separator, $1)=
7198
6688
  _LT_TAGVAR(hardcode_minus_L, $1)=no
7199
6689
  _LT_TAGVAR(hardcode_automatic, $1)=no
@@ -7243,9 +6733,7 @@ if test "$_lt_disable_F77" != yes; then
7243
6733
  # Allow CC to be a program name with arguments.
7244
6734
  lt_save_CC="$CC"
7245
6735
  lt_save_GCC=$GCC
7246
- lt_save_CFLAGS=$CFLAGS
7247
6736
  CC=${F77-"f77"}
7248
- CFLAGS=$FFLAGS
7249
6737
  compiler=$CC
7250
6738
  _LT_TAGVAR(compiler, $1)=$CC
7251
6739
  _LT_CC_BASENAME([$compiler])
@@ -7299,7 +6787,6 @@ if test "$_lt_disable_F77" != yes; then
7299
6787
 
7300
6788
  GCC=$lt_save_GCC
7301
6789
  CC="$lt_save_CC"
7302
- CFLAGS="$lt_save_CFLAGS"
7303
6790
  fi # test "$_lt_disable_F77" != yes
7304
6791
 
7305
6792
  AC_LANG_POP
@@ -7326,6 +6813,7 @@ _LT_TAGVAR(export_dynamic_flag_spec, $1)=
7326
6813
  _LT_TAGVAR(hardcode_direct, $1)=no
7327
6814
  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
7328
6815
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6816
+ _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7329
6817
  _LT_TAGVAR(hardcode_libdir_separator, $1)=
7330
6818
  _LT_TAGVAR(hardcode_minus_L, $1)=no
7331
6819
  _LT_TAGVAR(hardcode_automatic, $1)=no
@@ -7375,9 +6863,7 @@ if test "$_lt_disable_FC" != yes; then
7375
6863
  # Allow CC to be a program name with arguments.
7376
6864
  lt_save_CC="$CC"
7377
6865
  lt_save_GCC=$GCC
7378
- lt_save_CFLAGS=$CFLAGS
7379
6866
  CC=${FC-"f95"}
7380
- CFLAGS=$FCFLAGS
7381
6867
  compiler=$CC
7382
6868
  GCC=$ac_cv_fc_compiler_gnu
7383
6869
 
@@ -7433,8 +6919,7 @@ if test "$_lt_disable_FC" != yes; then
7433
6919
  fi # test -n "$compiler"
7434
6920
 
7435
6921
  GCC=$lt_save_GCC
7436
- CC=$lt_save_CC
7437
- CFLAGS=$lt_save_CFLAGS
6922
+ CC="$lt_save_CC"
7438
6923
  fi # test "$_lt_disable_FC" != yes
7439
6924
 
7440
6925
  AC_LANG_POP
@@ -7471,12 +6956,10 @@ _LT_COMPILER_BOILERPLATE
7471
6956
  _LT_LINKER_BOILERPLATE
7472
6957
 
7473
6958
  # Allow CC to be a program name with arguments.
7474
- lt_save_CC=$CC
7475
- lt_save_CFLAGS=$CFLAGS
6959
+ lt_save_CC="$CC"
7476
6960
  lt_save_GCC=$GCC
7477
6961
  GCC=yes
7478
6962
  CC=${GCJ-"gcj"}
7479
- CFLAGS=$GCJFLAGS
7480
6963
  compiler=$CC
7481
6964
  _LT_TAGVAR(compiler, $1)=$CC
7482
6965
  _LT_TAGVAR(LD, $1)="$LD"
@@ -7507,82 +6990,10 @@ fi
7507
6990
  AC_LANG_RESTORE
7508
6991
 
7509
6992
  GCC=$lt_save_GCC
7510
- CC=$lt_save_CC
7511
- CFLAGS=$lt_save_CFLAGS
6993
+ CC="$lt_save_CC"
7512
6994
  ])# _LT_LANG_GCJ_CONFIG
7513
6995
 
7514
6996
 
7515
- # _LT_LANG_GO_CONFIG([TAG])
7516
- # --------------------------
7517
- # Ensure that the configuration variables for the GNU Go compiler
7518
- # are suitably defined. These variables are subsequently used by _LT_CONFIG
7519
- # to write the compiler configuration to `libtool'.
7520
- m4_defun([_LT_LANG_GO_CONFIG],
7521
- [AC_REQUIRE([LT_PROG_GO])dnl
7522
- AC_LANG_SAVE
7523
-
7524
- # Source file extension for Go test sources.
7525
- ac_ext=go
7526
-
7527
- # Object file extension for compiled Go test sources.
7528
- objext=o
7529
- _LT_TAGVAR(objext, $1)=$objext
7530
-
7531
- # Code to be used in simple compile tests
7532
- lt_simple_compile_test_code="package main; func main() { }"
7533
-
7534
- # Code to be used in simple link tests
7535
- lt_simple_link_test_code='package main; func main() { }'
7536
-
7537
- # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7538
- _LT_TAG_COMPILER
7539
-
7540
- # save warnings/boilerplate of simple test code
7541
- _LT_COMPILER_BOILERPLATE
7542
- _LT_LINKER_BOILERPLATE
7543
-
7544
- # Allow CC to be a program name with arguments.
7545
- lt_save_CC=$CC
7546
- lt_save_CFLAGS=$CFLAGS
7547
- lt_save_GCC=$GCC
7548
- GCC=yes
7549
- CC=${GOC-"gccgo"}
7550
- CFLAGS=$GOFLAGS
7551
- compiler=$CC
7552
- _LT_TAGVAR(compiler, $1)=$CC
7553
- _LT_TAGVAR(LD, $1)="$LD"
7554
- _LT_CC_BASENAME([$compiler])
7555
-
7556
- # Go did not exist at the time GCC didn't implicitly link libc in.
7557
- _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7558
-
7559
- _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7560
- _LT_TAGVAR(reload_flag, $1)=$reload_flag
7561
- _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7562
-
7563
- ## CAVEAT EMPTOR:
7564
- ## There is no encapsulation within the following macros, do not change
7565
- ## the running order or otherwise move them around unless you know exactly
7566
- ## what you are doing...
7567
- if test -n "$compiler"; then
7568
- _LT_COMPILER_NO_RTTI($1)
7569
- _LT_COMPILER_PIC($1)
7570
- _LT_COMPILER_C_O($1)
7571
- _LT_COMPILER_FILE_LOCKS($1)
7572
- _LT_LINKER_SHLIBS($1)
7573
- _LT_LINKER_HARDCODE_LIBPATH($1)
7574
-
7575
- _LT_CONFIG($1)
7576
- fi
7577
-
7578
- AC_LANG_RESTORE
7579
-
7580
- GCC=$lt_save_GCC
7581
- CC=$lt_save_CC
7582
- CFLAGS=$lt_save_CFLAGS
7583
- ])# _LT_LANG_GO_CONFIG
7584
-
7585
-
7586
6997
  # _LT_LANG_RC_CONFIG([TAG])
7587
6998
  # -------------------------
7588
6999
  # Ensure that the configuration variables for the Windows resource compiler
@@ -7614,11 +7025,9 @@ _LT_LINKER_BOILERPLATE
7614
7025
 
7615
7026
  # Allow CC to be a program name with arguments.
7616
7027
  lt_save_CC="$CC"
7617
- lt_save_CFLAGS=$CFLAGS
7618
7028
  lt_save_GCC=$GCC
7619
7029
  GCC=
7620
7030
  CC=${RC-"windres"}
7621
- CFLAGS=
7622
7031
  compiler=$CC
7623
7032
  _LT_TAGVAR(compiler, $1)=$CC
7624
7033
  _LT_CC_BASENAME([$compiler])
@@ -7631,8 +7040,7 @@ fi
7631
7040
 
7632
7041
  GCC=$lt_save_GCC
7633
7042
  AC_LANG_RESTORE
7634
- CC=$lt_save_CC
7635
- CFLAGS=$lt_save_CFLAGS
7043
+ CC="$lt_save_CC"
7636
7044
  ])# _LT_LANG_RC_CONFIG
7637
7045
 
7638
7046
 
@@ -7652,13 +7060,6 @@ dnl aclocal-1.4 backwards compatibility:
7652
7060
  dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7653
7061
 
7654
7062
 
7655
- # LT_PROG_GO
7656
- # ----------
7657
- AC_DEFUN([LT_PROG_GO],
7658
- [AC_CHECK_TOOL(GOC, gccgo,)
7659
- ])
7660
-
7661
-
7662
7063
  # LT_PROG_RC
7663
7064
  # ----------
7664
7065
  AC_DEFUN([LT_PROG_RC],
@@ -7698,15 +7099,6 @@ _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
7698
7099
  AC_SUBST([OBJDUMP])
7699
7100
  ])
7700
7101
 
7701
- # _LT_DECL_DLLTOOL
7702
- # ----------------
7703
- # Ensure DLLTOOL variable is set.
7704
- m4_defun([_LT_DECL_DLLTOOL],
7705
- [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
7706
- test -z "$DLLTOOL" && DLLTOOL=dlltool
7707
- _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
7708
- AC_SUBST([DLLTOOL])
7709
- ])
7710
7102
 
7711
7103
  # _LT_DECL_SED
7712
7104
  # ------------
@@ -7800,8 +7192,8 @@ m4_defun([_LT_CHECK_SHELL_FEATURES],
7800
7192
  # Try some XSI features
7801
7193
  xsi_shell=no
7802
7194
  ( _lt_dummy="a/b/c"
7803
- test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7804
- = c,a/b,b/c, \
7195
+ test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7196
+ = c,a/b,, \
7805
7197
  && eval 'test $(( 1 + 1 )) -eq 2 \
7806
7198
  && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7807
7199
  && xsi_shell=yes
@@ -7840,162 +7232,206 @@ _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
7840
7232
  ])# _LT_CHECK_SHELL_FEATURES
7841
7233
 
7842
7234
 
7843
- # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
7844
- # ------------------------------------------------------
7845
- # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
7846
- # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
7847
- m4_defun([_LT_PROG_FUNCTION_REPLACE],
7848
- [dnl {
7849
- sed -e '/^$1 ()$/,/^} # $1 /c\
7850
- $1 ()\
7851
- {\
7852
- m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
7853
- } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
7854
- && mv -f "$cfgfile.tmp" "$cfgfile" \
7855
- || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7856
- test 0 -eq $? || _lt_function_replace_fail=:
7857
- ])
7235
+ # _LT_PROG_XSI_SHELLFNS
7236
+ # ---------------------
7237
+ # Bourne and XSI compatible variants of some useful shell functions.
7238
+ m4_defun([_LT_PROG_XSI_SHELLFNS],
7239
+ [case $xsi_shell in
7240
+ yes)
7241
+ cat << \_LT_EOF >> "$cfgfile"
7242
+
7243
+ # func_dirname file append nondir_replacement
7244
+ # Compute the dirname of FILE. If nonempty, add APPEND to the result,
7245
+ # otherwise set result to NONDIR_REPLACEMENT.
7246
+ func_dirname ()
7247
+ {
7248
+ case ${1} in
7249
+ */*) func_dirname_result="${1%/*}${2}" ;;
7250
+ * ) func_dirname_result="${3}" ;;
7251
+ esac
7252
+ }
7858
7253
 
7254
+ # func_basename file
7255
+ func_basename ()
7256
+ {
7257
+ func_basename_result="${1##*/}"
7258
+ }
7859
7259
 
7860
- # _LT_PROG_REPLACE_SHELLFNS
7861
- # -------------------------
7862
- # Replace existing portable implementations of several shell functions with
7863
- # equivalent extended shell implementations where those features are available..
7864
- m4_defun([_LT_PROG_REPLACE_SHELLFNS],
7865
- [if test x"$xsi_shell" = xyes; then
7866
- _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
7867
- case ${1} in
7868
- */*) func_dirname_result="${1%/*}${2}" ;;
7869
- * ) func_dirname_result="${3}" ;;
7870
- esac])
7871
-
7872
- _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
7873
- func_basename_result="${1##*/}"])
7874
-
7875
- _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
7876
- case ${1} in
7877
- */*) func_dirname_result="${1%/*}${2}" ;;
7878
- * ) func_dirname_result="${3}" ;;
7879
- esac
7880
- func_basename_result="${1##*/}"])
7260
+ # func_dirname_and_basename file append nondir_replacement
7261
+ # perform func_basename and func_dirname in a single function
7262
+ # call:
7263
+ # dirname: Compute the dirname of FILE. If nonempty,
7264
+ # add APPEND to the result, otherwise set result
7265
+ # to NONDIR_REPLACEMENT.
7266
+ # value returned in "$func_dirname_result"
7267
+ # basename: Compute filename of FILE.
7268
+ # value retuned in "$func_basename_result"
7269
+ # Implementation must be kept synchronized with func_dirname
7270
+ # and func_basename. For efficiency, we do not delegate to
7271
+ # those functions but instead duplicate the functionality here.
7272
+ func_dirname_and_basename ()
7273
+ {
7274
+ case ${1} in
7275
+ */*) func_dirname_result="${1%/*}${2}" ;;
7276
+ * ) func_dirname_result="${3}" ;;
7277
+ esac
7278
+ func_basename_result="${1##*/}"
7279
+ }
7881
7280
 
7882
- _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
7883
- # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7884
- # positional parameters, so assign one to ordinary parameter first.
7885
- func_stripname_result=${3}
7886
- func_stripname_result=${func_stripname_result#"${1}"}
7887
- func_stripname_result=${func_stripname_result%"${2}"}])
7281
+ # func_stripname prefix suffix name
7282
+ # strip PREFIX and SUFFIX off of NAME.
7283
+ # PREFIX and SUFFIX must not contain globbing or regex special
7284
+ # characters, hashes, percent signs, but SUFFIX may contain a leading
7285
+ # dot (in which case that matches only a dot).
7286
+ func_stripname ()
7287
+ {
7288
+ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7289
+ # positional parameters, so assign one to ordinary parameter first.
7290
+ func_stripname_result=${3}
7291
+ func_stripname_result=${func_stripname_result#"${1}"}
7292
+ func_stripname_result=${func_stripname_result%"${2}"}
7293
+ }
7888
7294
 
7889
- _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
7890
- func_split_long_opt_name=${1%%=*}
7891
- func_split_long_opt_arg=${1#*=}])
7295
+ # func_opt_split
7296
+ func_opt_split ()
7297
+ {
7298
+ func_opt_split_opt=${1%%=*}
7299
+ func_opt_split_arg=${1#*=}
7300
+ }
7892
7301
 
7893
- _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
7894
- func_split_short_opt_arg=${1#??}
7895
- func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
7302
+ # func_lo2o object
7303
+ func_lo2o ()
7304
+ {
7305
+ case ${1} in
7306
+ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7307
+ *) func_lo2o_result=${1} ;;
7308
+ esac
7309
+ }
7896
7310
 
7897
- _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
7898
- case ${1} in
7899
- *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7900
- *) func_lo2o_result=${1} ;;
7901
- esac])
7311
+ # func_xform libobj-or-source
7312
+ func_xform ()
7313
+ {
7314
+ func_xform_result=${1%.*}.lo
7315
+ }
7902
7316
 
7903
- _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
7317
+ # func_arith arithmetic-term...
7318
+ func_arith ()
7319
+ {
7320
+ func_arith_result=$(( $[*] ))
7321
+ }
7904
7322
 
7905
- _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
7323
+ # func_len string
7324
+ # STRING may not start with a hyphen.
7325
+ func_len ()
7326
+ {
7327
+ func_len_result=${#1}
7328
+ }
7906
7329
 
7907
- _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
7908
- fi
7330
+ _LT_EOF
7331
+ ;;
7332
+ *) # Bourne compatible functions.
7333
+ cat << \_LT_EOF >> "$cfgfile"
7909
7334
 
7910
- if test x"$lt_shell_append" = xyes; then
7911
- _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
7335
+ # func_dirname file append nondir_replacement
7336
+ # Compute the dirname of FILE. If nonempty, add APPEND to the result,
7337
+ # otherwise set result to NONDIR_REPLACEMENT.
7338
+ func_dirname ()
7339
+ {
7340
+ # Extract subdirectory from the argument.
7341
+ func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
7342
+ if test "X$func_dirname_result" = "X${1}"; then
7343
+ func_dirname_result="${3}"
7344
+ else
7345
+ func_dirname_result="$func_dirname_result${2}"
7346
+ fi
7347
+ }
7912
7348
 
7913
- _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
7914
- func_quote_for_eval "${2}"
7915
- dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
7916
- eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
7349
+ # func_basename file
7350
+ func_basename ()
7351
+ {
7352
+ func_basename_result=`$ECHO "${1}" | $SED "$basename"`
7353
+ }
7917
7354
 
7918
- # Save a `func_append' function call where possible by direct use of '+='
7919
- sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
7920
- && mv -f "$cfgfile.tmp" "$cfgfile" \
7921
- || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7922
- test 0 -eq $? || _lt_function_replace_fail=:
7923
- else
7924
- # Save a `func_append' function call even when '+=' is not available
7925
- sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
7926
- && mv -f "$cfgfile.tmp" "$cfgfile" \
7927
- || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7928
- test 0 -eq $? || _lt_function_replace_fail=:
7929
- fi
7355
+ dnl func_dirname_and_basename
7356
+ dnl A portable version of this function is already defined in general.m4sh
7357
+ dnl so there is no need for it here.
7930
7358
 
7931
- if test x"$_lt_function_replace_fail" = x":"; then
7932
- AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
7933
- fi
7934
- ])
7359
+ # func_stripname prefix suffix name
7360
+ # strip PREFIX and SUFFIX off of NAME.
7361
+ # PREFIX and SUFFIX must not contain globbing or regex special
7362
+ # characters, hashes, percent signs, but SUFFIX may contain a leading
7363
+ # dot (in which case that matches only a dot).
7364
+ # func_strip_suffix prefix name
7365
+ func_stripname ()
7366
+ {
7367
+ case ${2} in
7368
+ .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7369
+ *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7370
+ esac
7371
+ }
7935
7372
 
7936
- # _LT_PATH_CONVERSION_FUNCTIONS
7937
- # -----------------------------
7938
- # Determine which file name conversion functions should be used by
7939
- # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
7940
- # for certain cross-compile configurations and native mingw.
7941
- m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
7942
- [AC_REQUIRE([AC_CANONICAL_HOST])dnl
7943
- AC_REQUIRE([AC_CANONICAL_BUILD])dnl
7944
- AC_MSG_CHECKING([how to convert $build file names to $host format])
7945
- AC_CACHE_VAL(lt_cv_to_host_file_cmd,
7946
- [case $host in
7947
- *-*-mingw* )
7948
- case $build in
7949
- *-*-mingw* ) # actually msys
7950
- lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7951
- ;;
7952
- *-*-cygwin* )
7953
- lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7954
- ;;
7955
- * ) # otherwise, assume *nix
7956
- lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7957
- ;;
7958
- esac
7959
- ;;
7960
- *-*-cygwin* )
7961
- case $build in
7962
- *-*-mingw* ) # actually msys
7963
- lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7964
- ;;
7965
- *-*-cygwin* )
7966
- lt_cv_to_host_file_cmd=func_convert_file_noop
7967
- ;;
7968
- * ) # otherwise, assume *nix
7969
- lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7970
- ;;
7971
- esac
7972
- ;;
7973
- * ) # unhandled hosts (and "normal" native builds)
7974
- lt_cv_to_host_file_cmd=func_convert_file_noop
7975
- ;;
7373
+ # sed scripts:
7374
+ my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
7375
+ my_sed_long_arg='1s/^-[[^=]]*=//'
7376
+
7377
+ # func_opt_split
7378
+ func_opt_split ()
7379
+ {
7380
+ func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
7381
+ func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
7382
+ }
7383
+
7384
+ # func_lo2o object
7385
+ func_lo2o ()
7386
+ {
7387
+ func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
7388
+ }
7389
+
7390
+ # func_xform libobj-or-source
7391
+ func_xform ()
7392
+ {
7393
+ func_xform_result=`$ECHO "${1}" | $SED 's/\.[[^.]]*$/.lo/'`
7394
+ }
7395
+
7396
+ # func_arith arithmetic-term...
7397
+ func_arith ()
7398
+ {
7399
+ func_arith_result=`expr "$[@]"`
7400
+ }
7401
+
7402
+ # func_len string
7403
+ # STRING may not start with a hyphen.
7404
+ func_len ()
7405
+ {
7406
+ func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
7407
+ }
7408
+
7409
+ _LT_EOF
7976
7410
  esac
7977
- ])
7978
- to_host_file_cmd=$lt_cv_to_host_file_cmd
7979
- AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
7980
- _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
7981
- [0], [convert $build file names to $host format])dnl
7982
-
7983
- AC_MSG_CHECKING([how to convert $build file names to toolchain format])
7984
- AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
7985
- [#assume ordinary cross tools, or native build.
7986
- lt_cv_to_tool_file_cmd=func_convert_file_noop
7987
- case $host in
7988
- *-*-mingw* )
7989
- case $build in
7990
- *-*-mingw* ) # actually msys
7991
- lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7992
- ;;
7993
- esac
7411
+
7412
+ case $lt_shell_append in
7413
+ yes)
7414
+ cat << \_LT_EOF >> "$cfgfile"
7415
+
7416
+ # func_append var value
7417
+ # Append VALUE to the end of shell variable VAR.
7418
+ func_append ()
7419
+ {
7420
+ eval "$[1]+=\$[2]"
7421
+ }
7422
+ _LT_EOF
7994
7423
  ;;
7995
- esac
7424
+ *)
7425
+ cat << \_LT_EOF >> "$cfgfile"
7426
+
7427
+ # func_append var value
7428
+ # Append VALUE to the end of shell variable VAR.
7429
+ func_append ()
7430
+ {
7431
+ eval "$[1]=\$$[1]\$[2]"
7432
+ }
7433
+
7434
+ _LT_EOF
7435
+ ;;
7436
+ esac
7996
7437
  ])
7997
- to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7998
- AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
7999
- _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
8000
- [0], [convert $build files to toolchain format])dnl
8001
- ])# _LT_PATH_CONVERSION_FUNCTIONS