nutcracker 0.2.4.5 → 0.2.4.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (291) hide show
  1. data/ext/nutcracker/ChangeLog +0 -0
  2. data/ext/nutcracker/LICENSE +0 -0
  3. data/ext/nutcracker/Makefile.am +0 -0
  4. data/ext/nutcracker/Makefile.in +190 -82
  5. data/ext/nutcracker/NOTICE +0 -0
  6. data/ext/nutcracker/README.md +0 -0
  7. data/ext/nutcracker/aclocal.m4 +231 -122
  8. data/ext/nutcracker/conf/nutcracker.leaf.yml +0 -0
  9. data/ext/nutcracker/conf/nutcracker.root.yml +0 -0
  10. data/ext/nutcracker/conf/nutcracker.yml +0 -0
  11. data/ext/nutcracker/config.h.in +0 -15
  12. data/ext/nutcracker/config/config.guess +278 -248
  13. data/ext/nutcracker/config/config.sub +234 -77
  14. data/ext/nutcracker/config/depcomp +143 -39
  15. data/ext/nutcracker/config/install-sh +136 -116
  16. data/ext/nutcracker/config/ltmain.sh +1704 -788
  17. data/ext/nutcracker/config/missing +29 -65
  18. data/ext/nutcracker/configure +1998 -1052
  19. data/ext/nutcracker/configure.ac +2 -34
  20. data/ext/nutcracker/contrib/Makefile.am +0 -0
  21. data/ext/nutcracker/contrib/Makefile.in +120 -47
  22. data/ext/nutcracker/contrib/yaml-0.1.4.tar.gz +0 -0
  23. data/ext/nutcracker/extconf.rb +5 -2
  24. data/ext/nutcracker/m4/libtool.m4 +960 -396
  25. data/ext/nutcracker/m4/ltoptions.m4 +17 -2
  26. data/ext/nutcracker/m4/ltversion.m4 +6 -6
  27. data/ext/nutcracker/notes/c-styleguide.txt +0 -0
  28. data/ext/nutcracker/notes/debug.txt +0 -0
  29. data/ext/nutcracker/notes/memcache.txt +0 -0
  30. data/ext/nutcracker/notes/recommendation.md +0 -0
  31. data/ext/nutcracker/notes/redis.md +0 -0
  32. data/ext/nutcracker/notes/socket.txt +0 -0
  33. data/ext/nutcracker/scripts/nutcracker.init +0 -0
  34. data/ext/nutcracker/scripts/nutcracker.spec +0 -0
  35. data/ext/nutcracker/scripts/redis-check.py +0 -0
  36. data/ext/nutcracker/src/Makefile.am +1 -1
  37. data/ext/nutcracker/src/Makefile.in +167 -81
  38. data/ext/nutcracker/src/hashkit/Makefile.am +0 -0
  39. data/ext/nutcracker/src/hashkit/Makefile.in +72 -37
  40. data/ext/nutcracker/src/hashkit/nc_crc16.c +0 -0
  41. data/ext/nutcracker/src/hashkit/nc_crc32.c +0 -0
  42. data/ext/nutcracker/src/hashkit/nc_fnv.c +0 -0
  43. data/ext/nutcracker/src/hashkit/nc_hashkit.h +0 -0
  44. data/ext/nutcracker/src/hashkit/nc_hsieh.c +0 -0
  45. data/ext/nutcracker/src/hashkit/nc_jenkins.c +0 -0
  46. data/ext/nutcracker/src/hashkit/nc_ketama.c +0 -0
  47. data/ext/nutcracker/src/hashkit/nc_md5.c +0 -0
  48. data/ext/nutcracker/src/hashkit/nc_modula.c +0 -0
  49. data/ext/nutcracker/src/hashkit/nc_murmur.c +0 -0
  50. data/ext/nutcracker/src/hashkit/nc_one_at_a_time.c +0 -0
  51. data/ext/nutcracker/src/hashkit/nc_random.c +0 -0
  52. data/ext/nutcracker/src/nc.c +0 -0
  53. data/ext/nutcracker/src/nc_array.c +0 -0
  54. data/ext/nutcracker/src/nc_array.h +0 -0
  55. data/ext/nutcracker/src/nc_client.c +0 -0
  56. data/ext/nutcracker/src/nc_client.h +0 -0
  57. data/ext/nutcracker/src/nc_conf.c +0 -0
  58. data/ext/nutcracker/src/nc_conf.h +0 -0
  59. data/ext/nutcracker/src/nc_connection.c +0 -0
  60. data/ext/nutcracker/src/nc_connection.h +0 -0
  61. data/ext/nutcracker/src/nc_core.c +26 -29
  62. data/ext/nutcracker/src/nc_core.h +5 -13
  63. data/ext/nutcracker/src/{nc_epoll.c → nc_event.c} +30 -94
  64. data/ext/nutcracker/src/nc_event.h +13 -33
  65. data/ext/nutcracker/src/nc_log.c +0 -0
  66. data/ext/nutcracker/src/nc_log.h +0 -0
  67. data/ext/nutcracker/src/nc_mbuf.c +0 -0
  68. data/ext/nutcracker/src/nc_mbuf.h +0 -0
  69. data/ext/nutcracker/src/nc_message.c +0 -0
  70. data/ext/nutcracker/src/nc_message.h +0 -0
  71. data/ext/nutcracker/src/nc_proxy.c +8 -8
  72. data/ext/nutcracker/src/nc_proxy.h +0 -0
  73. data/ext/nutcracker/src/nc_queue.h +0 -0
  74. data/ext/nutcracker/src/nc_rbtree.c +0 -0
  75. data/ext/nutcracker/src/nc_rbtree.h +0 -0
  76. data/ext/nutcracker/src/nc_request.c +3 -3
  77. data/ext/nutcracker/src/nc_response.c +6 -4
  78. data/ext/nutcracker/src/nc_server.c +5 -5
  79. data/ext/nutcracker/src/nc_server.h +0 -0
  80. data/ext/nutcracker/src/nc_signal.c +0 -0
  81. data/ext/nutcracker/src/nc_signal.h +0 -0
  82. data/ext/nutcracker/src/nc_stats.c +21 -16
  83. data/ext/nutcracker/src/nc_stats.h +4 -3
  84. data/ext/nutcracker/src/nc_string.c +0 -0
  85. data/ext/nutcracker/src/nc_string.h +0 -0
  86. data/ext/nutcracker/src/nc_util.c +0 -16
  87. data/ext/nutcracker/src/nc_util.h +0 -1
  88. data/ext/nutcracker/src/proto/Makefile.am +0 -0
  89. data/ext/nutcracker/src/proto/Makefile.in +72 -37
  90. data/ext/nutcracker/src/proto/nc_memcache.c +0 -0
  91. data/ext/nutcracker/src/proto/nc_proto.h +0 -0
  92. data/ext/nutcracker/src/proto/nc_redis.c +0 -0
  93. data/lib/nutcracker/version.rb +1 -1
  94. metadata +3 -200
  95. data/ext/nutcracker/Makefile +0 -643
  96. data/ext/nutcracker/autom4te.cache/output.0 +0 -18664
  97. data/ext/nutcracker/autom4te.cache/output.1 +0 -18664
  98. data/ext/nutcracker/autom4te.cache/output.2 +0 -18664
  99. data/ext/nutcracker/autom4te.cache/requests +0 -494
  100. data/ext/nutcracker/autom4te.cache/traces.0 +0 -2415
  101. data/ext/nutcracker/autom4te.cache/traces.1 +0 -945
  102. data/ext/nutcracker/autom4te.cache/traces.2 +0 -2415
  103. data/ext/nutcracker/config.h +0 -332
  104. data/ext/nutcracker/config.log +0 -2684
  105. data/ext/nutcracker/config.status +0 -2317
  106. data/ext/nutcracker/contrib/Makefile +0 -494
  107. data/ext/nutcracker/contrib/yaml-0.1.4/Makefile +0 -736
  108. data/ext/nutcracker/contrib/yaml-0.1.4/autom4te.cache/output.0 +0 -13102
  109. data/ext/nutcracker/contrib/yaml-0.1.4/autom4te.cache/output.1 +0 -13085
  110. data/ext/nutcracker/contrib/yaml-0.1.4/autom4te.cache/output.2 +0 -13085
  111. data/ext/nutcracker/contrib/yaml-0.1.4/autom4te.cache/requests +0 -476
  112. data/ext/nutcracker/contrib/yaml-0.1.4/autom4te.cache/traces.0 +0 -2339
  113. data/ext/nutcracker/contrib/yaml-0.1.4/autom4te.cache/traces.1 +0 -545
  114. data/ext/nutcracker/contrib/yaml-0.1.4/autom4te.cache/traces.2 +0 -2339
  115. data/ext/nutcracker/contrib/yaml-0.1.4/config.h +0 -81
  116. data/ext/nutcracker/contrib/yaml-0.1.4/config.h.in~ +0 -80
  117. data/ext/nutcracker/contrib/yaml-0.1.4/config.log +0 -688
  118. data/ext/nutcracker/contrib/yaml-0.1.4/config.status +0 -2032
  119. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/annotated.html +0 -51
  120. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/bc_s.png +0 -0
  121. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/classes.html +0 -41
  122. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/closed.png +0 -0
  123. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/doxygen.css +0 -656
  124. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/doxygen.png +0 -0
  125. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/files.html +0 -40
  126. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions.html +0 -91
  127. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x62.html +0 -84
  128. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x63.html +0 -87
  129. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x64.html +0 -83
  130. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x65.html +0 -110
  131. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x66.html +0 -79
  132. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x68.html +0 -80
  133. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x69.html +0 -92
  134. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x6b.html +0 -71
  135. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x6c.html +0 -88
  136. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x6d.html +0 -96
  137. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x6e.html +0 -71
  138. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x6f.html +0 -80
  139. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x70.html +0 -100
  140. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x71.html +0 -71
  141. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x72.html +0 -87
  142. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x73.html +0 -163
  143. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x74.html +0 -115
  144. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x75.html +0 -71
  145. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x76.html +0 -80
  146. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x77.html +0 -77
  147. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars.html +0 -91
  148. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x62.html +0 -84
  149. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x63.html +0 -87
  150. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x64.html +0 -83
  151. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x65.html +0 -110
  152. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x66.html +0 -79
  153. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x68.html +0 -80
  154. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x69.html +0 -92
  155. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x6b.html +0 -71
  156. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x6c.html +0 -88
  157. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x6d.html +0 -96
  158. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x6e.html +0 -71
  159. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x6f.html +0 -80
  160. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x70.html +0 -100
  161. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x71.html +0 -71
  162. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x72.html +0 -87
  163. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x73.html +0 -163
  164. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x74.html +0 -115
  165. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x75.html +0 -71
  166. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x76.html +0 -80
  167. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x77.html +0 -77
  168. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/globals.html +0 -667
  169. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/globals_defs.html +0 -81
  170. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/globals_enum.html +0 -78
  171. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/globals_eval.html +0 -373
  172. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/globals_func.html +0 -196
  173. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/globals_type.html +0 -126
  174. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/group__basic.html +0 -320
  175. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/group__emitter.html +0 -819
  176. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/group__events.html +0 -664
  177. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/group__export.html +0 -60
  178. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/group__nodes.html +0 -795
  179. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/group__parser.html +0 -606
  180. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/group__styles.html +0 -222
  181. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/group__tokens.html +0 -246
  182. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/group__version.html +0 -106
  183. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/index.html +0 -31
  184. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/modules.html +0 -42
  185. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/nav_f.png +0 -0
  186. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/nav_h.png +0 -0
  187. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/open.png +0 -0
  188. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__alias__data__s.html +0 -108
  189. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__document__s.html +0 -235
  190. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__emitter__s.html +0 -1300
  191. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__event__s.html +0 -496
  192. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__mark__s.html +0 -108
  193. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__node__pair__s.html +0 -91
  194. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__node__s.html +0 -420
  195. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__parser__s.html +0 -1229
  196. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__simple__key__s.html +0 -97
  197. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__tag__directive__s.html +0 -91
  198. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__token__s.html +0 -413
  199. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__version__directive__s.html +0 -91
  200. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/tab_a.png +0 -0
  201. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/tab_b.png +0 -0
  202. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/tab_h.png +0 -0
  203. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/tab_s.png +0 -0
  204. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/tabs.css +0 -59
  205. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/yaml_8h.html +0 -525
  206. data/ext/nutcracker/contrib/yaml-0.1.4/include/Makefile.am +0 -17
  207. data/ext/nutcracker/contrib/yaml-0.1.4/include/Makefile.in +0 -470
  208. data/ext/nutcracker/contrib/yaml-0.1.4/libtool +0 -8890
  209. data/ext/nutcracker/contrib/yaml-0.1.4/src/Makefile +0 -484
  210. data/ext/nutcracker/contrib/yaml-0.1.4/src/api.lo +0 -12
  211. data/ext/nutcracker/contrib/yaml-0.1.4/src/api.o +0 -0
  212. data/ext/nutcracker/contrib/yaml-0.1.4/src/dumper.lo +0 -12
  213. data/ext/nutcracker/contrib/yaml-0.1.4/src/dumper.o +0 -0
  214. data/ext/nutcracker/contrib/yaml-0.1.4/src/emitter.lo +0 -12
  215. data/ext/nutcracker/contrib/yaml-0.1.4/src/emitter.o +0 -0
  216. data/ext/nutcracker/contrib/yaml-0.1.4/src/libyaml.la +0 -41
  217. data/ext/nutcracker/contrib/yaml-0.1.4/src/loader.lo +0 -12
  218. data/ext/nutcracker/contrib/yaml-0.1.4/src/loader.o +0 -0
  219. data/ext/nutcracker/contrib/yaml-0.1.4/src/parser.lo +0 -12
  220. data/ext/nutcracker/contrib/yaml-0.1.4/src/parser.o +0 -0
  221. data/ext/nutcracker/contrib/yaml-0.1.4/src/reader.lo +0 -12
  222. data/ext/nutcracker/contrib/yaml-0.1.4/src/reader.o +0 -0
  223. data/ext/nutcracker/contrib/yaml-0.1.4/src/scanner.lo +0 -12
  224. data/ext/nutcracker/contrib/yaml-0.1.4/src/scanner.o +0 -0
  225. data/ext/nutcracker/contrib/yaml-0.1.4/src/writer.lo +0 -12
  226. data/ext/nutcracker/contrib/yaml-0.1.4/src/writer.o +0 -0
  227. data/ext/nutcracker/contrib/yaml-0.1.4/stamp-h1 +0 -1
  228. data/ext/nutcracker/contrib/yaml-0.1.4/tests/Makefile +0 -675
  229. data/ext/nutcracker/contrib/yaml-0.1.4/tests/example-deconstructor +0 -0
  230. data/ext/nutcracker/contrib/yaml-0.1.4/tests/example-deconstructor-alt +0 -0
  231. data/ext/nutcracker/contrib/yaml-0.1.4/tests/example-deconstructor-alt.o +0 -0
  232. data/ext/nutcracker/contrib/yaml-0.1.4/tests/example-deconstructor.o +0 -0
  233. data/ext/nutcracker/contrib/yaml-0.1.4/tests/example-reformatter +0 -0
  234. data/ext/nutcracker/contrib/yaml-0.1.4/tests/example-reformatter-alt +0 -0
  235. data/ext/nutcracker/contrib/yaml-0.1.4/tests/example-reformatter-alt.o +0 -0
  236. data/ext/nutcracker/contrib/yaml-0.1.4/tests/example-reformatter.o +0 -0
  237. data/ext/nutcracker/contrib/yaml-0.1.4/tests/run-dumper +0 -0
  238. data/ext/nutcracker/contrib/yaml-0.1.4/tests/run-dumper.o +0 -0
  239. data/ext/nutcracker/contrib/yaml-0.1.4/tests/run-emitter +0 -0
  240. data/ext/nutcracker/contrib/yaml-0.1.4/tests/run-emitter.o +0 -0
  241. data/ext/nutcracker/contrib/yaml-0.1.4/tests/run-loader +0 -0
  242. data/ext/nutcracker/contrib/yaml-0.1.4/tests/run-loader.o +0 -0
  243. data/ext/nutcracker/contrib/yaml-0.1.4/tests/run-parser +0 -0
  244. data/ext/nutcracker/contrib/yaml-0.1.4/tests/run-parser.o +0 -0
  245. data/ext/nutcracker/contrib/yaml-0.1.4/tests/run-scanner +0 -0
  246. data/ext/nutcracker/contrib/yaml-0.1.4/tests/run-scanner.o +0 -0
  247. data/ext/nutcracker/contrib/yaml-0.1.4/yaml-0.1.pc +0 -10
  248. data/ext/nutcracker/contrib/yaml-0.1.4/yaml-0.1.pc.in +0 -10
  249. data/ext/nutcracker/exconf.rb +0 -0
  250. data/ext/nutcracker/libtool +0 -9403
  251. data/ext/nutcracker/src/Makefile +0 -647
  252. data/ext/nutcracker/src/hashkit/Makefile +0 -476
  253. data/ext/nutcracker/src/hashkit/libhashkit.a +0 -0
  254. data/ext/nutcracker/src/hashkit/nc_crc16.o +0 -0
  255. data/ext/nutcracker/src/hashkit/nc_crc32.o +0 -0
  256. data/ext/nutcracker/src/hashkit/nc_fnv.o +0 -0
  257. data/ext/nutcracker/src/hashkit/nc_hsieh.o +0 -0
  258. data/ext/nutcracker/src/hashkit/nc_jenkins.o +0 -0
  259. data/ext/nutcracker/src/hashkit/nc_ketama.o +0 -0
  260. data/ext/nutcracker/src/hashkit/nc_md5.o +0 -0
  261. data/ext/nutcracker/src/hashkit/nc_modula.o +0 -0
  262. data/ext/nutcracker/src/hashkit/nc_murmur.o +0 -0
  263. data/ext/nutcracker/src/hashkit/nc_one_at_a_time.o +0 -0
  264. data/ext/nutcracker/src/hashkit/nc_random.o +0 -0
  265. data/ext/nutcracker/src/nc.o +0 -0
  266. data/ext/nutcracker/src/nc_array.o +0 -0
  267. data/ext/nutcracker/src/nc_client.o +0 -0
  268. data/ext/nutcracker/src/nc_conf.o +0 -0
  269. data/ext/nutcracker/src/nc_connection.o +0 -0
  270. data/ext/nutcracker/src/nc_core.o +0 -0
  271. data/ext/nutcracker/src/nc_epoll.o +0 -0
  272. data/ext/nutcracker/src/nc_kqueue.c +0 -296
  273. data/ext/nutcracker/src/nc_kqueue.o +0 -0
  274. data/ext/nutcracker/src/nc_log.o +0 -0
  275. data/ext/nutcracker/src/nc_mbuf.o +0 -0
  276. data/ext/nutcracker/src/nc_message.o +0 -0
  277. data/ext/nutcracker/src/nc_proxy.o +0 -0
  278. data/ext/nutcracker/src/nc_rbtree.o +0 -0
  279. data/ext/nutcracker/src/nc_request.o +0 -0
  280. data/ext/nutcracker/src/nc_response.o +0 -0
  281. data/ext/nutcracker/src/nc_server.o +0 -0
  282. data/ext/nutcracker/src/nc_signal.o +0 -0
  283. data/ext/nutcracker/src/nc_stats.o +0 -0
  284. data/ext/nutcracker/src/nc_string.o +0 -0
  285. data/ext/nutcracker/src/nc_util.o +0 -0
  286. data/ext/nutcracker/src/nutcracker +0 -0
  287. data/ext/nutcracker/src/proto/Makefile +0 -454
  288. data/ext/nutcracker/src/proto/libproto.a +0 -0
  289. data/ext/nutcracker/src/proto/nc_memcache.o +0 -0
  290. data/ext/nutcracker/src/proto/nc_redis.o +0 -0
  291. data/ext/nutcracker/stamp-h1 +0 -1
