libarchive-static 1.0.6 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (295) hide show
  1. checksums.yaml +4 -4
  2. data/ext/extconf.rb +2 -9
  3. data/ext/libarchive-0.1.1/ext/archive_read_support_compression.c +6 -6
  4. data/ext/libarchive-0.1.1/ext/archive_read_support_compression.o +0 -0
  5. data/ext/libarchive-0.1.1/ext/archive_read_support_format.o +0 -0
  6. data/ext/libarchive-0.1.1/ext/archive_write_open_rb_str.c +1 -1
  7. data/ext/libarchive-0.1.1/ext/archive_write_open_rb_str.o +0 -0
  8. data/ext/libarchive-0.1.1/ext/archive_write_set_compression.c +5 -5
  9. data/ext/libarchive-0.1.1/ext/archive_write_set_compression.o +0 -0
  10. data/ext/libarchive-0.1.1/ext/config.h +23 -0
  11. data/ext/libarchive-0.1.1/ext/config.log +230 -0
  12. data/ext/libarchive-0.1.1/ext/config.status +671 -0
  13. data/ext/libarchive-0.1.1/ext/libarchive.c +1 -1
  14. data/ext/libarchive-0.1.1/ext/libarchive.o +0 -0
  15. data/ext/libarchive-0.1.1/ext/libarchive_archive.c +7 -7
  16. data/ext/libarchive-0.1.1/ext/libarchive_archive.o +0 -0
  17. data/ext/libarchive-0.1.1/ext/libarchive_entry.c +6 -0
  18. data/ext/libarchive-0.1.1/ext/libarchive_entry.o +0 -0
  19. data/ext/libarchive-0.1.1/ext/libarchive_reader.c +6 -4
  20. data/ext/libarchive-0.1.1/ext/libarchive_reader.o +0 -0
  21. data/ext/libarchive-0.1.1/ext/libarchive_ruby.so +0 -0
  22. data/ext/libarchive-0.1.1/ext/libarchive_win32.h +1 -1
  23. data/ext/libarchive-0.1.1/ext/libarchive_writer.c +2 -2
  24. data/ext/libarchive-0.1.1/ext/libarchive_writer.o +0 -0
  25. data/ext/libarchive-3.6.2/Makefile.in +16892 -0
  26. data/ext/libarchive-3.6.2/build/autoconf/ax_append_compile_flags.m4 +67 -0
  27. data/ext/libarchive-3.6.2/build/autoconf/ax_append_flag.m4 +71 -0
  28. data/ext/libarchive-3.6.2/build/autoconf/ax_check_compile_flag.m4 +74 -0
  29. data/ext/libarchive-3.6.2/build/autoconf/ax_require_defined.m4 +37 -0
  30. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/build/autoconf/check_stdcall_func.m4 +0 -0
  31. data/ext/libarchive-3.6.2/build/autoconf/compile +348 -0
  32. data/ext/libarchive-3.6.2/build/autoconf/config.guess +1754 -0
  33. data/ext/libarchive-3.6.2/build/autoconf/config.rpath +696 -0
  34. data/ext/libarchive-3.6.2/build/autoconf/config.sub +1890 -0
  35. data/ext/libarchive-3.6.2/build/autoconf/depcomp +791 -0
  36. data/ext/libarchive-3.6.2/build/autoconf/iconv.m4 +271 -0
  37. data/ext/libarchive-3.6.2/build/autoconf/install-sh +541 -0
  38. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/build/autoconf/la_uid_t.m4 +0 -0
  39. data/ext/libarchive-3.6.2/build/autoconf/lib-ld.m4 +109 -0
  40. data/ext/libarchive-3.6.2/build/autoconf/lib-link.m4 +777 -0
  41. data/ext/libarchive-3.6.2/build/autoconf/lib-prefix.m4 +224 -0
  42. data/ext/libarchive-3.6.2/build/autoconf/ltmain.sh +11251 -0
  43. data/ext/libarchive-3.6.2/build/autoconf/m4_ax_compile_check_sizeof.m4 +115 -0
  44. data/ext/libarchive-3.6.2/build/autoconf/missing +215 -0
  45. data/ext/libarchive-3.6.2/build/autoconf/test-driver +153 -0
  46. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/build/pkgconfig/libarchive.pc.in +4 -1
  47. data/ext/libarchive-3.6.2/config.h.in +1504 -0
  48. data/ext/libarchive-3.6.2/configure +25558 -0
  49. data/ext/libarchive-3.6.2/libarchive/archive.h +1212 -0
  50. data/ext/libarchive-3.6.2/libarchive/archive_acl.c +2097 -0
  51. data/ext/libarchive-3.6.2/libarchive/archive_acl_private.h +83 -0
  52. data/ext/libarchive-3.6.2/libarchive/archive_blake2.h +197 -0
  53. data/ext/libarchive-3.6.2/libarchive/archive_blake2_impl.h +161 -0
  54. data/ext/libarchive-3.6.2/libarchive/archive_blake2s_ref.c +369 -0
  55. data/ext/libarchive-3.6.2/libarchive/archive_blake2sp_ref.c +361 -0
  56. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_check_magic.c +63 -22
  57. data/ext/libarchive-3.6.2/libarchive/archive_cmdline.c +227 -0
  58. data/ext/libarchive-3.6.2/libarchive/archive_cmdline_private.h +47 -0
  59. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_crc32.h +17 -0
  60. data/ext/libarchive-3.6.2/libarchive/archive_cryptor.c +534 -0
  61. data/ext/libarchive-3.6.2/libarchive/archive_cryptor_private.h +188 -0
  62. data/ext/libarchive-3.6.2/libarchive/archive_digest.c +1505 -0
  63. data/ext/libarchive-3.6.2/libarchive/archive_digest_private.h +416 -0
  64. data/ext/libarchive-3.6.2/libarchive/archive_disk_acl_darwin.c +559 -0
  65. data/ext/libarchive-3.6.2/libarchive/archive_disk_acl_freebsd.c +712 -0
  66. data/ext/libarchive-3.6.2/libarchive/archive_disk_acl_linux.c +760 -0
  67. data/ext/libarchive-3.6.2/libarchive/archive_disk_acl_sunos.c +824 -0
  68. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_endian.h +48 -15
  69. data/ext/libarchive-3.6.2/libarchive/archive_entry.c +2149 -0
  70. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_entry.h +305 -106
  71. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_entry_copy_bhfi.c +5 -4
  72. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_entry_copy_stat.c +9 -3
  73. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_entry_link_resolver.c +104 -62
  74. data/ext/libarchive-3.6.2/libarchive/archive_entry_locale.h +92 -0
  75. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_entry_private.h +65 -49
  76. data/ext/libarchive-3.6.2/libarchive/archive_entry_sparse.c +156 -0
  77. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_entry_stat.c +6 -6
  78. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_entry_strmode.c +1 -1
  79. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_entry_xattr.c +4 -6
  80. data/ext/libarchive-3.6.2/libarchive/archive_getdate.c +1165 -0
  81. data/ext/libarchive-3.6.2/libarchive/archive_getdate.h +39 -0
  82. data/ext/libarchive-3.6.2/libarchive/archive_hmac.c +334 -0
  83. data/ext/libarchive-3.6.2/libarchive/archive_hmac_private.h +117 -0
  84. data/ext/libarchive-3.6.2/libarchive/archive_match.c +1875 -0
  85. data/ext/libarchive-3.6.2/libarchive/archive_openssl_evp_private.h +53 -0
  86. data/ext/libarchive-3.6.2/libarchive/archive_openssl_hmac_private.h +54 -0
  87. data/ext/libarchive-3.6.2/libarchive/archive_options.c +218 -0
  88. data/ext/libarchive-3.6.2/libarchive/archive_options_private.h +51 -0
  89. data/ext/libarchive-3.6.2/libarchive/archive_pack_dev.c +337 -0
  90. data/ext/libarchive-3.6.2/libarchive/archive_pack_dev.h +49 -0
  91. data/ext/libarchive-3.6.2/libarchive/archive_pathmatch.c +463 -0
  92. data/ext/libarchive-3.6.2/libarchive/archive_pathmatch.h +52 -0
  93. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_platform.h +77 -9
  94. data/ext/libarchive-3.6.2/libarchive/archive_platform_acl.h +55 -0
  95. data/ext/libarchive-3.6.2/libarchive/archive_platform_xattr.h +47 -0
  96. data/ext/libarchive-3.6.2/libarchive/archive_ppmd7.c +1168 -0
  97. data/ext/libarchive-3.6.2/libarchive/archive_ppmd7_private.h +119 -0
  98. data/ext/libarchive-3.6.2/libarchive/archive_ppmd8.c +1287 -0
  99. data/ext/libarchive-3.6.2/libarchive/archive_ppmd8_private.h +148 -0
  100. data/ext/libarchive-3.6.2/libarchive/archive_ppmd_private.h +151 -0
  101. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_private.h +74 -18
  102. data/ext/libarchive-3.6.2/libarchive/archive_random.c +272 -0
  103. data/ext/libarchive-3.6.2/libarchive/archive_random_private.h +36 -0
  104. data/ext/libarchive-3.6.2/libarchive/archive_rb.c +709 -0
  105. data/ext/libarchive-3.6.2/libarchive/archive_rb.h +113 -0
  106. data/ext/libarchive-3.6.2/libarchive/archive_read.c +1756 -0
  107. data/ext/libarchive-3.6.2/libarchive/archive_read_add_passphrase.c +190 -0
  108. data/ext/libarchive-3.6.2/libarchive/archive_read_append_filter.c +204 -0
  109. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_data_into_fd.c +64 -18
  110. data/ext/libarchive-3.6.2/libarchive/archive_read_disk_entry_from_file.c +1086 -0
  111. data/ext/libarchive-3.6.2/libarchive/archive_read_disk_posix.c +2732 -0
  112. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_disk_private.h +40 -4
  113. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_disk_set_standard_lookup.c +21 -11
  114. data/ext/libarchive-3.6.2/libarchive/archive_read_disk_windows.c +2479 -0
  115. data/ext/libarchive-3.6.2/libarchive/archive_read_extract.c +60 -0
  116. data/ext/{libarchive-2.8.4/libarchive/archive_read_extract.c → libarchive-3.6.2/libarchive/archive_read_extract2.c} +34 -61
  117. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_open_fd.c +70 -49
  118. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_open_file.c +38 -23
  119. data/ext/libarchive-3.6.2/libarchive/archive_read_open_filename.c +586 -0
  120. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_open_memory.c +58 -28
  121. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_private.h +127 -59
  122. data/ext/libarchive-3.6.2/libarchive/archive_read_set_format.c +117 -0
  123. data/ext/libarchive-3.6.2/libarchive/archive_read_set_options.c +133 -0
  124. data/ext/{libarchive-2.8.4/libarchive/archive_read_support_compression_all.c → libarchive-3.6.2/libarchive/archive_read_support_filter_all.c} +35 -10
  125. data/ext/libarchive-3.6.2/libarchive/archive_read_support_filter_by_code.c +83 -0
  126. data/ext/{libarchive-2.8.4/libarchive/archive_read_support_compression_bzip2.c → libarchive-3.6.2/libarchive/archive_read_support_filter_bzip2.c} +38 -26
  127. data/ext/{libarchive-2.8.4/libarchive/archive_read_support_compression_compress.c → libarchive-3.6.2/libarchive/archive_read_support_filter_compress.c} +52 -44
  128. data/ext/libarchive-3.6.2/libarchive/archive_read_support_filter_grzip.c +112 -0
  129. data/ext/{libarchive-2.8.4/libarchive/archive_read_support_compression_gzip.c → libarchive-3.6.2/libarchive/archive_read_support_filter_gzip.c} +108 -37
  130. data/ext/libarchive-3.6.2/libarchive/archive_read_support_filter_lrzip.c +122 -0
  131. data/ext/libarchive-3.6.2/libarchive/archive_read_support_filter_lz4.c +742 -0
  132. data/ext/libarchive-3.6.2/libarchive/archive_read_support_filter_lzop.c +499 -0
  133. data/ext/{libarchive-2.8.4/libarchive/archive_read_support_compression_none.c → libarchive-3.6.2/libarchive/archive_read_support_filter_none.c} +15 -3
  134. data/ext/{libarchive-2.8.4/libarchive/archive_read_support_compression_program.c → libarchive-3.6.2/libarchive/archive_read_support_filter_program.c} +114 -77
  135. data/ext/{libarchive-2.8.4/libarchive/archive_read_support_compression_rpm.c → libarchive-3.6.2/libarchive/archive_read_support_filter_rpm.c} +31 -31
  136. data/ext/{libarchive-2.8.4/libarchive/archive_read_support_compression_uu.c → libarchive-3.6.2/libarchive/archive_read_support_filter_uu.c} +141 -85
  137. data/ext/{libarchive-2.8.4/libarchive/archive_read_support_compression_xz.c → libarchive-3.6.2/libarchive/archive_read_support_filter_xz.c} +369 -284
  138. data/ext/libarchive-3.6.2/libarchive/archive_read_support_filter_zstd.c +297 -0
  139. data/ext/libarchive-3.6.2/libarchive/archive_read_support_format_7zip.c +3900 -0
  140. data/ext/libarchive-3.6.2/libarchive/archive_read_support_format_all.c +89 -0
  141. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_support_format_ar.c +126 -72
  142. data/ext/libarchive-3.6.2/libarchive/archive_read_support_format_by_code.c +92 -0
  143. data/ext/libarchive-3.6.2/libarchive/archive_read_support_format_cab.c +3228 -0
  144. data/ext/libarchive-3.6.2/libarchive/archive_read_support_format_cpio.c +1104 -0
  145. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_support_format_empty.c +14 -11
  146. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_support_format_iso9660.c +990 -541
  147. data/ext/libarchive-3.6.2/libarchive/archive_read_support_format_lha.c +2916 -0
  148. data/ext/libarchive-3.6.2/libarchive/archive_read_support_format_mtree.c +2150 -0
  149. data/ext/libarchive-3.6.2/libarchive/archive_read_support_format_rar.c +3797 -0
  150. data/ext/libarchive-3.6.2/libarchive/archive_read_support_format_rar5.c +4251 -0
  151. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_support_format_raw.c +38 -31
  152. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_support_format_tar.c +1157 -629
  153. data/ext/libarchive-3.6.2/libarchive/archive_read_support_format_warc.c +848 -0
  154. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_read_support_format_xar.c +439 -258
  155. data/ext/libarchive-3.6.2/libarchive/archive_read_support_format_zip.c +4270 -0
  156. data/ext/libarchive-3.6.2/libarchive/archive_string.c +4240 -0
  157. data/ext/libarchive-3.6.2/libarchive/archive_string.h +243 -0
  158. data/ext/libarchive-3.6.2/libarchive/archive_string_composition.h +2292 -0
  159. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_string_sprintf.c +44 -16
  160. data/ext/libarchive-3.6.2/libarchive/archive_util.c +655 -0
  161. data/ext/libarchive-3.6.2/libarchive/archive_version_details.c +151 -0
  162. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_virtual.c +85 -16
  163. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_windows.c +214 -541
  164. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_windows.h +74 -106
  165. data/ext/libarchive-3.6.2/libarchive/archive_write.c +828 -0
  166. data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter.c +72 -0
  167. data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_b64encode.c +304 -0
  168. data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_by_name.c +77 -0
  169. data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_bzip2.c +401 -0
  170. data/ext/{libarchive-2.8.4/libarchive/archive_write_set_compression_compress.c → libarchive-3.6.2/libarchive/archive_write_add_filter_compress.c} +86 -131
  171. data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_grzip.c +135 -0
  172. data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_gzip.c +442 -0
  173. data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_lrzip.c +197 -0
  174. data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_lz4.c +700 -0
  175. data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_lzop.c +478 -0
  176. data/ext/{libarchive-2.8.4/libarchive/archive_read_support_format_all.c → libarchive-3.6.2/libarchive/archive_write_add_filter_none.c} +11 -11
  177. data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_program.c +391 -0
  178. data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_uuencode.c +295 -0
  179. data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_xz.c +545 -0
  180. data/ext/libarchive-3.6.2/libarchive/archive_write_add_filter_zstd.c +418 -0
  181. data/ext/libarchive-3.6.2/libarchive/archive_write_disk_posix.c +4711 -0
  182. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_disk_private.h +9 -2
  183. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_disk_set_standard_lookup.c +30 -29
  184. data/ext/libarchive-3.6.2/libarchive/archive_write_disk_windows.c +2842 -0
  185. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_open_fd.c +15 -10
  186. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_open_file.c +15 -9
  187. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_open_filename.c +128 -20
  188. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_open_memory.c +7 -18
  189. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_private.h +72 -29
  190. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_set_format.c +56 -3
  191. data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_7zip.c +2322 -0
  192. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_set_format_ar.c +54 -34
  193. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_set_format_by_name.c +20 -2
  194. data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_cpio.c +11 -0
  195. data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_cpio_binary.c +610 -0
  196. data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_cpio_newc.c +457 -0
  197. data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_cpio_odc.c +500 -0
  198. data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_filter_by_ext.c +142 -0
  199. data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_gnutar.c +755 -0
  200. data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_iso9660.c +8165 -0
  201. data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_mtree.c +2217 -0
  202. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_set_format_pax.c +1049 -387
  203. data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_private.h +42 -0
  204. data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_raw.c +125 -0
  205. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_set_format_shar.c +62 -47
  206. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/archive_write_set_format_ustar.c +279 -108
  207. data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_v7tar.c +638 -0
  208. data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_warc.c +453 -0
  209. data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_xar.c +3259 -0
  210. data/ext/libarchive-3.6.2/libarchive/archive_write_set_format_zip.c +1704 -0
  211. data/ext/libarchive-3.6.2/libarchive/archive_write_set_options.c +130 -0
  212. data/ext/libarchive-3.6.2/libarchive/archive_write_set_passphrase.c +95 -0
  213. data/ext/libarchive-3.6.2/libarchive/archive_xxhash.h +48 -0
  214. data/ext/libarchive-3.6.2/libarchive/config_freebsd.h +271 -0
  215. data/ext/{libarchive-2.8.4 → libarchive-3.6.2}/libarchive/filter_fork.h +10 -5
  216. data/ext/{libarchive-2.8.4/libarchive/filter_fork.c → libarchive-3.6.2/libarchive/filter_fork_posix.c} +98 -19
  217. data/ext/libarchive-3.6.2/libarchive/filter_fork_windows.c +236 -0
  218. data/ext/libarchive-3.6.2/libarchive/xxhash.c +525 -0
  219. data/ext/libarchive-static-makefile +144 -80
  220. data/ext/libarchive-static-wrapper-makefile +1 -1
  221. data/ext/zlib-1.2.13/Makefile.in +404 -0
  222. data/ext/{zlib-1.2.5 → zlib-1.2.13}/adler32.c +51 -34
  223. data/ext/{zlib-1.2.5 → zlib-1.2.13}/compress.c +27 -21
  224. data/ext/zlib-1.2.13/configure +922 -0
  225. data/ext/zlib-1.2.13/crc32.c +1125 -0
  226. data/ext/zlib-1.2.13/crc32.h +9446 -0
  227. data/ext/{zlib-1.2.5 → zlib-1.2.13}/deflate.c +842 -459
  228. data/ext/{zlib-1.2.5 → zlib-1.2.13}/deflate.h +37 -33
  229. data/ext/{zlib-1.2.5 → zlib-1.2.13}/gzclose.c +0 -0
  230. data/ext/{zlib-1.2.5 → zlib-1.2.13}/gzguts.h +103 -16
  231. data/ext/{zlib-1.2.5 → zlib-1.2.13}/gzlib.c +155 -53
  232. data/ext/zlib-1.2.13/gzread.c +650 -0
  233. data/ext/zlib-1.2.13/gzwrite.c +677 -0
  234. data/ext/{zlib-1.2.5 → zlib-1.2.13}/infback.c +24 -12
  235. data/ext/{zlib-1.2.5 → zlib-1.2.13}/inffast.c +49 -66
  236. data/ext/{zlib-1.2.5 → zlib-1.2.13}/inffast.h +0 -0
  237. data/ext/{zlib-1.2.5 → zlib-1.2.13}/inffixed.h +3 -3
  238. data/ext/{zlib-1.2.5 → zlib-1.2.13}/inflate.c +209 -94
  239. data/ext/{zlib-1.2.5 → zlib-1.2.13}/inflate.h +9 -5
  240. data/ext/{zlib-1.2.5 → zlib-1.2.13}/inftrees.c +24 -50
  241. data/ext/{zlib-1.2.5 → zlib-1.2.13}/inftrees.h +1 -1
  242. data/ext/{zlib-1.2.5 → zlib-1.2.13}/trees.c +135 -198
  243. data/ext/{zlib-1.2.5 → zlib-1.2.13}/trees.h +0 -0
  244. data/ext/zlib-1.2.13/uncompr.c +93 -0
  245. data/ext/{zlib-1.2.5 → zlib-1.2.13}/zconf.h +182 -63
  246. data/ext/{zlib-1.2.5 → zlib-1.2.13}/zlib.h +617 -295
  247. data/ext/{zlib-1.2.5 → zlib-1.2.13}/zutil.c +50 -41
  248. data/ext/{zlib-1.2.5 → zlib-1.2.13}/zutil.h +83 -82
  249. metadata +241 -133
  250. data/ext/libarchive-0.1.1/libarchive.c +0 -1762
  251. data/ext/libarchive-2.8.4/Makefile.in +0 -7076
  252. data/ext/libarchive-2.8.4/build/autoconf/compile +0 -143
  253. data/ext/libarchive-2.8.4/build/autoconf/config.guess +0 -1502
  254. data/ext/libarchive-2.8.4/build/autoconf/config.sub +0 -1708
  255. data/ext/libarchive-2.8.4/build/autoconf/depcomp +0 -630
  256. data/ext/libarchive-2.8.4/build/autoconf/install-sh +0 -291
  257. data/ext/libarchive-2.8.4/build/autoconf/ltmain.sh +0 -8406
  258. data/ext/libarchive-2.8.4/build/autoconf/missing +0 -376
  259. data/ext/libarchive-2.8.4/config.h.in +0 -772
  260. data/ext/libarchive-2.8.4/configure +0 -17916
  261. data/ext/libarchive-2.8.4/libarchive/archive.h +0 -741
  262. data/ext/libarchive-2.8.4/libarchive/archive_entry.c +0 -2202
  263. data/ext/libarchive-2.8.4/libarchive/archive_hash.h +0 -281
  264. data/ext/libarchive-2.8.4/libarchive/archive_read.c +0 -1249
  265. data/ext/libarchive-2.8.4/libarchive/archive_read_disk.c +0 -198
  266. data/ext/libarchive-2.8.4/libarchive/archive_read_disk_entry_from_file.c +0 -570
  267. data/ext/libarchive-2.8.4/libarchive/archive_read_open_filename.c +0 -272
  268. data/ext/libarchive-2.8.4/libarchive/archive_read_support_format_cpio.c +0 -777
  269. data/ext/libarchive-2.8.4/libarchive/archive_read_support_format_mtree.c +0 -1304
  270. data/ext/libarchive-2.8.4/libarchive/archive_read_support_format_zip.c +0 -903
  271. data/ext/libarchive-2.8.4/libarchive/archive_string.c +0 -453
  272. data/ext/libarchive-2.8.4/libarchive/archive_string.h +0 -148
  273. data/ext/libarchive-2.8.4/libarchive/archive_util.c +0 -391
  274. data/ext/libarchive-2.8.4/libarchive/archive_write.c +0 -466
  275. data/ext/libarchive-2.8.4/libarchive/archive_write_disk.c +0 -2628
  276. data/ext/libarchive-2.8.4/libarchive/archive_write_set_compression_bzip2.c +0 -408
  277. data/ext/libarchive-2.8.4/libarchive/archive_write_set_compression_gzip.c +0 -477
  278. data/ext/libarchive-2.8.4/libarchive/archive_write_set_compression_none.c +0 -257
  279. data/ext/libarchive-2.8.4/libarchive/archive_write_set_compression_program.c +0 -347
  280. data/ext/libarchive-2.8.4/libarchive/archive_write_set_compression_xz.c +0 -438
  281. data/ext/libarchive-2.8.4/libarchive/archive_write_set_format_cpio.c +0 -344
  282. data/ext/libarchive-2.8.4/libarchive/archive_write_set_format_cpio_newc.c +0 -295
  283. data/ext/libarchive-2.8.4/libarchive/archive_write_set_format_mtree.c +0 -1050
  284. data/ext/libarchive-2.8.4/libarchive/archive_write_set_format_zip.c +0 -667
  285. data/ext/libarchive-2.8.4/libarchive/config_freebsd.h +0 -154
  286. data/ext/libarchive-2.8.4/libarchive/filter_fork_windows.c +0 -113
  287. data/ext/zlib-1.2.5/Makefile.in +0 -257
  288. data/ext/zlib-1.2.5/configure +0 -596
  289. data/ext/zlib-1.2.5/crc32.c +0 -442
  290. data/ext/zlib-1.2.5/crc32.h +0 -441
  291. data/ext/zlib-1.2.5/example.c +0 -565
  292. data/ext/zlib-1.2.5/gzread.c +0 -653
  293. data/ext/zlib-1.2.5/gzwrite.c +0 -531
  294. data/ext/zlib-1.2.5/minigzip.c +0 -440
  295. data/ext/zlib-1.2.5/uncompr.c +0 -59