@@ -67,10 +67,7 @@ AC_CHECK_HEADERS([fcntl.h float.h limits.h stddef.h stdlib.h string.h unistd.h])
67
67
  AC_CHECK_HEADERS([inttypes.h stdint.h])
68
68
  AC_CHECK_HEADERS([sys/ioctl.h sys/time.h sys/uio.h])
69
69
  AC_CHECK_HEADERS([sys/socket.h sys/un.h netinet/in.h arpa/inet.h netdb.h])
70
- AC_CHECK_HEADERS([execinfo.h],
71
- [AC_DEFINE(HAVE_BACKTRACE, [1], [Define to 1 if backtrace is supported])], [])
72
- AC_CHECK_HEADERS([sys/epoll.h], [], [])
73
- AC_CHECK_HEADERS([sys/event.h], [], [])
70
+ AC_CHECK_HEADERS([sys/epoll.h], [], [AC_MSG_ERROR([required sys/epoll.h header file is missing])])
74
71
 
75
72
  # Checks for libraries
76
73
  AC_CHECK_LIB([m], [pow])
@@ -103,36 +100,7 @@ main(int argc, char **argv)
103
100
  exit(0);
104
101
  }
105
102
  ], [ac_cv_epoll_works=yes], [ac_cv_epoll_works=no]))
106
- AS_IF([test "x$ac_cv_epoll_works" = "xyes"],
107
- [AC_DEFINE([HAVE_EPOLL], [1], [Define to 1 if epoll is supported])], [])
108
-
109
- AC_CACHE_CHECK([if kqueue works], [ac_cv_kqueue_works],
110
- AC_TRY_RUN([
111
- #include <stdio.h>
112
- #include <stdlib.h>
113
- #include <sys/types.h>
114
- #include <sys/event.h>
115
- #include <sys/time.h>
116
- int
117
- main(int argc, char **argv)
118
- {
119
- int fd;
120
-
121
- fd = kqueue();
122
- if (fd < 0) {
123
- perror("kqueue:");
124
- exit(1);
125
- }
126
- exit(0);
127
- }
128
- ], [ac_cv_kqueue_works=yes], [ac_cv_kqueue_works=no]))
129
- AS_IF([test "x$ac_cv_kqueue_works" = "xyes"],
130
- [AC_DEFINE([HAVE_KQUEUE], [1], [Define to 1 if kqueue is supported])], [])
131
-
132
- AS_IF([test "x$ac_cv_epoll_works" = "xno" &&
133
- test "x$ac_cv_kqueue_works" = "xno"],
134
- [AC_MSG_ERROR([either epoll or kqueue support is required])], [])
135
-
103
+ AS_IF([test "x$ac_cv_epoll_works" = "xyes"], [], [AC_MSG_FAILURE([Linux epoll(7) API is missing])])
136
104
 
137
105
  # Package options
138
106
  AC_MSG_CHECKING([whether to enable debug logs and asserts])
File without changes
@@ -1,8 +1,9 @@
1
- # Makefile.in generated by automake 1.10 from Makefile.am.
1
+ # Makefile.in generated by automake 1.11.3 from Makefile.am.
2
2
  # @configure_input@
3
3
 
4
4
  # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
- # 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
5
+ # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
6
+ # Foundation, Inc.
6
7
  # This Makefile.in is free software; the Free Software Foundation
7
8
  # gives unlimited permission to copy and/or distribute it,
8
9
  # with or without modifications, as long as this notice is preserved.
@@ -15,8 +16,9 @@
15
16
  @SET_MAKE@
16
17
  VPATH = @srcdir@
17
18
  pkgdatadir = $(datadir)/@PACKAGE@
18
- pkglibdir = $(libdir)/@PACKAGE@
19
19
  pkgincludedir = $(includedir)/@PACKAGE@
20
+ pkglibdir = $(libdir)/@PACKAGE@
21
+ pkglibexecdir = $(libexecdir)/@PACKAGE@
20
22
  am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
21
23
  install_sh_DATA = $(install_sh) -c -m 644
22
24
  install_sh_PROGRAM = $(install_sh) -c
@@ -43,6 +45,7 @@ am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
43
45
  mkinstalldirs = $(install_sh) -d
44
46
  CONFIG_HEADER = $(top_builddir)/config.h
45
47
  CONFIG_CLEAN_FILES =
48
+ CONFIG_CLEAN_VPATH_FILES =
46
49
  SOURCES =
47
50
  DIST_SOURCES =
48
51
  RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
@@ -54,10 +57,38 @@ RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
54
57
  ps-recursive uninstall-recursive
55
58
  RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
56
59
  distclean-recursive maintainer-clean-recursive
60
+ AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
61
+ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
62
+ distdir
57
63
  ETAGS = etags
58
64
  CTAGS = ctags
59
65
  DIST_SUBDIRS = $(SUBDIRS)
60
66
  DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
67
+ am__relativize = \
68
+ dir0=`pwd`; \
69
+ sed_first='s,^\([^/]*\)/.*$$,\1,'; \
70
+ sed_rest='s,^[^/]*/*,,'; \
71
+ sed_last='s,^.*/\([^/]*\)$$,\1,'; \
72
+ sed_butlast='s,/*[^/]*$$,,'; \
73
+ while test -n "$$dir1"; do \
74
+ first=`echo "$$dir1" | sed -e "$$sed_first"`; \
75
+ if test "$$first" != "."; then \
76
+ if test "$$first" = ".."; then \
77
+ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
78
+ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
79
+ else \
80
+ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
81
+ if test "$$first2" = "$$first"; then \
82
+ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
83
+ else \
84
+ dir2="../$$dir2"; \
85
+ fi; \
86
+ dir0="$$dir0"/"$$first"; \
87
+ fi; \
88
+ fi; \
89
+ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
90
+ done; \
91
+ reldir="$$dir2"
61
92
  ACLOCAL = @ACLOCAL@
62
93
  AMTAR = @AMTAR@
63
94
  AR = @AR@
@@ -77,6 +108,7 @@ CXXFLAGS = @CXXFLAGS@
77
108
  CYGPATH_W = @CYGPATH_W@
78
109
  DEFS = @DEFS@
79
110
  DEPDIR = @DEPDIR@
111
+ DLLTOOL = @DLLTOOL@
80
112
  DSYMUTIL = @DSYMUTIL@
81
113
  DUMPBIN = @DUMPBIN@
82
114
  ECHO_C = @ECHO_C@
@@ -100,6 +132,7 @@ LIPO = @LIPO@
100
132
  LN_S = @LN_S@
101
133
  LTLIBOBJS = @LTLIBOBJS@
102
134
  MAKEINFO = @MAKEINFO@
135
+ MANIFEST_TOOL = @MANIFEST_TOOL@
103
136
  MKDIR_P = @MKDIR_P@
104
137
  NM = @NM@
105
138
  NMEDIT = @NMEDIT@
@@ -125,6 +158,7 @@ abs_builddir = @abs_builddir@
125
158
  abs_srcdir = @abs_srcdir@
126
159
  abs_top_builddir = @abs_top_builddir@
127
160
  abs_top_srcdir = @abs_top_srcdir@
161
+ ac_ct_AR = @ac_ct_AR@
128
162
  ac_ct_CC = @ac_ct_CC@
129
163
  ac_ct_CXX = @ac_ct_CXX@
130
164
  ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
@@ -183,14 +217,14 @@ $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
183
217
  @for dep in $?; do \
184
218
  case '$(am__configure_deps)' in \
185
219
  *$$dep*) \
186
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
187
- && exit 0; \
220
+ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
221
+ && { if test -f $@; then exit 0; else break; fi; }; \
188
222
  exit 1;; \
189
223
  esac; \
190
224
  done; \
191
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign contrib/Makefile'; \
192
- cd $(top_srcdir) && \
193
- $(AUTOMAKE) --foreign contrib/Makefile
225
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign contrib/Makefile'; \
226
+ $(am__cd) $(top_srcdir) && \
227
+ $(AUTOMAKE) --foreign contrib/Makefile
194
228
  .PRECIOUS: Makefile
195
229
  Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
196
230
  @case '$?' in \
@@ -208,6 +242,7 @@ $(top_srcdir)/configure: $(am__configure_deps)
208
242
  cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
209
243
  $(ACLOCAL_M4): $(am__aclocal_m4_deps)
210
244
  cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
245
+ $(am__aclocal_m4_deps):
211
246
 
212
247
  mostlyclean-libtool:
213
248
  -rm -f *.lo
@@ -222,7 +257,7 @@ clean-libtool:
222
257
  # (which will cause the Makefiles to be regenerated when you run `make');
223
258
  # (2) otherwise, pass the desired values on the `make' command line.
224
259
  $(RECURSIVE_TARGETS):
225
- @failcom='exit 1'; \
260
+ @fail= failcom='exit 1'; \
226
261
  for f in x $$MAKEFLAGS; do \
227
262
  case $$f in \
228
263
  *=* | --[!k]*);; \
@@ -239,7 +274,7 @@ $(RECURSIVE_TARGETS):
239
274
  else \
240
275
  local_target="$$target"; \
241
276
  fi; \
242
- (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
277
+ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
243
278
  || eval $$failcom; \
244
279
  done; \
245
280
  if test "$$dot_seen" = "no"; then \
@@ -247,7 +282,7 @@ $(RECURSIVE_TARGETS):
247
282
  fi; test -z "$$fail"
248
283
 
249
284
  $(RECURSIVE_CLEAN_TARGETS):
250
- @failcom='exit 1'; \
285
+ @fail= failcom='exit 1'; \
251
286
  for f in x $$MAKEFLAGS; do \
252
287
  case $$f in \
253
288
  *=* | --[!k]*);; \
@@ -273,16 +308,16 @@ $(RECURSIVE_CLEAN_TARGETS):
273
308
  else \
274
309
  local_target="$$target"; \
275
310
  fi; \