@@ -0,0 +1,777 @@
1
+ # lib-link.m4 serial 26 (gettext-0.18.2)
2
+ dnl Copyright (C) 2001-2011 Free Software Foundation, Inc.
3
+ dnl This file is free software; the Free Software Foundation
4
+ dnl gives unlimited permission to copy and/or distribute it,
5
+ dnl with or without modifications, as long as this notice is preserved.
6
+
7
+ dnl From Bruno Haible.
8
+
9
+ AC_PREREQ([2.54])
10
+
11
+ dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
12
+ dnl the libraries corresponding to explicit and implicit dependencies.
13
+ dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
14
+ dnl augments the CPPFLAGS variable.
15
+ dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname
16
+ dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
17
+ AC_DEFUN([AC_LIB_LINKFLAGS],
18
+ [
19
+ AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
20
+ AC_REQUIRE([AC_LIB_RPATH])
21
+ pushdef([Name],[m4_translit([$1],[./+-], [____])])
22
+ pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-],
23
+ [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
24
+ AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [
25
+ AC_LIB_LINKFLAGS_BODY([$1], [$2])
26
+ ac_cv_lib[]Name[]_libs="$LIB[]NAME"
27
+ ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME"
28
+ ac_cv_lib[]Name[]_cppflags="$INC[]NAME"
29
+ ac_cv_lib[]Name[]_prefix="$LIB[]NAME[]_PREFIX"
30
+ ])
31
+ LIB[]NAME="$ac_cv_lib[]Name[]_libs"
32
+ LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs"
33
+ INC[]NAME="$ac_cv_lib[]Name[]_cppflags"
34
+ LIB[]NAME[]_PREFIX="$ac_cv_lib[]Name[]_prefix"
35
+ AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
36
+ AC_SUBST([LIB]NAME)
37
+ AC_SUBST([LTLIB]NAME)
38
+ AC_SUBST([LIB]NAME[_PREFIX])
39
+ dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the
40
+ dnl results of this search when this library appears as a dependency.
41
+ HAVE_LIB[]NAME=yes
42
+ popdef([NAME])
43
+ popdef([Name])
44
+ ])
45
+
46
+ dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode, [missing-message])
47
+ dnl searches for libname and the libraries corresponding to explicit and
48
+ dnl implicit dependencies, together with the specified include files and
49
+ dnl the ability to compile and link the specified testcode. The missing-message
50
+ dnl defaults to 'no' and may contain additional hints for the user.
51
+ dnl If found, it sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME}
52
+ dnl and LTLIB${NAME} variables and augments the CPPFLAGS variable, and
53
+ dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs
54
+ dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty.
55
+ dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname
56
+ dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
57
+ AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],
58
+ [
59
+ AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
60
+ AC_REQUIRE([AC_LIB_RPATH])
61
+ pushdef([Name],[m4_translit([$1],[./+-], [____])])
62
+ pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-],
63
+ [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
64
+
65
+ dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
66
+ dnl accordingly.
67
+ AC_LIB_LINKFLAGS_BODY([$1], [$2])
68
+
69
+ dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,
70
+ dnl because if the user has installed lib[]Name and not disabled its use
71
+ dnl via --without-lib[]Name-prefix, he wants to use it.
72
+ ac_save_CPPFLAGS="$CPPFLAGS"
73
+ AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
74
+
75
+ AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
76
+ ac_save_LIBS="$LIBS"
77
+ dnl If $LIB[]NAME contains some -l options, add it to the end of LIBS,
78
+ dnl because these -l options might require -L options that are present in
79
+ dnl LIBS. -l options benefit only from the -L options listed before it.
80
+ dnl Otherwise, add it to the front of LIBS, because it may be a static
81
+ dnl library that depends on another static library that is present in LIBS.
82
+ dnl Static libraries benefit only from the static libraries listed after
83
+ dnl it.
84
+ case " $LIB[]NAME" in
85
+ *" -l"*) LIBS="$LIBS $LIB[]NAME" ;;
86
+ *) LIBS="$LIB[]NAME $LIBS" ;;
87
+ esac
88
+ AC_LINK_IFELSE(
89
+ [AC_LANG_PROGRAM([[$3]], [[$4]])],
90
+ [ac_cv_lib[]Name=yes],
91
+ [ac_cv_lib[]Name='m4_if([$5], [], [no], [[$5]])'])
92
+ LIBS="$ac_save_LIBS"
93
+ ])
94
+ if test "$ac_cv_lib[]Name" = yes; then
95
+ HAVE_LIB[]NAME=yes
96
+ AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the lib][$1 library.])
97
+ AC_MSG_CHECKING([how to link with lib[]$1])
98
+ AC_MSG_RESULT([$LIB[]NAME])
99
+ else
100
+ HAVE_LIB[]NAME=no
101
+ dnl If $LIB[]NAME didn't lead to a usable library, we don't need
102
+ dnl $INC[]NAME either.
103
+ CPPFLAGS="$ac_save_CPPFLAGS"
104
+ LIB[]NAME=
105
+ LTLIB[]NAME=
106
+ LIB[]NAME[]_PREFIX=
107
+ fi
108
+ AC_SUBST([HAVE_LIB]NAME)
109
+ AC_SUBST([LIB]NAME)
110
+ AC_SUBST([LTLIB]NAME)
111
+ AC_SUBST([LIB]NAME[_PREFIX])
112
+ popdef([NAME])
113
+ popdef([Name])
114
+ ])
115
+
116
+ dnl Determine the platform dependent parameters needed to use rpath:
117
+ dnl acl_libext,
118
+ dnl acl_shlibext,
119
+ dnl acl_libname_spec,
120
+ dnl acl_library_names_spec,
121
+ dnl acl_hardcode_libdir_flag_spec,
122
+ dnl acl_hardcode_libdir_separator,
123
+ dnl acl_hardcode_direct,
124
+ dnl acl_hardcode_minus_L.
125
+ AC_DEFUN([AC_LIB_RPATH],
126
+ [
127
+ dnl Tell automake >= 1.10 to complain if config.rpath is missing.
128
+ m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])])
129
+ AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS
130
+ AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld
131
+ AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host
132
+ AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir
133
+ AC_CACHE_CHECK([for shared library run path origin], [acl_cv_rpath], [
134
+ CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
135
+ ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
136
+ . ./conftest.sh
137
+ rm -f ./conftest.sh
138
+ acl_cv_rpath=done
139
+ ])
140
+ wl="$acl_cv_wl"
141
+ acl_libext="$acl_cv_libext"
142
+ acl_shlibext="$acl_cv_shlibext"
143
+ acl_libname_spec="$acl_cv_libname_spec"
144
+ acl_library_names_spec="$acl_cv_library_names_spec"
145
+ acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
146
+ acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
147
+ acl_hardcode_direct="$acl_cv_hardcode_direct"
148
+ acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
149
+ dnl Determine whether the user wants rpath handling at all.
150
+ AC_ARG_ENABLE([rpath],
151
+ [ --disable-rpath do not hardcode runtime library paths],
152
+ :, enable_rpath=yes)
153
+ ])
154
+
155
+ dnl AC_LIB_FROMPACKAGE(name, package)
156
+ dnl declares that libname comes from the given package. The configure file
157
+ dnl will then not have a --with-libname-prefix option but a
158
+ dnl --with-package-prefix option. Several libraries can come from the same
159
+ dnl package. This declaration must occur before an AC_LIB_LINKFLAGS or similar
160
+ dnl macro call that searches for libname.
161
+ AC_DEFUN([AC_LIB_FROMPACKAGE],
162
+ [
163
+ pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-],
164
+ [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
165
+ define([acl_frompackage_]NAME, [$2])
166
+ popdef([NAME])
167
+ pushdef([PACK],[$2])
168
+ pushdef([PACKUP],[m4_translit(PACK,[abcdefghijklmnopqrstuvwxyz./+-],
169
+ [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
170
+ define([acl_libsinpackage_]PACKUP,
171
+ m4_ifdef([acl_libsinpackage_]PACKUP, [m4_defn([acl_libsinpackage_]PACKUP)[, ]],)[lib$1])
172
+ popdef([PACKUP])
173
+ popdef([PACK])
174
+ ])
175
+
176
+ dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
177
+ dnl the libraries corresponding to explicit and implicit dependencies.
178
+ dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
179
+ dnl Also, sets the LIB${NAME}_PREFIX variable to nonempty if libname was found
180
+ dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
181
+ AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
182
+ [
183
+ AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
184
+ pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-],
185
+ [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
186
+ pushdef([PACK],[m4_ifdef([acl_frompackage_]NAME, [acl_frompackage_]NAME, lib[$1])])
187
+ pushdef([PACKUP],[m4_translit(PACK,[abcdefghijklmnopqrstuvwxyz./+-],
188
+ [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
189
+ pushdef([PACKLIBS],[m4_ifdef([acl_frompackage_]NAME, [acl_libsinpackage_]PACKUP, lib[$1])])
190
+ dnl Autoconf >= 2.61 supports dots in --with options.
191
+ pushdef([P_A_C_K],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[m4_translit(PACK,[.],[_])],PACK)])
192
+ dnl By default, look in $includedir and $libdir.
193
+ use_additional=yes
194
+ AC_LIB_WITH_FINAL_PREFIX([
195
+ eval additional_includedir=\"$includedir\"
196
+ eval additional_libdir=\"$libdir\"
197
+ ])
198
+ AC_ARG_WITH(P_A_C_K[-prefix],
199
+ [[ --with-]]P_A_C_K[[-prefix[=DIR] search for ]PACKLIBS[ in DIR/include and DIR/lib
200
+ --without-]]P_A_C_K[[-prefix don't search for ]PACKLIBS[ in includedir and libdir]],
201
+ [
202
+ if test "X$withval" = "Xno"; then
203
+ use_additional=no
204
+ else
205
+ if test "X$withval" = "X"; then
206
+ AC_LIB_WITH_FINAL_PREFIX([
207
+ eval additional_includedir=\"$includedir\"
208
+ eval additional_libdir=\"$libdir\"
209
+ ])
210
+ else
211
+ additional_includedir="$withval/include"
212
+ additional_libdir="$withval/$acl_libdirstem"
213
+ if test "$acl_libdirstem2" != "$acl_libdirstem" \
214
+ && ! test -d "$withval/$acl_libdirstem"; then
215
+ additional_libdir="$withval/$acl_libdirstem2"
216
+ fi
217
+ fi
218
+ fi
219
+ ])
220
+ dnl Search the library and its dependencies in $additional_libdir and
221
+ dnl $LDFLAGS. Using breadth-first-seach.
222
+ LIB[]NAME=
223
+ LTLIB[]NAME=
224
+ INC[]NAME=
225
+ LIB[]NAME[]_PREFIX=
226
+ dnl HAVE_LIB${NAME} is an indicator that LIB${NAME}, LTLIB${NAME} have been
227
+ dnl computed. So it has to be reset here.
228
+ HAVE_LIB[]NAME=
229
+ rpathdirs=
230
+ ltrpathdirs=
231
+ names_already_handled=
232
+ names_next_round='$1 $2'
233
+ while test -n "$names_next_round"; do
234
+ names_this_round="$names_next_round"
235
+ names_next_round=
236
+ for name in $names_this_round; do
237
+ already_handled=
238
+ for n in $names_already_handled; do
239
+ if test "$n" = "$name"; then
240
+ already_handled=yes
241
+ break
242
+ fi
243
+ done
244
+ if test -z "$already_handled"; then
245
+ names_already_handled="$names_already_handled $name"
246
+ dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
247
+ dnl or AC_LIB_HAVE_LINKFLAGS call.
248
+ uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
249
+ eval value=\"\$HAVE_LIB$uppername\"
250
+ if test -n "$value"; then
251
+ if test "$value" = yes; then
252
+ eval value=\"\$LIB$uppername\"
253
+ test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
254
+ eval value=\"\$LTLIB$uppername\"
255
+ test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value"
256
+ else
257
+ dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined
258
+ dnl that this library doesn't exist. So just drop it.
259
+ :
260
+ fi
261
+ else
262
+ dnl Search the library lib$name in $additional_libdir and $LDFLAGS
263
+ dnl and the already constructed $LIBNAME/$LTLIBNAME.
264
+ found_dir=
265
+ found_la=
266
+ found_so=
267
+ found_a=
268
+ eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
269
+ if test -n "$acl_shlibext"; then
270
+ shrext=".$acl_shlibext" # typically: shrext=.so
271
+ else
272
+ shrext=
273
+ fi
274
+ if test $use_additional = yes; then
275
+ dir="$additional_libdir"
276
+ dnl The same code as in the loop below:
277
+ dnl First look for a shared library.
278
+ if test -n "$acl_shlibext"; then
279
+ if test -f "$dir/$libname$shrext"; then
280
+ found_dir="$dir"
281
+ found_so="$dir/$libname$shrext"
282
+ else
283
+ if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
284
+ ver=`(cd "$dir" && \
285
+ for f in "$libname$shrext".*; do echo "$f"; done \
286
+ | sed -e "s,^$libname$shrext\\\\.,," \
287
+ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
288
+ | sed 1q ) 2>/dev/null`
289
+ if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
290
+ found_dir="$dir"
291
+ found_so="$dir/$libname$shrext.$ver"
292
+ fi
293
+ else
294
+ eval library_names=\"$acl_library_names_spec\"
295
+ for f in $library_names; do
296
+ if test -f "$dir/$f"; then
297
+ found_dir="$dir"
298
+ found_so="$dir/$f"
299
+ break
300
+ fi
301
+ done
302
+ fi
303
+ fi
304
+ fi
305
+ dnl Then look for a static library.
306
+ if test "X$found_dir" = "X"; then
307
+ if test -f "$dir/$libname.$acl_libext"; then
308
+ found_dir="$dir"
309
+ found_a="$dir/$libname.$acl_libext"
310
+ fi
311
+ fi
312
+ if test "X$found_dir" != "X"; then
313
+ if test -f "$dir/$libname.la"; then
314
+ found_la="$dir/$libname.la"
315
+ fi
316
+ fi
317
+ fi
318
+ if test "X$found_dir" = "X"; then
319
+ for x in $LDFLAGS $LTLIB[]NAME; do
320
+ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
321
+ case "$x" in
322
+ -L*)
323
+ dir=`echo "X$x" | sed -e 's/^X-L//'`
324
+ dnl First look for a shared library.
325
+ if test -n "$acl_shlibext"; then
326
+ if test -f "$dir/$libname$shrext"; then
327
+ found_dir="$dir"
328
+ found_so="$dir/$libname$shrext"
329
+ else
330
+ if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
331
+ ver=`(cd "$dir" && \
332
+ for f in "$libname$shrext".*; do echo "$f"; done \
333
+ | sed -e "s,^$libname$shrext\\\\.,," \
334
+ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
335
+ | sed 1q ) 2>/dev/null`
336
+ if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
337
+ found_dir="$dir"
338
+ found_so="$dir/$libname$shrext.$ver"
339
+ fi
340
+ else
341
+ eval library_names=\"$acl_library_names_spec\"
342
+ for f in $library_names; do
343
+ if test -f "$dir/$f"; then
344
+ found_dir="$dir"
345
+ found_so="$dir/$f"
346
+ break
347
+ fi
348
+ done
349
+ fi
350
+ fi
351
+ fi
352
+ dnl Then look for a static library.
353
+ if test "X$found_dir" = "X"; then
354
+ if test -f "$dir/$libname.$acl_libext"; then
355
+ found_dir="$dir"
356
+ found_a="$dir/$libname.$acl_libext"
357
+ fi
358
+ fi
359
+ if test "X$found_dir" != "X"; then
360
+ if test -f "$dir/$libname.la"; then
361
+ found_la="$dir/$libname.la"
362
+ fi
363
+ fi
364
+ ;;
365
+ esac
366
+ if test "X$found_dir" != "X"; then
367
+ break
368
+ fi
369
+ done
370
+ fi
371
+ if test "X$found_dir" != "X"; then
372
+ dnl Found the library.
373
+ LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
374
+ if test "X$found_so" != "X"; then
375
+ dnl Linking with a shared library. We attempt to hardcode its
376
+ dnl directory into the executable's runpath, unless it's the
377
+ dnl standard /usr/lib.
378
+ if test "$enable_rpath" = no \
379
+ || test "X$found_dir" = "X/usr/$acl_libdirstem" \
380
+ || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
381
+ dnl No hardcoding is needed.
382
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
383
+ else
384
+ dnl Use an explicit option to hardcode DIR into the resulting
385
+ dnl binary.
386
+ dnl Potentially add DIR to ltrpathdirs.
387
+ dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
388
+ haveit=
389
+ for x in $ltrpathdirs; do
390
+ if test "X$x" = "X$found_dir"; then
391
+ haveit=yes
392
+ break
393
+ fi
394
+ done
395
+ if test -z "$haveit"; then
396
+ ltrpathdirs="$ltrpathdirs $found_dir"
397
+ fi
398
+ dnl The hardcoding into $LIBNAME is system dependent.
399
+ if test "$acl_hardcode_direct" = yes; then
400
+ dnl Using DIR/libNAME.so during linking hardcodes DIR into the
401
+ dnl resulting binary.
402
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
403
+ else
404
+ if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
405
+ dnl Use an explicit option to hardcode DIR into the resulting
406
+ dnl binary.
407
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
408
+ dnl Potentially add DIR to rpathdirs.
409
+ dnl The rpathdirs will be appended to $LIBNAME at the end.
410
+ haveit=
411
+ for x in $rpathdirs; do
412
+ if test "X$x" = "X$found_dir"; then
413
+ haveit=yes
414
+ break
415
+ fi
416
+ done
417
+ if test -z "$haveit"; then
418
+ rpathdirs="$rpathdirs $found_dir"
419
+ fi
420
+ else
421
+ dnl Rely on "-L$found_dir".
422
+ dnl But don't add it if it's already contained in the LDFLAGS
423
+ dnl or the already constructed $LIBNAME
424
+ haveit=
425
+ for x in $LDFLAGS $LIB[]NAME; do
426
+ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
427
+ if test "X$x" = "X-L$found_dir"; then
428
+ haveit=yes
429
+ break
430
+ fi
431
+ done
432
+ if test -z "$haveit"; then
433
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
434
+ fi
435
+ if test "$acl_hardcode_minus_L" != no; then
436
+ dnl FIXME: Not sure whether we should use
437
+ dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
438
+ dnl here.
439
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
440
+ else
441
+ dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH
442
+ dnl here, because this doesn't fit in flags passed to the
443
+ dnl compiler. So give up. No hardcoding. This affects only
444
+ dnl very old systems.
445
+ dnl FIXME: Not sure whether we should use
446
+ dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
447
+ dnl here.
448
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
449
+ fi
450
+ fi
451
+ fi
452
+ fi
453
+ else
454
+ if test "X$found_a" != "X"; then
455
+ dnl Linking with a static library.
456
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"
457
+ else
458
+ dnl We shouldn't come here, but anyway it's good to have a
459
+ dnl fallback.
460
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
461
+ fi
462
+ fi
463
+ dnl Assume the include files are nearby.
464
+ additional_includedir=
465
+ case "$found_dir" in
466
+ */$acl_libdirstem | */$acl_libdirstem/)
467
+ basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
468
+ if test "$name" = '$1'; then
469
+ LIB[]NAME[]_PREFIX="$basedir"
470
+ fi
471
+ additional_includedir="$basedir/include"
472
+ ;;
473
+ */$acl_libdirstem2 | */$acl_libdirstem2/)
474
+ basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
475
+ if test "$name" = '$1'; then
476
+ LIB[]NAME[]_PREFIX="$basedir"
477
+ fi
478
+ additional_includedir="$basedir/include"
479
+ ;;
480
+ esac
481
+ if test "X$additional_includedir" != "X"; then
482
+ dnl Potentially add $additional_includedir to $INCNAME.
483
+ dnl But don't add it
484
+ dnl 1. if it's the standard /usr/include,
485
+ dnl 2. if it's /usr/local/include and we are using GCC on Linux,
486
+ dnl 3. if it's already present in $CPPFLAGS or the already
487
+ dnl constructed $INCNAME,
488
+ dnl 4. if it doesn't exist as a directory.
489
+ if test "X$additional_includedir" != "X/usr/include"; then
490
+ haveit=
491
+ if test "X$additional_includedir" = "X/usr/local/include"; then
492
+ if test -n "$GCC"; then
493
+ case $host_os in
494
+ linux* | gnu* | k*bsd*-gnu) haveit=yes;;
495
+ esac
496
+ fi
497
+ fi
498
+ if test -z "$haveit"; then
499
+ for x in $CPPFLAGS $INC[]NAME; do
500
+ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
501
+ if test "X$x" = "X-I$additional_includedir"; then
502
+ haveit=yes
503
+ break
504
+ fi
505
+ done
506
+ if test -z "$haveit"; then
507
+ if test -d "$additional_includedir"; then
508
+ dnl Really add $additional_includedir to $INCNAME.
509
+ INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"
510
+ fi
511
+ fi
512
+ fi
513
+ fi
514
+ fi
515
+ dnl Look for dependencies.
516
+ if test -n "$found_la"; then
517
+ dnl Read the .la file. It defines the variables
518
+ dnl dlname, library_names, old_library, dependency_libs, current,
519
+ dnl age, revision, installed, dlopen, dlpreopen, libdir.
520
+ save_libdir="$libdir"
521
+ case "$found_la" in
522
+ */* | *\\*) . "$found_la" ;;
523
+ *) . "./$found_la" ;;
524
+ esac
525
+ libdir="$save_libdir"
526
+ dnl We use only dependency_libs.
527
+ for dep in $dependency_libs; do
528
+ case "$dep" in
529
+ -L*)
530
+ additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
531
+ dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME.
532
+ dnl But don't add it
533
+ dnl 1. if it's the standard /usr/lib,
534
+ dnl 2. if it's /usr/local/lib and we are using GCC on Linux,
535
+ dnl 3. if it's already present in $LDFLAGS or the already
536
+ dnl constructed $LIBNAME,
537
+ dnl 4. if it doesn't exist as a directory.
538
+ if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
539
+ && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
540
+ haveit=
541
+ if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
542
+ || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
543
+ if test -n "$GCC"; then
544
+ case $host_os in
545
+ linux* | gnu* | k*bsd*-gnu) haveit=yes;;
546
+ esac
547
+ fi
548
+ fi
549
+ if test -z "$haveit"; then
550
+ haveit=
551
+ for x in $LDFLAGS $LIB[]NAME; do
552
+ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
553
+ if test "X$x" = "X-L$additional_libdir"; then
554
+ haveit=yes
555
+ break
556
+ fi
557
+ done
558
+ if test -z "$haveit"; then
559
+ if test -d "$additional_libdir"; then
560
+ dnl Really add $additional_libdir to $LIBNAME.
561
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
562
+ fi
563
+ fi
564
+ haveit=
565
+ for x in $LDFLAGS $LTLIB[]NAME; do
566
+ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
567
+ if test "X$x" = "X-L$additional_libdir"; then
568
+ haveit=yes
569
+ break
570
+ fi
571
+ done
572
+ if test -z "$haveit"; then
573
+ if test -d "$additional_libdir"; then
574
+ dnl Really add $additional_libdir to $LTLIBNAME.
575
+ LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"
576
+ fi
577
+ fi
578
+ fi
579
+ fi
580
+ ;;
581
+ -R*)
582
+ dir=`echo "X$dep" | sed -e 's/^X-R//'`
583
+ if test "$enable_rpath" != no; then
584
+ dnl Potentially add DIR to rpathdirs.
585
+ dnl The rpathdirs will be appended to $LIBNAME at the end.
586
+ haveit=
587
+ for x in $rpathdirs; do
588
+ if test "X$x" = "X$dir"; then
589
+ haveit=yes
590
+ break
591
+ fi
592
+ done
593
+ if test -z "$haveit"; then
594
+ rpathdirs="$rpathdirs $dir"
595
+ fi
596
+ dnl Potentially add DIR to ltrpathdirs.
597
+ dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
598
+ haveit=
599
+ for x in $ltrpathdirs; do
600
+ if test "X$x" = "X$dir"; then
601
+ haveit=yes
602
+ break
603
+ fi
604
+ done
605
+ if test -z "$haveit"; then
606
+ ltrpathdirs="$ltrpathdirs $dir"
607
+ fi
608
+ fi
609
+ ;;
610
+ -l*)
611
+ dnl Handle this in the next round.
612
+ names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
613
+ ;;
614
+ *.la)
615
+ dnl Handle this in the next round. Throw away the .la's
616
+ dnl directory; it is already contained in a preceding -L
617
+ dnl option.
618
+ names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
619
+ ;;
620
+ *)
621
+ dnl Most likely an immediate library name.
622
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"
623
+ LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep"
624
+ ;;
625
+ esac
626
+ done
627
+ fi
628
+ else
629
+ dnl Didn't find the library; assume it is in the system directories
630
+ dnl known to the linker and runtime loader. (All the system
631
+ dnl directories known to the linker should also be known to the
632
+ dnl runtime loader, otherwise the system is severely misconfigured.)
633
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
634
+ LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
635
+ fi
636
+ fi
637
+ fi
638
+ done
639
+ done
640
+ if test "X$rpathdirs" != "X"; then
641
+ if test -n "$acl_hardcode_libdir_separator"; then
642
+ dnl Weird platform: only the last -rpath option counts, the user must
643
+ dnl pass all path elements in one option. We can arrange that for a
644
+ dnl single library, but not when more than one $LIBNAMEs are used.
645
+ alldirs=
646
+ for found_dir in $rpathdirs; do
647
+ alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
648
+ done
649
+ dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl.
650
+ acl_save_libdir="$libdir"
651
+ libdir="$alldirs"
652
+ eval flag=\"$acl_hardcode_libdir_flag_spec\"
653
+ libdir="$acl_save_libdir"
654
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
655
+ else
656
+ dnl The -rpath options are cumulative.
657
+ for found_dir in $rpathdirs; do
658
+ acl_save_libdir="$libdir"
659
+ libdir="$found_dir"
660
+ eval flag=\"$acl_hardcode_libdir_flag_spec\"
661
+ libdir="$acl_save_libdir"
662
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
663
+ done
664
+ fi
665
+ fi
666
+ if test "X$ltrpathdirs" != "X"; then
667
+ dnl When using libtool, the option that works for both libraries and
668
+ dnl executables is -R. The -R options are cumulative.
669
+ for found_dir in $ltrpathdirs; do
670
+ LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
671
+ done
672
+ fi
673
+ popdef([P_A_C_K])
674
+ popdef([PACKLIBS])
675
+ popdef([PACKUP])
676
+ popdef([PACK])
677
+ popdef([NAME])
678
+ ])
679
+
680
+ dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,
681
+ dnl unless already present in VAR.
682
+ dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes
683
+ dnl contains two or three consecutive elements that belong together.
684
+ AC_DEFUN([AC_LIB_APPENDTOVAR],
685
+ [
686
+ for element in [$2]; do
687
+ haveit=
688
+ for x in $[$1]; do
689
+ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
690
+ if test "X$x" = "X$element"; then
691
+ haveit=yes
692
+ break
693
+ fi
694
+ done
695
+ if test -z "$haveit"; then
696
+ [$1]="${[$1]}${[$1]:+ }$element"
697
+ fi
698
+ done
699
+ ])
700
+
701
+ dnl For those cases where a variable contains several -L and -l options
702
+ dnl referring to unknown libraries and directories, this macro determines the
703
+ dnl necessary additional linker options for the runtime path.
704
+ dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL])
705
+ dnl sets LDADDVAR to linker options needed together with LIBSVALUE.
706
+ dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed,
707
+ dnl otherwise linking without libtool is assumed.
708
+ AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS],
709
+ [
710
+ AC_REQUIRE([AC_LIB_RPATH])
711
+ AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
712
+ $1=
713
+ if test "$enable_rpath" != no; then
714
+ if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
715
+ dnl Use an explicit option to hardcode directories into the resulting
716
+ dnl binary.
717
+ rpathdirs=
718
+ next=
719
+ for opt in $2; do
720
+ if test -n "$next"; then
721
+ dir="$next"
722
+ dnl No need to hardcode the standard /usr/lib.
723
+ if test "X$dir" != "X/usr/$acl_libdirstem" \
724
+ && test "X$dir" != "X/usr/$acl_libdirstem2"; then
725
+ rpathdirs="$rpathdirs $dir"
726
+ fi
727
+ next=
728
+ else
729
+ case $opt in
730
+ -L) next=yes ;;
731
+ -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'`
732
+ dnl No need to hardcode the standard /usr/lib.
733
+ if test "X$dir" != "X/usr/$acl_libdirstem" \
734
+ && test "X$dir" != "X/usr/$acl_libdirstem2"; then
735
+ rpathdirs="$rpathdirs $dir"
736
+ fi
737
+ next= ;;
738
+ *) next= ;;
739
+ esac
740
+ fi
741
+ done
742
+ if test "X$rpathdirs" != "X"; then
743
+ if test -n ""$3""; then
744
+ dnl libtool is used for linking. Use -R options.
745
+ for dir in $rpathdirs; do
746
+ $1="${$1}${$1:+ }-R$dir"
747
+ done
748
+ else
749
+ dnl The linker is used for linking directly.
750
+ if test -n "$acl_hardcode_libdir_separator"; then
751
+ dnl Weird platform: only the last -rpath option counts, the user
752
+ dnl must pass all path elements in one option.
753
+ alldirs=
754
+ for dir in $rpathdirs; do
755
+ alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir"
756
+ done
757
+ acl_save_libdir="$libdir"
758
+ libdir="$alldirs"
759
+ eval flag=\"$acl_hardcode_libdir_flag_spec\"
760
+ libdir="$acl_save_libdir"
761
+ $1="$flag"
762
+ else
763
+ dnl The -rpath options are cumulative.
764
+ for dir in $rpathdirs; do
765
+ acl_save_libdir="$libdir"
766
+ libdir="$dir"
767
+ eval flag=\"$acl_hardcode_libdir_flag_spec\"
768
+ libdir="$acl_save_libdir"
769
+ $1="${$1}${$1:+ }$flag"
770
+ done
771
+ fi
772
+ fi
773
+ fi
774
+ fi
775
+ fi
776
+ AC_SUBST([$1])
777
+ ])