276
- (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
311
+ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
277
312
  || eval $$failcom; \
278
313
  done && test -z "$$fail"
279
314
  tags-recursive:
280
315
  list='$(SUBDIRS)'; for subdir in $$list; do \
281
- test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
316
+ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
282
317
  done
283
318
  ctags-recursive:
284
319
  list='$(SUBDIRS)'; for subdir in $$list; do \
285
- test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
320
+ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
286
321
  done
287
322
 
288
323
  ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
@@ -290,14 +325,14 @@ ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
290
325
  unique=`for i in $$list; do \
291
326
  if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
292
327
  done | \
293
- $(AWK) ' { files[$$0] = 1; } \
294
- END { for (i in files) print i; }'`; \
328
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
329
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
295
330
  mkid -fID $$unique
296
331
  tags: TAGS
297
332
 
298
333
  TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
299
334
  $(TAGS_FILES) $(LISP)
300
- tags=; \
335
+ set x; \
301
336
  here=`pwd`; \
302
337
  if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
303
338
  include_option=--etags-include; \
@@ -309,39 +344,43 @@ TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
309
344
  list='$(SUBDIRS)'; for subdir in $$list; do \
310
345
  if test "$$subdir" = .; then :; else \
311
346
  test ! -f $$subdir/TAGS || \
312
- tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
347
+ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
313
348
  fi; \
314
349
  done; \
315
350
  list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
316
351
  unique=`for i in $$list; do \
317
352
  if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
318
353
  done | \
319
- $(AWK) ' { files[$$0] = 1; } \
320
- END { for (i in files) print i; }'`; \
321
- if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
354
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
355
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
356
+ shift; \
357
+ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
322
358
  test -n "$$unique" || unique=$$empty_fix; \
323
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
324
- $$tags $$unique; \
359
+ if test $$# -gt 0; then \
360
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
361
+ "$$@" $$unique; \
362
+ else \
363
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
364
+ $$unique; \
365
+ fi; \
325
366
  fi
326
367
  ctags: CTAGS
327
368
  CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
328
369
  $(TAGS_FILES) $(LISP)
329
- tags=; \
330
- here=`pwd`; \
331
370
  list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
332
371
  unique=`for i in $$list; do \
333
372
  if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
334
373
  done | \
335
- $(AWK) ' { files[$$0] = 1; } \
336
- END { for (i in files) print i; }'`; \
337
- test -z "$(CTAGS_ARGS)$$tags$$unique" \
374
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
375
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
376
+ test -z "$(CTAGS_ARGS)$$unique" \
338
377
  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
339
- $$tags $$unique
378
+ $$unique
340
379
 
341
380
  GTAGS:
342
381
  here=`$(am__cd) $(top_builddir) && pwd` \
343
- && cd $(top_srcdir) \
344
- && gtags -i $(GTAGS_ARGS) $$here
382
+ && $(am__cd) $(top_srcdir) \
383
+ && gtags -i $(GTAGS_ARGS) "$$here"
345
384
 
346
385
  distclean-tags:
347
386
  -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
@@ -362,29 +401,44 @@ distdir: $(DISTFILES)
362
401
  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
363
402
  if test -d $$d/$$file; then \
364
403
  dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
404
+ if test -d "$(distdir)/$$file"; then \
405
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
406
+ fi; \
365
407
  if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
366
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
408
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
409
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
367
410
  fi; \
368
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
411
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
369
412
  else \
370
- test -f $(distdir)/$$file \
371
- || cp -p $$d/$$file $(distdir)/$$file \
413
+ test -f "$(distdir)/$$file" \
414
+ || cp -p $$d/$$file "$(distdir)/$$file" \
372
415
  || exit 1; \
373
416
  fi; \
374
417
  done
375
- list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
418
+ @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
376
419
  if test "$$subdir" = .; then :; else \
377
420
  test -d "$(distdir)/$$subdir" \
378
421
  || $(MKDIR_P) "$(distdir)/$$subdir" \
379
422
  || exit 1; \
380
- distdir=`$(am__cd) $(distdir) && pwd`; \
381
- top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
382
- (cd $$subdir && \
423
+ fi; \
424
+ done
425
+ @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
426
+ if test "$$subdir" = .; then :; else \
427
+ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
428
+ $(am__relativize); \
429
+ new_distdir=$$reldir; \
430
+ dir1=$$subdir; dir2="$(top_distdir)"; \
431
+ $(am__relativize); \
432
+ new_top_distdir=$$reldir; \
433
+ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
434
+ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
435
+ ($(am__cd) $$subdir && \
383
436
  $(MAKE) $(AM_MAKEFLAGS) \
384
- top_distdir="$$top_distdir" \
385
- distdir="$$distdir/$$subdir" \
437
+ top_distdir="$$new_top_distdir" \
438
+ distdir="$$new_distdir" \
386
439
  am__remove_distdir=: \
387
440
  am__skip_length_check=: \
441
+ am__skip_mode_fix=: \
388
442
  distdir) \
389
443
  || exit 1; \
390
444
  fi; \
@@ -404,16 +458,22 @@ install-am: all-am
404
458
 
405
459
  installcheck: installcheck-recursive
406
460
  install-strip:
407
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
408
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
409
- `test -z '$(STRIP)' || \
410
- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
461
+ if test -z '$(STRIP)'; then \
462
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
463
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
464
+ install; \
465
+ else \
466
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
467
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
468
+ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
469
+ fi
411
470
  mostlyclean-generic:
412
471
 
413
472
  clean-generic:
414
473
 
415
474
  distclean-generic:
416
475
  -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
476
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
417
477
 
418
478
  maintainer-clean-generic:
419
479
  @echo "This command is intended for maintainers to use"
@@ -432,6 +492,8 @@ dvi-am:
432
492
 
433
493
  html: html-recursive
434
494
 
495
+ html-am:
496
+
435
497
  info: info-recursive
436
498
 
437
499
  info-am:
@@ -440,18 +502,28 @@ install-data-am:
440
502
 
441
503
  install-dvi: install-dvi-recursive
442
504
 
505
+ install-dvi-am:
506
+
443
507
  install-exec-am:
444
508
 
445
509
  install-html: install-html-recursive
446
510
 
511
+ install-html-am:
512
+
447
513
  install-info: install-info-recursive
448
514
 
515
+ install-info-am:
516
+
449
517
  install-man:
450
518
 
451
519
  install-pdf: install-pdf-recursive
452
520
 
521
+ install-pdf-am:
522
+
453
523
  install-ps: install-ps-recursive
454
524
 
525
+ install-ps-am:
526
+
455
527
  installcheck-am:
456
528
 
457
529
  maintainer-clean: maintainer-clean-recursive
@@ -472,8 +544,8 @@ ps-am:
472
544
 
473
545
  uninstall-am:
474
546
 
475
- .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
476
- install-strip
547
+ .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
548
+ install-am install-strip tags-recursive
477
549
 
478
550
  .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
479
551
  all all-am check check-am clean clean-generic clean-libtool \
@@ -489,6 +561,7 @@ uninstall-am:
489
561
  mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
490
562
  uninstall uninstall-am
491
563
 
564
+
492
565
  # Tell versions [3.59,3.63) of GNU make to not export all variables.
493
566
  # Otherwise a system limit (for SysV at least) may be exceeded.
494
567
  .NOEXPORT:
File without changes
@@ -1,2 +1,5 @@
1
- system "./configure --prefix=#{File.expand_path('..',__FILE__)}"
2
- system 'make'
1
+
2
+ raise "no support for #{RUBY_PLATFORM}" if RUBY_PLATFORM =~ /darwin|mswin|mingw/
3
+ system "./configure --prefix=#{File.expand_path('..',__FILE__)}"
4
+ system 'make'
5
+
@@ -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 Free Software Foundation,
5
- # Inc.
4
+ # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5
+ # Foundation, 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 Free Software Foundation,
15
- # Inc.
14
+ # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15
+ # Foundation, Inc.
16
16
  # Written by Gordon Matzigkeit, 1996
17
17
  #
18
18
  # This file is part of GNU Libtool.
@@ -146,6 +146,8 @@ 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
149
151
  _LT_DECL([], [host_alias], [0], [The host system])dnl
150
152
  _LT_DECL([], [host], [0])dnl
151
153
  _LT_DECL([], [host_os], [0])dnl
@@ -168,10 +170,13 @@ _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
168
170
  dnl
169
171
  m4_require([_LT_FILEUTILS_DEFAULTS])dnl
170
172
  m4_require([_LT_CHECK_SHELL_FEATURES])dnl
173
+ m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
171
174
  m4_require([_LT_CMD_RELOAD])dnl
172
175
  m4_require([_LT_CHECK_MAGIC_METHOD])dnl
176
+ m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
173
177
  m4_require([_LT_CMD_OLD_ARCHIVE])dnl
174
178
  m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
179
+ m4_require([_LT_WITH_SYSROOT])dnl
175
180
 
176
181
  _LT_CONFIG_LIBTOOL_INIT([
177
182
  # See if we are running on zsh, and set the options which allow our
@@ -634,7 +639,7 @@ m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
634
639
  m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
635
640
  configured by $[0], generated by m4_PACKAGE_STRING.
636
641
 
637
- Copyright (C) 2010 Free Software Foundation, Inc.
642
+ Copyright (C) 2011 Free Software Foundation, Inc.
638
643
  This config.lt script is free software; the Free Software Foundation
639
644
  gives unlimited permision to copy, distribute and modify it."
640
645
 
@@ -707,8 +712,8 @@ _LT_CONFIG_SAVE_COMMANDS([
707
712
  fi
708
713
 
709
714
  cfgfile="${ofile}T"
710
- trap "$RM -f \"$cfgfile\"; exit 1" 1 2 15
711
- $RM -f "$cfgfile"
715
+ trap "$RM \"$cfgfile\"; exit 1" 1 2 15
716
+ $RM "$cfgfile"
712
717
 
713
718
  cat <<_LT_EOF >> "$cfgfile"
714
719
  #! $SHELL
@@ -748,15 +753,12 @@ _LT_EOF
748
753
  # if finds mixed CR/LF and LF-only lines. Since sed operates in
749
754
  # text mode, it properly converts lines to CR/LF. This bash problem
750
755
  # is reportedly fixed, but why not run on old versions too?
751
- sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
752
- || (rm -f "$cfgfile"; exit 1)
753
-
754
- _LT_PROG_XSI_SHELLFNS
756
+ sed '$q' "$ltmain" >> "$cfgfile" \
757
+ || (rm -f "$cfgfile"; exit 1)
755
758
 
756
- sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
757
- || (rm -f "$cfgfile"; exit 1)
759
+ _LT_PROG_REPLACE_SHELLFNS
758
760
 
759
- mv -f "$cfgfile" "$ofile" ||
761
+ mv -f "$cfgfile" "$ofile" ||
760
762
  (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
761
763
  chmod +x "$ofile"
762
764
  ],
@@ -801,6 +803,7 @@ AC_DEFUN([LT_LANG],
801
803
  m4_case([$1],
802
804
  [C], [_LT_LANG(C)],
803
805
  [C++], [_LT_LANG(CXX)],
806
+ [Go], [_LT_LANG(GO)],
804
807
  [Java], [_LT_LANG(GCJ)],
805
808
  [Fortran 77], [_LT_LANG(F77)],
806
809
  [Fortran], [_LT_LANG(FC)],
@@ -822,6 +825,31 @@ m4_defun([_LT_LANG],
822
825
  ])# _LT_LANG
823
826
 
824
827
 
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
+
825
853
  # _LT_LANG_DEFAULT_CONFIG
826
854
  # -----------------------
827
855
  m4_defun([_LT_LANG_DEFAULT_CONFIG],
@@ -852,6 +880,10 @@ AC_PROVIDE_IFELSE([AC_PROG_GCJ],
852
880
  m4_ifdef([LT_PROG_GCJ],
853
881
  [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
854
882
 
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
+
855
887
  AC_PROVIDE_IFELSE([LT_PROG_RC],
856
888
  [LT_LANG(RC)],
857
889
  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
@@ -902,7 +934,7 @@ ac_outfile=conftest.$ac_objext
902
934
  echo "$lt_simple_compile_test_code" >conftest.$ac_ext
903
935
  eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
904
936
  _lt_compiler_boilerplate=`cat conftest.err`
905
- $RM -r conftest*
937
+ $RM conftest*
906
938
  ])# _LT_COMPILER_BOILERPLATE
907
939
 
908
940
 
@@ -954,7 +986,13 @@ m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
954
986
  $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
955
987
  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
956
988
  _lt_result=$?
957
- if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
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
958
996
  lt_cv_apple_cc_single_mod=yes
959
997
  else
960
998
  cat conftest.err >&AS_MESSAGE_LOG_FD
@@ -962,6 +1000,7 @@ m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
962
1000
  rm -rf libconftest.dylib*
963
1001
  rm -f conftest.*
964
1002
  fi])
1003
+
965
1004
  AC_CACHE_CHECK([for -exported_symbols_list linker flag],
966
1005
  [lt_cv_ld_exported_symbols_list],
967
1006
  [lt_cv_ld_exported_symbols_list=no
@@ -973,6 +1012,7 @@ m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
973
1012
  [lt_cv_ld_exported_symbols_list=no])
974
1013
  LDFLAGS="$save_LDFLAGS"
975
1014
  ])
1015
+
976
1016
  AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
977
1017
  [lt_cv_ld_force_load=no
978
1018
  cat > conftest.c << _LT_EOF
@@ -990,7 +1030,9 @@ _LT_EOF
990
1030
  echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
991
1031
  $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
992
1032
  _lt_result=$?
993
- if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
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
994
1036
  lt_cv_ld_force_load=yes
995
1037
  else
996
1038
  cat conftest.err >&AS_MESSAGE_LOG_FD
@@ -1035,8 +1077,8 @@ _LT_EOF
1035
1077
  ])
1036
1078
 
1037
1079
 
1038
- # _LT_DARWIN_LINKER_FEATURES
1039
- # --------------------------
1080
+ # _LT_DARWIN_LINKER_FEATURES([TAG])
1081
+ # ---------------------------------
1040
1082
  # Checks for linker and compiler features on darwin
1041
1083
  m4_defun([_LT_DARWIN_LINKER_FEATURES],
1042
1084
  [
@@ -1047,6 +1089,8 @@ m4_defun([_LT_DARWIN_LINKER_FEATURES],
1047
1089
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1048
1090
  if test "$lt_cv_ld_force_load" = "yes"; then
1049
1091
  _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])
1050
1094
  else
1051
1095
  _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1052
1096
  fi
@@ -1073,30 +1117,41 @@ m4_defun([_LT_DARWIN_LINKER_FEATURES],
1073
1117
  fi
1074
1118
  ])
1075
1119
 
1076
- # _LT_SYS_MODULE_PATH_AIX
1077
- # -----------------------
1120
+ # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
1121
+ # ----------------------------------
1078
1122
  # Links a minimal program and checks the executable
1079
1123
  # for the system default hardcoded library path. In most cases,
1080
1124
  # this is /usr/lib:/lib, but when the MPI compilers are used
1081
1125
  # the location of the communication and MPI libs are included too.
1082
1126
  # If we don't find anything, use the default library path according
1083
1127
  # 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.
1084
1130
  m4_defun([_LT_SYS_MODULE_PATH_AIX],
1085
1131
  [m4_require([_LT_DECL_SED])dnl
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
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
1100
1155
  ])# _LT_SYS_MODULE_PATH_AIX
1101
1156
 
1102
1157
 
@@ -1121,7 +1176,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1121
1176
 
1122
1177
  AC_MSG_CHECKING([how to print strings])
1123
1178
  # Test print first, because it will be a builtin if present.
1124
- if test "X`print -r -- -n 2>/dev/null`" = X-n && \
1179
+ if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1125
1180
  test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1126
1181
  ECHO='print -r --'
1127
1182
  elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
@@ -1165,6 +1220,39 @@ _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1165
1220
  ])# _LT_PROG_ECHO_BACKSLASH
1166
1221
 
1167
1222
 
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
+
1168
1256
  # _LT_ENABLE_LOCK
1169
1257
  # ---------------
1170
1258
  m4_defun([_LT_ENABLE_LOCK],
@@ -1286,14 +1374,27 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1286
1374
  CFLAGS="$SAVE_CFLAGS"
1287
1375
  fi
1288
1376
  ;;
1289
- sparc*-*solaris*)
1377
+ *-*solaris*)
1290
1378
  # Find out which ABI we are using.
1291
1379
  echo 'int i;' > conftest.$ac_ext
1292
1380
  if AC_TRY_EVAL(ac_compile); then
1293
1381
  case `/usr/bin/file conftest.o` in
1294
1382
  *64-bit*)
1295
1383
  case $lt_cv_prog_gnu_ld in
1296
- yes*) LD="${LD-ld} -m elf64_sparc" ;;
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
+ ;;
1297
1398
  *)
1298
1399
  if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1299
1400
  LD="${LD-ld} -64"
@@ -1311,14 +1412,47 @@ need_locks="$enable_libtool_lock"
1311
1412
  ])# _LT_ENABLE_LOCK
1312
1413
 
1313
1414
 
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
+
1314
1452
  # _LT_CMD_OLD_ARCHIVE
1315
1453
  # -------------------
1316
1454
  m4_defun([_LT_CMD_OLD_ARCHIVE],
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])
1455
+ [_LT_PROG_AR
1322
1456
 
1323
1457
  AC_CHECK_TOOL(STRIP, strip, :)
1324
1458
  test -z "$STRIP" && STRIP=:
@@ -1337,13 +1471,13 @@ old_postuninstall_cmds=
1337
1471
  if test -n "$RANLIB"; then
1338
1472
  case $host_os in
1339
1473
  openbsd*)
1340
- old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1474
+ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1341
1475
  ;;
1342
1476
  *)
1343
- old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1477
+ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1344
1478
  ;;
1345
1479
  esac
1346
- old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1480
+ old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
1347
1481
  fi
1348
1482
 
1349
1483
  case $host_os in
@@ -1396,7 +1530,7 @@ AC_CACHE_CHECK([$1], [$2],
1396
1530
  $2=yes
1397
1531
  fi
1398
1532
  fi
1399
- $RM -r conftest*
1533
+ $RM conftest*
1400
1534
  ])
1401
1535
 
1402
1536
  if test x"[$]$2" = xyes; then
@@ -1523,6 +1657,11 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1523
1657
  lt_cv_sys_max_cmd_len=196608
1524
1658
  ;;
1525
1659
 
1660
+ os2*)
1661
+ # The test takes a long time on OS/2.
1662
+ lt_cv_sys_max_cmd_len=8192
1663
+ ;;
1664
+
1526
1665
  osf*)
1527
1666
  # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1528
1667
  # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
@@ -1562,7 +1701,7 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1562
1701
  # If test is not a shell built-in, we'll probably end up computing a
1563
1702
  # maximum length that is only half of the actual maximum length, but
1564
1703
  # we can't tell.
1565
- while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
1704
+ while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
1566
1705
  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
1567
1706
  test $i != 17 # 1/2 MB should be enough
1568
1707
  do
@@ -1658,10 +1797,10 @@ else
1658
1797
  /* When -fvisbility=hidden is used, assume the code has been annotated
1659
1798
  correspondingly for the symbols needed. */
1660
1799
  #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1661
- void fnord () __attribute__((visibility("default")));
1800
+ int fnord () __attribute__((visibility("default")));
1662
1801
  #endif
1663
1802
 
1664
- void fnord () { int i=42; }
1803
+ int fnord () { return 42; }
1665
1804
  int main ()
1666
1805
  {
1667
1806
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
@@ -1866,14 +2005,14 @@ AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1866
2005
  fi
1867
2006
  fi
1868
2007
  chmod u+w . 2>&AS_MESSAGE_LOG_FD
1869
- $RM -r conftest*
2008
+ $RM conftest*
1870
2009
  # SGI C++ compiler will create directory out/ii_files/ for
1871
2010
  # template instantiation
1872
2011
  test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
1873
2012
  $RM out/* && rmdir out
1874
2013
  cd ..
1875
2014
  $RM -r conftest
1876
- $RM -r conftest*
2015
+ $RM conftest*
1877
2016
  ])
1878
2017
  _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
1879
2018
  [Does compiler simultaneously support -c and -o options?])
@@ -1893,7 +2032,7 @@ if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" !=
1893
2032
  # do not overwrite the value of need_locks provided by the user
1894
2033
  AC_MSG_CHECKING([if we can lock with hard links])
1895
2034
  hard_links=yes
1896
- $RM -r conftest*
2035
+ $RM conftest*
1897
2036
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
1898
2037
  touch conftest.a
1899
2038
  ln conftest.a conftest.b 2>&5 || hard_links=no
@@ -2108,7 +2247,7 @@ need_version=unknown
2108
2247
 
2109
2248
  case $host_os in
2110
2249
  aix3*)
2111
- version_type=linux
2250
+ version_type=linux # correct to gnu/linux during the next big refactor
2112
2251
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2113
2252
  shlibpath_var=LIBPATH
2114
2253
 
@@ -2117,7 +2256,7 @@ aix3*)
2117
2256
  ;;
2118
2257
 
2119
2258
  aix[[4-9]]*)
2120
- version_type=linux
2259
+ version_type=linux # correct to gnu/linux during the next big refactor
2121
2260
  need_lib_prefix=no
2122
2261
  need_version=no
2123
2262
  hardcode_into_libs=yes
@@ -2182,7 +2321,7 @@ beos*)
2182
2321
  ;;
2183
2322
 
2184
2323
  bsdi[[45]]*)
2185
- version_type=linux
2324
+ version_type=linux # correct to gnu/linux during the next big refactor
2186
2325
  need_version=no
2187
2326
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2188
2327
  soname_spec='${libname}${release}${shared_ext}$major'
@@ -2201,8 +2340,9 @@ cygwin* | mingw* | pw32* | cegcc*)
2201
2340
  need_version=no
2202
2341
  need_lib_prefix=no
2203
2342
 
2204
- case $GCC,$host_os in
2205
- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
2343
+ case $GCC,$cc_basename in
2344
+ yes,*)
2345
+ # gcc
2206
2346
  library_names_spec='$libname.dll.a'
2207
2347
  # DLL is installed to $(libdir)/../bin by postinstall_cmds
2208
2348
  postinstall_cmds='base_file=`basename \${file}`~
@@ -2235,13 +2375,71 @@ m4_if([$1], [],[
2235
2375
  library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2236
2376
  ;;
2237
2377
  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'
2238
2435
  ;;
2239
2436
 
2240
2437
  *)
2438
+ # Assume MSVC wrapper
2241
2439
  library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2440
+ dynamic_linker='Win32 ld.exe'
2242
2441
  ;;
2243
2442
  esac
2244
- dynamic_linker='Win32 ld.exe'
2245
2443
  # FIXME: first we should search . and the directory the executable is in
2246
2444
  shlibpath_var=PATH
2247
2445
  ;;
@@ -2251,7 +2449,7 @@ darwin* | rhapsody*)
2251
2449
  version_type=darwin
2252
2450
  need_lib_prefix=no
2253
2451
  need_version=no
2254
- library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
2452
+ library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2255
2453
  soname_spec='${libname}${release}${major}$shared_ext'
2256
2454
  shlibpath_overrides_runpath=yes
2257
2455
  shlibpath_var=DYLD_LIBRARY_PATH
@@ -2262,7 +2460,7 @@ m4_if([$1], [],[
2262
2460
  ;;
2263
2461
 
2264
2462
  dgux*)
2265
- version_type=linux
2463
+ version_type=linux # correct to gnu/linux during the next big refactor
2266
2464
  need_lib_prefix=no
2267
2465
  need_version=no
2268
2466
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
@@ -2270,10 +2468,6 @@ dgux*)
2270
2468
  shlibpath_var=LD_LIBRARY_PATH
2271
2469
  ;;
2272
2470
 
2273
- freebsd1*)
2274
- dynamic_linker=no
2275
- ;;
2276
-
2277
2471
  freebsd* | dragonfly*)
2278
2472
  # DragonFly does not have aout. When/if they implement a new
2279
2473
  # versioning mechanism, adjust this.
@@ -2281,7 +2475,7 @@ freebsd* | dragonfly*)
2281
2475
  objformat=`/usr/bin/objformat`
2282
2476
  else
2283
2477
  case $host_os in
2284
- freebsd[[123]]*) objformat=aout ;;
2478
+ freebsd[[23]].*) objformat=aout ;;
2285
2479
  *) objformat=elf ;;
2286
2480
  esac
2287
2481
  fi
@@ -2299,7 +2493,7 @@ freebsd* | dragonfly*)
2299
2493
  esac
2300
2494
  shlibpath_var=LD_LIBRARY_PATH
2301
2495
  case $host_os in
2302
- freebsd2*)
2496
+ freebsd2.*)
2303
2497
  shlibpath_overrides_runpath=yes
2304
2498
  ;;
2305
2499
  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
@@ -2319,17 +2513,18 @@ freebsd* | dragonfly*)
2319
2513
  ;;
2320
2514
 
2321
2515
  gnu*)
2322
- version_type=linux
2516
+ version_type=linux # correct to gnu/linux during the next big refactor
2323
2517
  need_lib_prefix=no
2324
2518
  need_version=no
2325
2519
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2326
2520
  soname_spec='${libname}${release}${shared_ext}$major'
2327
2521
  shlibpath_var=LD_LIBRARY_PATH
2522
+ shlibpath_overrides_runpath=no
2328
2523
  hardcode_into_libs=yes
2329
2524
  ;;
2330
2525
 
2331
2526
  haiku*)
2332
- version_type=linux
2527
+ version_type=linux # correct to gnu/linux during the next big refactor
2333
2528
  need_lib_prefix=no
2334
2529
  need_version=no
2335
2530
  dynamic_linker="$host_os runtime_loader"
@@ -2390,7 +2585,7 @@ hpux9* | hpux10* | hpux11*)
2390
2585
  ;;
2391
2586
 
2392
2587
  interix[[3-9]]*)
2393
- version_type=linux
2588
+ version_type=linux # correct to gnu/linux during the next big refactor
2394
2589
  need_lib_prefix=no
2395
2590
  need_version=no
2396
2591
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
@@ -2406,7 +2601,7 @@ irix5* | irix6* | nonstopux*)
2406
2601
  nonstopux*) version_type=nonstopux ;;
2407
2602
  *)
2408
2603
  if test "$lt_cv_prog_gnu_ld" = yes; then
2409
- version_type=linux
2604
+ version_type=linux # correct to gnu/linux during the next big refactor
2410
2605
  else
2411
2606
  version_type=irix
2412
2607
  fi ;;
@@ -2443,9 +2638,9 @@ linux*oldld* | linux*aout* | linux*coff*)
2443
2638
  dynamic_linker=no
2444
2639
  ;;
2445
2640
 
2446
- # This must be Linux ELF.
2641
+ # This must be glibc/ELF.
2447
2642
  linux* | k*bsd*-gnu | kopensolaris*-gnu)
2448
- version_type=linux
2643
+ version_type=linux # correct to gnu/linux during the next big refactor
2449
2644
  need_lib_prefix=no
2450
2645
  need_version=no
2451
2646
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
@@ -2489,6 +2684,18 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu)
2489
2684
  dynamic_linker='GNU/Linux ld.so'
2490
2685
  ;;
2491
2686
 
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
+
2492
2699
  netbsd*)
2493
2700
  version_type=sunos
2494
2701
  need_lib_prefix=no
@@ -2508,7 +2715,7 @@ netbsd*)
2508
2715
  ;;
2509
2716
 
2510
2717
  newsos6)
2511
- version_type=linux
2718
+ version_type=linux # correct to gnu/linux during the next big refactor
2512
2719
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2513
2720
  shlibpath_var=LD_LIBRARY_PATH
2514
2721
  shlibpath_overrides_runpath=yes
@@ -2577,7 +2784,7 @@ rdos*)
2577
2784
  ;;
2578
2785
 
2579
2786
  solaris*)
2580
- version_type=linux
2787
+ version_type=linux # correct to gnu/linux during the next big refactor
2581
2788
  need_lib_prefix=no
2582
2789
  need_version=no
2583
2790
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
@@ -2602,7 +2809,7 @@ sunos4*)
2602
2809
  ;;
2603
2810
 
2604
2811
  sysv4 | sysv4.3*)
2605
- version_type=linux
2812
+ version_type=linux # correct to gnu/linux during the next big refactor
2606
2813
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2607
2814
  soname_spec='${libname}${release}${shared_ext}$major'
2608
2815
  shlibpath_var=LD_LIBRARY_PATH
@@ -2626,7 +2833,7 @@ sysv4 | sysv4.3*)
2626
2833
 
2627
2834
  sysv4*MP*)
2628
2835
  if test -d /usr/nec ;then
2629
- version_type=linux
2836
+ version_type=linux # correct to gnu/linux during the next big refactor
2630
2837
  library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2631
2838
  soname_spec='$libname${shared_ext}.$major'
2632
2839
  shlibpath_var=LD_LIBRARY_PATH
@@ -2657,7 +2864,7 @@ sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2657
2864
 
2658
2865
  tpf*)
2659
2866
  # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
2660
- version_type=linux
2867
+ version_type=linux # correct to gnu/linux during the next big refactor
2661
2868
  need_lib_prefix=no
2662
2869
  need_version=no
2663
2870
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
@@ -2667,7 +2874,7 @@ tpf*)
2667
2874
  ;;
2668
2875
 
2669
2876
  uts4*)
2670
- version_type=linux
2877
+ version_type=linux # correct to gnu/linux during the next big refactor
2671
2878
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2672
2879
  soname_spec='${libname}${release}${shared_ext}$major'
2673
2880
  shlibpath_var=LD_LIBRARY_PATH
@@ -2945,6 +3152,11 @@ case $reload_flag in
2945
3152
  esac
2946
3153
  reload_cmds='$LD$reload_flag -o $output$reload_objs'
2947
3154
  case $host_os in
3155
+ cygwin* | mingw* | pw32* | cegcc*)
3156
+ if test "$GCC" != yes; then
3157
+ reload_cmds=false
3158
+ fi
3159
+ ;;
2948
3160
  darwin*)
2949
3161
  if test "$GCC" = yes; then
2950
3162
  reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
@@ -3084,12 +3296,12 @@ irix5* | irix6* | nonstopux*)
3084
3296
  lt_cv_deplibs_check_method=pass_all
3085
3297
  ;;
3086
3298
 
3087
- # This must be Linux ELF.
3299
+ # This must be glibc/ELF.
3088
3300
  linux* | k*bsd*-gnu | kopensolaris*-gnu)
3089
3301
  lt_cv_deplibs_check_method=pass_all
3090
3302
  ;;
3091
3303
 
3092
- netbsd*)
3304
+ netbsd* | netbsdelf*-gnu)
3093
3305
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3094
3306
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3095
3307
  else
@@ -3163,6 +3375,21 @@ tpf*)
3163
3375
  ;;
3164
3376
  esac
3165
3377
  ])
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
+
3166
3393
  file_magic_cmd=$lt_cv_file_magic_cmd
3167
3394
  deplibs_check_method=$lt_cv_deplibs_check_method
3168
3395
  test -z "$deplibs_check_method" && deplibs_check_method=unknown
@@ -3170,7 +3397,11 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown
3170
3397
  _LT_DECL([], [deplibs_check_method], [1],
3171
3398
  [Method to check whether dependent libraries are shared objects])
3172
3399
  _LT_DECL([], [file_magic_cmd], [1],
3173
- [Command to use when deplibs_check_method == "file_magic"])
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"])
3174
3405
  ])# _LT_CHECK_MAGIC_METHOD
3175
3406
 
3176
3407
 
@@ -3263,7 +3494,7 @@ AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3263
3494
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3264
3495
  lt_cv_nm_interface="MS dumpbin"
3265
3496
  fi
3266
- rm -r -f conftest*])
3497
+ rm -f conftest*])
3267
3498
  ])# LT_PATH_NM
3268
3499
 
3269
3500
  # Old names:
@@ -3273,6 +3504,67 @@ dnl aclocal-1.4 backwards compatibility:
3273
3504
  dnl AC_DEFUN([AM_PROG_NM], [])
3274
3505
  dnl AC_DEFUN([AC_PROG_NM], [])
3275
3506
 
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
+
3276
3568
 
3277
3569
  # LT_LIB_M
3278
3570
  # --------
@@ -3399,8 +3691,8 @@ esac
3399
3691
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3400
3692
 
3401
3693
  # Transform an extracted symbol line into symbol name and symbol address
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'"
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'"
3404
3696
 
3405
3697
  # Handle CRLF in mingw tool chain
3406
3698
  opt_cr=
@@ -3424,6 +3716,7 @@ for ac_symprfx in "" "_"; do
3424
3716
  # which start with @ or ?.
3425
3717
  lt_cv_sys_global_symbol_pipe="$AWK ['"\
3426
3718
  " {last_section=section; section=\$ 3};"\
3719
+ " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
3427
3720
  " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
3428
3721
  " \$ 0!~/External *\|/{next};"\
3429
3722
  " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
@@ -3436,11 +3729,12 @@ for ac_symprfx in "" "_"; do
3436
3729
  else
3437
3730
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
3438
3731
  fi
3732
+ lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
3439
3733
 
3440
3734
  # Check to see that the pipe works correctly.
3441
3735
  pipe_works=no
3442
3736
 
3443
- rm -r -f conftest*
3737
+ rm -f conftest*
3444
3738
  cat > conftest.$ac_ext <<_LT_EOF
3445
3739
  #ifdef __cplusplus
3446
3740
  extern "C" {
@@ -3469,6 +3763,18 @@ _LT_EOF
3469
3763
  if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
3470
3764
  if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
3471
3765
  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
+
3472
3778
  #ifdef __cplusplus
3473
3779
  extern "C" {
3474
3780
  #endif
@@ -3480,7 +3786,7 @@ _LT_EOF
3480
3786
  cat <<_LT_EOF >> conftest.$ac_ext
3481
3787
 
3482
3788
  /* The mapping between symbol names and symbols. */
3483
- const struct {
3789
+ LT@&t@_DLSYM_CONST struct {
3484
3790
  const char *name;
3485
3791
  void *address;
3486
3792
  }
@@ -3506,15 +3812,15 @@ static const void *lt_preloaded_setup() {
3506
3812
  _LT_EOF
3507
3813
  # Now try linking the two files.
3508
3814
  mv conftest.$ac_objext conftstm.$ac_objext
3509
- lt_save_LIBS="$LIBS"
3510
- lt_save_CFLAGS="$CFLAGS"
3815
+ lt_globsym_save_LIBS=$LIBS
3816
+ lt_globsym_save_CFLAGS=$CFLAGS
3511
3817
  LIBS="conftstm.$ac_objext"
3512
3818
  CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
3513
3819
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
3514
3820
  pipe_works=yes
3515
3821
  fi
3516
- LIBS="$lt_save_LIBS"
3517
- CFLAGS="$lt_save_CFLAGS"
3822
+ LIBS=$lt_globsym_save_LIBS
3823
+ CFLAGS=$lt_globsym_save_CFLAGS
3518
3824
  else
3519
3825
  echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
3520
3826
  fi
@@ -3547,6 +3853,13 @@ else
3547
3853
  AC_MSG_RESULT(ok)
3548
3854
  fi
3549
3855
 
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
+
3550
3863
  _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
3551
3864
  [Take the output of nm and produce a listing of raw symbols and C names])
3552
3865
  _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
@@ -3557,6 +3870,8 @@ _LT_DECL([global_symbol_to_c_name_address],
3557
3870
  _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
3558
3871
  [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
3559
3872
  [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])
3560
3875
  ]) # _LT_CMD_GLOBAL_SYMBOLS
3561
3876
 
3562
3877
 
@@ -3568,7 +3883,6 @@ _LT_TAGVAR(lt_prog_compiler_wl, $1)=
3568
3883
  _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3569
3884
  _LT_TAGVAR(lt_prog_compiler_static, $1)=
3570
3885
 
3571
- AC_MSG_CHECKING([for $compiler option to produce PIC])
3572
3886
  m4_if([$1], [CXX], [
3573
3887
  # C++ specific cases for pic, static, wl, etc.
3574
3888
  if test "$GXX" = yes; then
@@ -3673,6 +3987,12 @@ m4_if([$1], [CXX], [
3673
3987
  ;;
3674
3988
  esac
3675
3989
  ;;
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
+ ;;
3676
3996
  dgux*)
3677
3997
  case $cc_basename in
3678
3998
  ec++*)
@@ -3793,7 +4113,7 @@ m4_if([$1], [CXX], [
3793
4113
  ;;
3794
4114
  esac
3795
4115
  ;;
3796
- netbsd*)
4116
+ netbsd* | netbsdelf*-gnu)
3797
4117
  ;;
3798
4118
  *qnx* | *nto*)
3799
4119
  # QNX uses GNU C++, but need to define -shared option too, otherwise
@@ -3981,7 +4301,9 @@ m4_if([$1], [CXX], [
3981
4301
  case $cc_basename in
3982
4302
  nvcc*) # Cuda Compiler Driver 2.2
3983
4303
  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
3984
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC'
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
3985
4307
  ;;
3986
4308
  esac
3987
4309
  else
@@ -4047,6 +4369,12 @@ m4_if([$1], [CXX], [
4047
4369
  _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4048
4370
  _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4049
4371
  ;;
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
+ ;;
4050
4378
  pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
4051
4379
  # Portland Group compilers (*not* the Pentium gcc compiler,
4052
4380
  # which looks to be a dead project)
@@ -4067,18 +4395,33 @@ m4_if([$1], [CXX], [
4067
4395
  ;;
4068
4396
  *)
4069
4397
  case `$CC -V 2>&1 | sed 5q` in
4070
- *Sun\ F* | *Sun*Fortran*)
4398
+ *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
4071
4399
  # Sun Fortran 8.3 passes all unrecognized flags to the linker
4072
4400
  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4073
4401
  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4074
4402
  _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4075
4403
  ;;
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
+ ;;
4076
4409
  *Sun\ C*)
4077
4410
  # Sun C 5.9
4078
4411
  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4079
4412
  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4080
4413
  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4081
4414
  ;;
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
+ ;;
4082
4425
  esac
4083
4426
  ;;
4084
4427
  esac
@@ -4166,9 +4509,11 @@ case $host_os in
4166
4509
  _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4167
4510
  ;;
4168
4511
  esac
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])
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)
4172
4517
 
4173
4518
  #
4174
4519
  # Check to make sure the PIC flag actually works.
@@ -4187,6 +4532,8 @@ fi
4187
4532
  _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4188
4533
  [Additional compiler flags for building library objects])
4189
4534
 
4535
+ _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4536
+ [How to pass a linker flag through the compiler])
4190
4537
  #
4191
4538
  # Check to make sure the static flag actually works.
4192
4539
  #
@@ -4207,6 +4554,7 @@ _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
4207
4554
  m4_defun([_LT_LINKER_SHLIBS],
4208
4555
  [AC_REQUIRE([LT_PATH_LD])dnl
4209
4556
  AC_REQUIRE([LT_PATH_NM])dnl
4557
+ m4_require([_LT_PATH_MANIFEST_TOOL])dnl
4210
4558
  m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4211
4559
  m4_require([_LT_DECL_EGREP])dnl
4212
4560
  m4_require([_LT_DECL_SED])dnl
@@ -4215,6 +4563,7 @@ m4_require([_LT_TAG_COMPILER])dnl
4215
4563
  AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4216
4564
  m4_if([$1], [CXX], [
4217
4565
  _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]_.*']
4218
4567
  case $host_os in
4219
4568
  aix[[4-9]]*)
4220
4569
  # If we're using GNU nm, then we don't want the "-C" option.
@@ -4229,15 +4578,25 @@ m4_if([$1], [CXX], [
4229
4578
  ;;
4230
4579
  pw32*)
4231
4580
  _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4232
- ;;
4581
+ ;;
4233
4582
  cygwin* | mingw* | cegcc*)
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
- ;;
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
+ ;;
4236
4596
  *)
4237
4597
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4238
- ;;
4598
+ ;;
4239
4599
  esac
4240
- _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4241
4600
  ], [
4242
4601
  runpath_var=
4243
4602
  _LT_TAGVAR(allow_undefined_flag, $1)=
@@ -4252,7 +4611,6 @@ m4_if([$1], [CXX], [
4252
4611
  _LT_TAGVAR(hardcode_direct, $1)=no
4253
4612
  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
4254
4613
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4255
- _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4256
4614
  _LT_TAGVAR(hardcode_libdir_separator, $1)=
4257
4615
  _LT_TAGVAR(hardcode_minus_L, $1)=no
4258
4616
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
@@ -4297,6 +4655,9 @@ dnl Note also adjust exclude_expsyms for C++ above.
4297
4655
  openbsd*)
4298
4656
  with_gnu_ld=no
4299
4657
  ;;
4658
+ linux* | k*bsd*-gnu | gnu*)
4659
+ _LT_TAGVAR(link_all_deplibs, $1)=no
4660
+ ;;
4300
4661
  esac
4301
4662
 
4302
4663
  _LT_TAGVAR(ld_shlibs, $1)=yes
@@ -4405,7 +4766,8 @@ _LT_EOF
4405
4766
  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4406
4767
  _LT_TAGVAR(always_export_symbols, $1)=no
4407
4768
  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
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'
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']
4409
4771
 
4410
4772
  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
4411
4773
  _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'
@@ -4453,7 +4815,7 @@ _LT_EOF
4453
4815
  if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
4454
4816
  && test "$tmp_diet" = no
4455
4817
  then
4456
- tmp_addflag=
4818
+ tmp_addflag=' $pic_flag'
4457
4819
  tmp_sharedflag='-shared'
4458
4820
  case $cc_basename,$host_cpu in
4459
4821
  pgcc*) # Portland Group C compiler
@@ -4502,8 +4864,7 @@ _LT_EOF
4502
4864
  xlf* | bgf* | bgxlf* | mpixlf*)
4503
4865
  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
4504
4866
  _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4505
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4506
- _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
4867
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4507
4868
  _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
4508
4869
  if test "x$supports_anon_versioning" = xyes; then
4509
4870
  _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
@@ -4518,13 +4879,13 @@ _LT_EOF
4518
4879
  fi
4519
4880
  ;;
4520
4881
 
4521
- netbsd*)
4882
+ netbsd* | netbsdelf*-gnu)
4522
4883
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4523
4884
  _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4524
4885
  wlarc=
4525
4886
  else
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'
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'
4528
4889
  fi
4529
4890
  ;;
4530
4891
 
@@ -4542,8 +4903,8 @@ _LT_EOF
4542
4903
 
4543
4904
  _LT_EOF
4544
4905
  elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
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'
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'
4547
4908
  else
4548
4909
  _LT_TAGVAR(ld_shlibs, $1)=no
4549
4910
  fi
@@ -4589,8 +4950,8 @@ _LT_EOF
4589
4950
 
4590
4951
  *)
4591
4952
  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
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'
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'
4594
4955
  else
4595
4956
  _LT_TAGVAR(ld_shlibs, $1)=no
4596
4957
  fi
@@ -4695,6 +5056,7 @@ _LT_EOF
4695
5056
  if test "$aix_use_runtimelinking" = yes; then
4696
5057
  shared_flag="$shared_flag "'${wl}-G'
4697
5058
  fi
5059
+ _LT_TAGVAR(link_all_deplibs, $1)=no
4698
5060
  else
4699
5061
  # not using gcc
4700
5062
  if test "$host_cpu" = ia64; then
@@ -4720,7 +5082,7 @@ _LT_EOF
4720
5082
  _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
4721
5083
  # Determine the default libpath from the value encoded in an
4722
5084
  # empty executable.
4723
- _LT_SYS_MODULE_PATH_AIX
5085
+ _LT_SYS_MODULE_PATH_AIX([$1])
4724
5086
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4725
5087
  _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"
4726
5088
  else
@@ -4731,7 +5093,7 @@ _LT_EOF
4731
5093
  else
4732
5094
  # Determine the default libpath from the value encoded in an
4733
5095
  # empty executable.
4734
- _LT_SYS_MODULE_PATH_AIX
5096
+ _LT_SYS_MODULE_PATH_AIX([$1])
4735
5097
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4736
5098
  # Warning - without using the other run time loading flags,
4737
5099
  # -berok will link without error, but may produce a broken library.
@@ -4775,20 +5137,64 @@ _LT_EOF
4775
5137
  # Microsoft Visual C++.
4776
5138
  # hardcode_libdir_flag_spec is actually meaningless, as there is
4777
5139
  # no search path for DLLs.
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
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
4792
5198
  ;;
4793
5199
 
4794
5200
  darwin* | rhapsody*)
@@ -4801,10 +5207,6 @@ _LT_EOF
4801
5207
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4802
5208
  ;;
4803
5209
 
4804
- freebsd1*)
4805
- _LT_TAGVAR(ld_shlibs, $1)=no
4806
- ;;
4807
-
4808
5210
  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
4809
5211
  # support. Future versions do this automatically, but an explicit c++rt0.o
4810
5212
  # does not break anything, and helps significantly (at the cost of a little
@@ -4817,7 +5219,7 @@ _LT_EOF
4817
5219
  ;;
4818
5220
 
4819
5221
  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4820
- freebsd2*)
5222
+ freebsd2.*)
4821
5223
  _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4822
5224
  _LT_TAGVAR(hardcode_direct, $1)=yes
4823
5225
  _LT_TAGVAR(hardcode_minus_L, $1)=yes
@@ -4826,7 +5228,7 @@ _LT_EOF
4826
5228
 
4827
5229
  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4828
5230
  freebsd* | dragonfly*)
4829
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5231
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4830
5232
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4831
5233
  _LT_TAGVAR(hardcode_direct, $1)=yes
4832
5234
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
@@ -4834,7 +5236,7 @@ _LT_EOF
4834
5236
 
4835
5237
  hpux9*)
4836
5238
  if test "$GCC" = yes; then
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'
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'
4838
5240
  else
4839
5241
  _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'
4840
5242
  fi
@@ -4850,13 +5252,12 @@ _LT_EOF
4850
5252
 
4851
5253
  hpux10*)
4852
5254
  if test "$GCC" = yes && test "$with_gnu_ld" = no; then
4853
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
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'
4854
5256
  else
4855
5257
  _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
4856
5258
  fi
4857
5259
  if test "$with_gnu_ld" = no; then
4858
5260
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4859
- _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
4860
5261
  _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4861
5262
  _LT_TAGVAR(hardcode_direct, $1)=yes
4862
5263
  _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
@@ -4874,10 +5275,10 @@ _LT_EOF
4874
5275
  _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4875
5276
  ;;
4876
5277
  ia64*)
4877
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5278
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
4878
5279
  ;;
4879
5280
  *)
4880
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
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'
4881
5282
  ;;
4882
5283
  esac
4883
5284
  else
@@ -4924,16 +5325,31 @@ _LT_EOF
4924
5325
 
4925
5326
  irix5* | irix6* | nonstopux*)
4926
5327
  if test "$GCC" = yes; then
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'
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'
4928
5329
  # Try to use the -exported_symbol ld option, if it does not
4929
5330
  # work, assume that -exports_file does not work either and
4930
5331
  # implicitly export all symbols.
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"
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
4937
5353
  else
4938
5354
  _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'
4939
5355
  _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'
@@ -4945,7 +5361,7 @@ _LT_EOF
4945
5361
  _LT_TAGVAR(link_all_deplibs, $1)=yes
4946
5362
  ;;
4947
5363
 
4948
- netbsd*)
5364
+ netbsd* | netbsdelf*-gnu)
4949
5365
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4950
5366
  _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
4951
5367
  else
@@ -5018,7 +5434,7 @@ _LT_EOF
5018
5434
  osf4* | osf5*) # as osf3* with the addition of -msym flag
5019
5435
  if test "$GCC" = yes; then
5020
5436
  _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
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'
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'
5022
5438
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5023
5439
  else
5024
5440
  _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
@@ -5037,9 +5453,9 @@ _LT_EOF
5037
5453
  _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
5038
5454
  if test "$GCC" = yes; then
5039
5455
  wlarc='${wl}'
5040
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5456
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5041
5457
  _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $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'
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'
5043
5459
  else
5044
5460
  case `$CC -V 2>&1` in
5045
5461
  *"Compilers 5.0"*)
@@ -5217,7 +5633,7 @@ x|xyes)
5217
5633
  # to ld, don't add -lc before -lgcc.
5218
5634
  AC_CACHE_CHECK([whether -lc should be explicitly linked in],
5219
5635
  [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
5220
- [$RM -r conftest*
5636
+ [$RM conftest*
5221
5637
  echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5222
5638
 
5223
5639
  if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
@@ -5244,7 +5660,7 @@ x|xyes)
5244
5660
  else
5245
5661
  cat conftest.err 1>&5
5246
5662
  fi
5247
- $RM -r conftest*
5663
+ $RM conftest*
5248
5664
  ])
5249
5665
  _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
5250
5666
  ;;
@@ -5283,9 +5699,6 @@ _LT_TAGDECL([], [no_undefined_flag], [1],
5283
5699
  _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
5284
5700
  [Flag to hardcode $libdir into a binary during linking.
5285
5701
  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]])
5289
5702
  _LT_TAGDECL([], [hardcode_libdir_separator], [1],
5290
5703
  [Whether we need a single "-rpath" flag with a separated argument])
5291
5704
  _LT_TAGDECL([], [hardcode_direct], [0],
@@ -5311,8 +5724,6 @@ _LT_TAGDECL([], [inherit_rpath], [0],
5311
5724
  to runtime path list])
5312
5725
  _LT_TAGDECL([], [link_all_deplibs], [0],
5313
5726
  [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])
5316
5727
  _LT_TAGDECL([], [always_export_symbols], [0],
5317
5728
  [Set to "yes" if exported symbols are required])
5318
5729
  _LT_TAGDECL([], [export_symbols_cmds], [2],
@@ -5323,6 +5734,8 @@ _LT_TAGDECL([], [include_expsyms], [1],
5323
5734
  [Symbols that must always be exported])
5324
5735
  _LT_TAGDECL([], [prelink_cmds], [2],
5325
5736
  [Commands necessary for linking programs (against libraries) with templates])
5737
+ _LT_TAGDECL([], [postlink_cmds], [2],
5738
+ [Commands necessary for finishing linking programs])
5326
5739
  _LT_TAGDECL([], [file_list_spec], [1],
5327
5740
  [Specify filename containing input files])
5328
5741
  dnl FIXME: Not yet implemented
@@ -5424,6 +5837,7 @@ CC="$lt_save_CC"
5424
5837
  m4_defun([_LT_LANG_CXX_CONFIG],
5425
5838
  [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5426
5839
  m4_require([_LT_DECL_EGREP])dnl
5840
+ m4_require([_LT_PATH_MANIFEST_TOOL])dnl
5427
5841
  if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5428
5842
  ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5429
5843
  (test "X$CXX" != "Xg++"))) ; then
@@ -5442,7 +5856,6 @@ _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5442
5856
  _LT_TAGVAR(hardcode_direct, $1)=no
5443
5857
  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
5444
5858
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5445
- _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5446
5859
  _LT_TAGVAR(hardcode_libdir_separator, $1)=
5447
5860
  _LT_TAGVAR(hardcode_minus_L, $1)=no
5448
5861
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
@@ -5485,6 +5898,7 @@ if test "$_lt_caught_CXX_error" != yes; then
5485
5898
 
5486
5899
  # Allow CC to be a program name with arguments.
5487
5900
  lt_save_CC=$CC
5901
+ lt_save_CFLAGS=$CFLAGS
5488
5902
  lt_save_LD=$LD
5489
5903
  lt_save_GCC=$GCC
5490
5904
  GCC=$GXX
@@ -5502,6 +5916,7 @@ if test "$_lt_caught_CXX_error" != yes; then
5502
5916
  fi
5503
5917
  test -z "${LDCXX+set}" || LD=$LDCXX
5504
5918
  CC=${CXX-"c++"}
5919
+ CFLAGS=$CXXFLAGS
5505
5920
  compiler=$CC
5506
5921
  _LT_TAGVAR(compiler, $1)=$CC
5507
5922
  _LT_CC_BASENAME([$compiler])
@@ -5523,8 +5938,8 @@ if test "$_lt_caught_CXX_error" != yes; then
5523
5938
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
5524
5939
  # archiving commands below assume that GNU ld is being used.
5525
5940
  if test "$with_gnu_ld" = yes; then
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'
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'
5528
5943
 
5529
5944
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5530
5945
  _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
@@ -5665,7 +6080,7 @@ if test "$_lt_caught_CXX_error" != yes; then
5665
6080
  _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5666
6081
  # Determine the default libpath from the value encoded in an empty
5667
6082
  # executable.
5668
- _LT_SYS_MODULE_PATH_AIX
6083
+ _LT_SYS_MODULE_PATH_AIX([$1])
5669
6084
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5670
6085
 
5671
6086
  _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"
@@ -5677,7 +6092,7 @@ if test "$_lt_caught_CXX_error" != yes; then
5677
6092
  else
5678
6093
  # Determine the default libpath from the value encoded in an
5679
6094
  # empty executable.
5680
- _LT_SYS_MODULE_PATH_AIX
6095
+ _LT_SYS_MODULE_PATH_AIX([$1])
5681
6096
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5682
6097
  # Warning - without using the other run time loading flags,
5683
6098
  # -berok will link without error, but may produce a broken library.
@@ -5719,29 +6134,75 @@ if test "$_lt_caught_CXX_error" != yes; then
5719
6134
  ;;
5720
6135
 
5721
6136
  cygwin* | mingw* | pw32* | cegcc*)
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
- ;;
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
+ ;;
5745
6206
  darwin* | rhapsody*)
5746
6207
  _LT_DARWIN_LINKER_FEATURES($1)
5747
6208
  ;;
@@ -5764,7 +6225,7 @@ if test "$_lt_caught_CXX_error" != yes; then
5764
6225
  esac
5765
6226
  ;;
5766
6227
 
5767
- freebsd[[12]]*)
6228
+ freebsd2.*)
5768
6229
  # C++ shared libraries reported to be fairly broken before
5769
6230
  # switch to ELF
5770
6231
  _LT_TAGVAR(ld_shlibs, $1)=no
@@ -5816,7 +6277,7 @@ if test "$_lt_caught_CXX_error" != yes; then
5816
6277
  ;;
5817
6278
  *)
5818
6279
  if test "$GXX" = yes; then
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'
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'
5820
6281
  else
5821
6282
  # FIXME: insert proper C++ library support
5822
6283
  _LT_TAGVAR(ld_shlibs, $1)=no
@@ -5887,10 +6348,10 @@ if test "$_lt_caught_CXX_error" != yes; then
5887
6348
  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5888
6349
  ;;
5889
6350
  ia64*)
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'
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'
5891
6352
  ;;
5892
6353
  *)
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'
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'
5894
6355
  ;;
5895
6356
  esac
5896
6357
  fi
@@ -5931,9 +6392,9 @@ if test "$_lt_caught_CXX_error" != yes; then
5931
6392
  *)
5932
6393
  if test "$GXX" = yes; then
5933
6394
  if test "$with_gnu_ld" = no; then
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'
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'
5935
6396
  else
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'
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'
5937
6398
  fi
5938
6399
  fi
5939
6400
  _LT_TAGVAR(link_all_deplibs, $1)=yes
@@ -6211,7 +6672,7 @@ if test "$_lt_caught_CXX_error" != yes; then
6211
6672
  _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'
6212
6673
  ;;
6213
6674
  *)
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'
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'
6215
6676
  ;;
6216
6677
  esac
6217
6678
 
@@ -6298,9 +6759,9 @@ if test "$_lt_caught_CXX_error" != yes; then
6298
6759
  if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6299
6760
  _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6300
6761
  if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6301
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
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'
6302
6763
  _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6303
- $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $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'
6304
6765
 
6305
6766
  # Commands to make compiler produce verbose output that lists
6306
6767
  # what "hidden" libraries, object files and flags are used when
@@ -6429,6 +6890,7 @@ if test "$_lt_caught_CXX_error" != yes; then
6429
6890
  fi # test -n "$compiler"
6430
6891
 
6431
6892
  CC=$lt_save_CC
6893
+ CFLAGS=$lt_save_CFLAGS
6432
6894
  LDCXX=$LD
6433
6895
  LD=$lt_save_LD
6434
6896
  GCC=$lt_save_GCC
@@ -6443,6 +6905,29 @@ AC_LANG_POP
6443
6905
  ])# _LT_LANG_CXX_CONFIG
6444
6906
 
6445
6907
 
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
+
6446
6931
  # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
6447
6932
  # ---------------------------------
6448
6933
  # Figure out "hidden" library dependencies from verbose
@@ -6451,6 +6936,7 @@ AC_LANG_POP
6451
6936
  # objects, libraries and library flags.
6452
6937
  m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
6453
6938
  [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6939
+ AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
6454
6940
  # Dependencies to place before and after the object being linked:
6455
6941
  _LT_TAGVAR(predep_objects, $1)=
6456
6942
  _LT_TAGVAR(postdep_objects, $1)=
@@ -6500,7 +6986,20 @@ public class foo {
6500
6986
  }
6501
6987
  };
6502
6988
  _LT_EOF
6989
+ ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
6990
+ package foo
6991
+ func foo() {
6992
+ }
6993
+ _LT_EOF
6503
6994
  ])
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
+
6504
7003
  dnl Parse the compiler output and extract the necessary
6505
7004
  dnl objects, libraries and library flags.
6506
7005
  if AC_TRY_EVAL(ac_compile); then
@@ -6512,7 +7011,7 @@ if AC_TRY_EVAL(ac_compile); then
6512
7011
  pre_test_object_deps_done=no
6513
7012
 
6514
7013
  for p in `eval "$output_verbose_link_cmd"`; do
6515
- case $p in
7014
+ case ${prev}${p} in
6516
7015
 
6517
7016
  -L* | -R* | -l*)
6518
7017
  # Some compilers place space between "-{L,R}" and the path.
@@ -6521,13 +7020,22 @@ if AC_TRY_EVAL(ac_compile); then
6521
7020
  test $p = "-R"; then
6522
7021
  prev=$p
6523
7022
  continue
6524
- else
6525
- prev=
6526
7023
  fi
6527
7024
 
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
6528
7036
  if test "$pre_test_object_deps_done" = no; then
6529
- case $p in
6530
- -L* | -R*)
7037
+ case ${prev} in
7038
+ -L | -R)
6531
7039
  # Internal compiler library paths should come after those
6532
7040
  # provided the user. The postdeps already come after the
6533
7041
  # user supplied libs so there is no need to process them.
@@ -6547,8 +7055,10 @@ if AC_TRY_EVAL(ac_compile); then
6547
7055
  _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
6548
7056
  fi
6549
7057
  fi
7058
+ prev=
6550
7059
  ;;
6551
7060
 
7061
+ *.lto.$objext) ;; # Ignore GCC LTO objects
6552
7062
  *.$objext)
6553
7063
  # This assumes that the test object file only shows up
6554
7064
  # once in the compiler output.
@@ -6584,6 +7094,7 @@ else
6584
7094
  fi
6585
7095
 
6586
7096
  $RM -f confest.$objext
7097
+ CFLAGS=$_lt_libdeps_save_CFLAGS
6587
7098
 
6588
7099
  # PORTME: override above test on systems where it is broken
6589
7100
  m4_if([$1], [CXX],
@@ -6683,7 +7194,6 @@ _LT_TAGVAR(export_dynamic_flag_spec, $1)=
6683
7194
  _LT_TAGVAR(hardcode_direct, $1)=no
6684
7195
  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
6685
7196
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6686
- _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6687
7197
  _LT_TAGVAR(hardcode_libdir_separator, $1)=
6688
7198
  _LT_TAGVAR(hardcode_minus_L, $1)=no
6689
7199
  _LT_TAGVAR(hardcode_automatic, $1)=no
@@ -6733,7 +7243,9 @@ if test "$_lt_disable_F77" != yes; then
6733
7243
  # Allow CC to be a program name with arguments.
6734
7244
  lt_save_CC="$CC"
6735
7245
  lt_save_GCC=$GCC
7246
+ lt_save_CFLAGS=$CFLAGS
6736
7247
  CC=${F77-"f77"}
7248
+ CFLAGS=$FFLAGS
6737
7249
  compiler=$CC
6738
7250
  _LT_TAGVAR(compiler, $1)=$CC
6739
7251
  _LT_CC_BASENAME([$compiler])
@@ -6787,6 +7299,7 @@ if test "$_lt_disable_F77" != yes; then
6787
7299
 
6788
7300
  GCC=$lt_save_GCC
6789
7301
  CC="$lt_save_CC"
7302
+ CFLAGS="$lt_save_CFLAGS"
6790
7303
  fi # test "$_lt_disable_F77" != yes
6791
7304
 
6792
7305
  AC_LANG_POP
@@ -6813,7 +7326,6 @@ _LT_TAGVAR(export_dynamic_flag_spec, $1)=
6813
7326
  _LT_TAGVAR(hardcode_direct, $1)=no
6814
7327
  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
6815
7328
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6816
- _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6817
7329
  _LT_TAGVAR(hardcode_libdir_separator, $1)=
6818
7330
  _LT_TAGVAR(hardcode_minus_L, $1)=no
6819
7331
  _LT_TAGVAR(hardcode_automatic, $1)=no
@@ -6863,7 +7375,9 @@ if test "$_lt_disable_FC" != yes; then
6863
7375
  # Allow CC to be a program name with arguments.
6864
7376
  lt_save_CC="$CC"
6865
7377
  lt_save_GCC=$GCC
7378
+ lt_save_CFLAGS=$CFLAGS
6866
7379
  CC=${FC-"f95"}
7380
+ CFLAGS=$FCFLAGS
6867
7381
  compiler=$CC
6868
7382
  GCC=$ac_cv_fc_compiler_gnu
6869
7383
 
@@ -6919,7 +7433,8 @@ if test "$_lt_disable_FC" != yes; then
6919
7433
  fi # test -n "$compiler"
6920
7434
 
6921
7435
  GCC=$lt_save_GCC
6922
- CC="$lt_save_CC"
7436
+ CC=$lt_save_CC
7437
+ CFLAGS=$lt_save_CFLAGS
6923
7438
  fi # test "$_lt_disable_FC" != yes
6924
7439
 
6925
7440
  AC_LANG_POP
@@ -6956,10 +7471,12 @@ _LT_COMPILER_BOILERPLATE
6956
7471
  _LT_LINKER_BOILERPLATE
6957
7472
 
6958
7473
  # Allow CC to be a program name with arguments.
6959
- lt_save_CC="$CC"
7474
+ lt_save_CC=$CC
7475
+ lt_save_CFLAGS=$CFLAGS
6960
7476
  lt_save_GCC=$GCC
6961
7477
  GCC=yes
6962
7478
  CC=${GCJ-"gcj"}
7479
+ CFLAGS=$GCJFLAGS
6963
7480
  compiler=$CC
6964
7481
  _LT_TAGVAR(compiler, $1)=$CC
6965
7482
  _LT_TAGVAR(LD, $1)="$LD"
@@ -6990,10 +7507,82 @@ fi
6990
7507
  AC_LANG_RESTORE
6991
7508
 
6992
7509
  GCC=$lt_save_GCC
6993
- CC="$lt_save_CC"
7510
+ CC=$lt_save_CC
7511
+ CFLAGS=$lt_save_CFLAGS
6994
7512
  ])# _LT_LANG_GCJ_CONFIG
6995
7513
 
6996
7514
 
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
+
6997
7586
  # _LT_LANG_RC_CONFIG([TAG])
6998
7587
  # -------------------------
6999
7588
  # Ensure that the configuration variables for the Windows resource compiler
@@ -7025,9 +7614,11 @@ _LT_LINKER_BOILERPLATE
7025
7614
 
7026
7615
  # Allow CC to be a program name with arguments.
7027
7616
  lt_save_CC="$CC"
7617
+ lt_save_CFLAGS=$CFLAGS
7028
7618
  lt_save_GCC=$GCC
7029
7619
  GCC=
7030
7620
  CC=${RC-"windres"}
7621
+ CFLAGS=
7031
7622
  compiler=$CC
7032
7623
  _LT_TAGVAR(compiler, $1)=$CC
7033
7624
  _LT_CC_BASENAME([$compiler])
@@ -7040,7 +7631,8 @@ fi
7040
7631
 
7041
7632
  GCC=$lt_save_GCC
7042
7633
  AC_LANG_RESTORE
7043
- CC="$lt_save_CC"
7634
+ CC=$lt_save_CC
7635
+ CFLAGS=$lt_save_CFLAGS
7044
7636
  ])# _LT_LANG_RC_CONFIG
7045
7637
 
7046
7638
 
@@ -7060,6 +7652,13 @@ dnl aclocal-1.4 backwards compatibility:
7060
7652
  dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7061
7653
 
7062
7654
 
7655
+ # LT_PROG_GO
7656
+ # ----------
7657
+ AC_DEFUN([LT_PROG_GO],
7658
+ [AC_CHECK_TOOL(GOC, gccgo,)
7659
+ ])
7660
+
7661
+
7063
7662
  # LT_PROG_RC
7064
7663
  # ----------
7065
7664
  AC_DEFUN([LT_PROG_RC],
@@ -7099,6 +7698,15 @@ _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
7099
7698
  AC_SUBST([OBJDUMP])
7100
7699
  ])
7101
7700
 
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
+ ])
7102
7710
 
7103
7711
  # _LT_DECL_SED
7104
7712
  # ------------
@@ -7192,8 +7800,8 @@ m4_defun([_LT_CHECK_SHELL_FEATURES],
7192
7800
  # Try some XSI features
7193
7801
  xsi_shell=no
7194
7802
  ( _lt_dummy="a/b/c"
7195
- test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7196
- = c,a/b,, \
7803
+ test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7804
+ = c,a/b,b/c, \
7197
7805
  && eval 'test $(( 1 + 1 )) -eq 2 \
7198
7806
  && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7199
7807
  && xsi_shell=yes
@@ -7232,206 +7840,162 @@ _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
7232
7840
  ])# _LT_CHECK_SHELL_FEATURES
7233
7841
 
7234
7842
 
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
- }
7253
-
7254
- # func_basename file
7255
- func_basename ()
7256
- {
7257
- func_basename_result="${1##*/}"
7258
- }
7259
-
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
- }
7280
-
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
- }
7294
-
7295
- # func_opt_split
7296
- func_opt_split ()
7297
- {
7298
- func_opt_split_opt=${1%%=*}
7299
- func_opt_split_arg=${1#*=}
7300
- }
7301
-
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
- }
7310
-
7311
- # func_xform libobj-or-source
7312
- func_xform ()
7313
- {
7314
- func_xform_result=${1%.*}.lo
7315
- }
7316
-
7317
- # func_arith arithmetic-term...
7318
- func_arith ()
7319
- {
7320
- func_arith_result=$(( $[*] ))
7321
- }
7322
-
7323
- # func_len string
7324
- # STRING may not start with a hyphen.
7325
- func_len ()
7326
- {
7327
- func_len_result=${#1}
7328
- }
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
+ ])
7329
7858
 
7330
- _LT_EOF
7331
- ;;
7332
- *) # Bourne compatible functions.
7333
- cat << \_LT_EOF >> "$cfgfile"
7334
7859
 
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
- }
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##*/}"])
7348
7881
 
7349
- # func_basename file
7350
- func_basename ()
7351
- {
7352
- func_basename_result=`$ECHO "${1}" | $SED "$basename"`
7353
- }
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}"}])
7354
7888
 
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.
7889
+ _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
7890
+ func_split_long_opt_name=${1%%=*}
7891
+ func_split_long_opt_arg=${1#*=}])
7358
7892
 
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
- }
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"}])
7372
7896
 
7373
- # sed scripts:
7374
- my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
7375
- my_sed_long_arg='1s/^-[[^=]]*=//'
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])
7376
7902
 
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
- }
7903
+ _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
7383
7904
 
7384
- # func_lo2o object
7385
- func_lo2o ()
7386
- {
7387
- func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
7388
- }
7905
+ _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
7389
7906
 
7390
- # func_xform libobj-or-source
7391
- func_xform ()
7392
- {
7393
- func_xform_result=`$ECHO "${1}" | $SED 's/\.[[^.]]*$/.lo/'`
7394
- }
7907
+ _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
7908
+ fi
7395
7909
 
7396
- # func_arith arithmetic-term...
7397
- func_arith ()
7398
- {
7399
- func_arith_result=`expr "$[@]"`
7400
- }
7910
+ if test x"$lt_shell_append" = xyes; then
7911
+ _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
7401
7912
 
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
- }
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"])
7408
7917
 
7409
- _LT_EOF
7410
- esac
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
7411
7930
 
7412
- case $lt_shell_append in
7413
- yes)
7414
- cat << \_LT_EOF >> "$cfgfile"
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
+ ])
7415
7935
 
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
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
7423
7959
  ;;
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
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
7435
7972
  ;;
7436
- esac
7973
+ * ) # unhandled hosts (and "normal" native builds)
7974
+ lt_cv_to_host_file_cmd=func_convert_file_noop
7975
+ ;;
7976
+ 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
7994
+ ;;
7995
+ esac
7437
7996
  ])
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