librawspeed-full 1.0.129

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 (541) hide show
  1. package/CHANGELOG.md +1138 -0
  2. package/LICENSE +21 -0
  3. package/README.md +1414 -0
  4. package/binding.gyp +55 -0
  5. package/deps/LibRaw-Source/LibRaw-0.21.4/.clang-format +4 -0
  6. package/deps/LibRaw-Source/LibRaw-0.21.4/COPYRIGHT +27 -0
  7. package/deps/LibRaw-Source/LibRaw-0.21.4/Changelog.txt +2802 -0
  8. package/deps/LibRaw-Source/LibRaw-0.21.4/DEVELOPER-NOTES +20 -0
  9. package/deps/LibRaw-Source/LibRaw-0.21.4/GoPro/dng-sdk-1_4-allow-VC5-validate.diff +21 -0
  10. package/deps/LibRaw-Source/LibRaw-0.21.4/GoPro/dng-sdk-1_6-hide-ccVc5-definitiion.diff +15 -0
  11. package/deps/LibRaw-Source/LibRaw-0.21.4/GoPro/dng-sdk-allow-VC5-validate.diff +21 -0
  12. package/deps/LibRaw-Source/LibRaw-0.21.4/GoPro/gpr_read_image.cpp.diff +29 -0
  13. package/deps/LibRaw-Source/LibRaw-0.21.4/GoPro/gpr_read_image.h.diff +12 -0
  14. package/deps/LibRaw-Source/LibRaw-0.21.4/INSTALL +51 -0
  15. package/deps/LibRaw-Source/LibRaw-0.21.4/LICENSE.CDDL +340 -0
  16. package/deps/LibRaw-Source/LibRaw-0.21.4/LICENSE.LGPL +458 -0
  17. package/deps/LibRaw-Source/LibRaw-0.21.4/LibRaw.pro +19 -0
  18. package/deps/LibRaw-Source/LibRaw-0.21.4/LibRaw.sln +123 -0
  19. package/deps/LibRaw-Source/LibRaw-0.21.4/Makefile +2135 -0
  20. package/deps/LibRaw-Source/LibRaw-0.21.4/Makefile.am +140 -0
  21. package/deps/LibRaw-Source/LibRaw-0.21.4/Makefile.devel.nopp +230 -0
  22. package/deps/LibRaw-Source/LibRaw-0.21.4/Makefile.devel.noppr2i +227 -0
  23. package/deps/LibRaw-Source/LibRaw-0.21.4/Makefile.dist +501 -0
  24. package/deps/LibRaw-Source/LibRaw-0.21.4/Makefile.in +2135 -0
  25. package/deps/LibRaw-Source/LibRaw-0.21.4/Makefile.mingw +297 -0
  26. package/deps/LibRaw-Source/LibRaw-0.21.4/Makefile.msvc +628 -0
  27. package/deps/LibRaw-Source/LibRaw-0.21.4/README.DNGSDK.txt +43 -0
  28. package/deps/LibRaw-Source/LibRaw-0.21.4/README.GoPro.txt +112 -0
  29. package/deps/LibRaw-Source/LibRaw-0.21.4/README.RawSpeed.txt +62 -0
  30. package/deps/LibRaw-Source/LibRaw-0.21.4/README.cmake +9 -0
  31. package/deps/LibRaw-Source/LibRaw-0.21.4/README.demosaic-packs +17 -0
  32. package/deps/LibRaw-Source/LibRaw-0.21.4/README.md +106 -0
  33. package/deps/LibRaw-Source/LibRaw-0.21.4/RawSpeed/rawspeed.cpucount-unix.patch +15 -0
  34. package/deps/LibRaw-Source/LibRaw-0.21.4/RawSpeed/rawspeed.qmake-pro-files.patch +84 -0
  35. package/deps/LibRaw-Source/LibRaw-0.21.4/RawSpeed/rawspeed.samsung-decoder.patch +39 -0
  36. package/deps/LibRaw-Source/LibRaw-0.21.4/RawSpeed/rawspeed.uncompressed-color-dng.patch +13 -0
  37. package/deps/LibRaw-Source/LibRaw-0.21.4/RawSpeed/rawspeed.win32-dll.patch +186 -0
  38. package/deps/LibRaw-Source/LibRaw-0.21.4/RawSpeed/rawspeed_xmldata.cpp +4115 -0
  39. package/deps/LibRaw-Source/LibRaw-0.21.4/RawSpeed3/README.md +69 -0
  40. package/deps/LibRaw-Source/LibRaw-0.21.4/RawSpeed3/patches/01.CameraMeta-extensibility.patch +13 -0
  41. package/deps/LibRaw-Source/LibRaw-0.21.4/RawSpeed3/patches/02.Makernotes-processing.patch +36 -0
  42. package/deps/LibRaw-Source/LibRaw-0.21.4/RawSpeed3/patches/03.remove-limits-and-logging.patch +245 -0
  43. package/deps/LibRaw-Source/LibRaw-0.21.4/RawSpeed3/patches/04.clang-cl-compatibility.patch +37 -0
  44. package/deps/LibRaw-Source/LibRaw-0.21.4/RawSpeed3/rawspeed3_c_api/rawspeed3_capi.cpp +251 -0
  45. package/deps/LibRaw-Source/LibRaw-0.21.4/RawSpeed3/rawspeed3_c_api/rawspeed3_capi.h +83 -0
  46. package/deps/LibRaw-Source/LibRaw-0.21.4/RawSpeed3/rawspeed3_c_api/rawspeed3_capi_test.cpp +71 -0
  47. package/deps/LibRaw-Source/LibRaw-0.21.4/RawSpeed3/rawspeed3_c_api/rsxml2c.sh +5 -0
  48. package/deps/LibRaw-Source/LibRaw-0.21.4/aclocal.m4 +1674 -0
  49. package/deps/LibRaw-Source/LibRaw-0.21.4/bin/.dirstamp +0 -0
  50. package/deps/LibRaw-Source/LibRaw-0.21.4/bin/.keep_me +2 -0
  51. package/deps/LibRaw-Source/LibRaw-0.21.4/bin/4channels +0 -0
  52. package/deps/LibRaw-Source/LibRaw-0.21.4/bin/dcraw_emu +0 -0
  53. package/deps/LibRaw-Source/LibRaw-0.21.4/bin/mem_image +0 -0
  54. package/deps/LibRaw-Source/LibRaw-0.21.4/bin/multirender_test +0 -0
  55. package/deps/LibRaw-Source/LibRaw-0.21.4/bin/postprocessing_benchmark +0 -0
  56. package/deps/LibRaw-Source/LibRaw-0.21.4/bin/raw-identify +0 -0
  57. package/deps/LibRaw-Source/LibRaw-0.21.4/bin/rawtextdump +0 -0
  58. package/deps/LibRaw-Source/LibRaw-0.21.4/bin/simple_dcraw +0 -0
  59. package/deps/LibRaw-Source/LibRaw-0.21.4/bin/unprocessed_raw +0 -0
  60. package/deps/LibRaw-Source/LibRaw-0.21.4/build/darwin-arm64/include/libraw/libraw.h +534 -0
  61. package/deps/LibRaw-Source/LibRaw-0.21.4/build/darwin-arm64/include/libraw/libraw_alloc.h +148 -0
  62. package/deps/LibRaw-Source/LibRaw-0.21.4/build/darwin-arm64/include/libraw/libraw_const.h +814 -0
  63. package/deps/LibRaw-Source/LibRaw-0.21.4/build/darwin-arm64/include/libraw/libraw_datastream.h +410 -0
  64. package/deps/LibRaw-Source/LibRaw-0.21.4/build/darwin-arm64/include/libraw/libraw_internal.h +341 -0
  65. package/deps/LibRaw-Source/LibRaw-0.21.4/build/darwin-arm64/include/libraw/libraw_types.h +1175 -0
  66. package/deps/LibRaw-Source/LibRaw-0.21.4/build/darwin-arm64/include/libraw/libraw_version.h +63 -0
  67. package/deps/LibRaw-Source/LibRaw-0.21.4/build/darwin-arm64/lib/libraw.a +0 -0
  68. package/deps/LibRaw-Source/LibRaw-0.21.4/build/darwin-arm64/lib/libraw.la +41 -0
  69. package/deps/LibRaw-Source/LibRaw-0.21.4/build/darwin-arm64/lib/libraw_r.a +0 -0
  70. package/deps/LibRaw-Source/LibRaw-0.21.4/build/darwin-arm64/lib/libraw_r.la +41 -0
  71. package/deps/LibRaw-Source/LibRaw-0.21.4/build/darwin-arm64/lib/pkgconfig/libraw.pc +12 -0
  72. package/deps/LibRaw-Source/LibRaw-0.21.4/build/darwin-arm64/lib/pkgconfig/libraw_r.pc +12 -0
  73. package/deps/LibRaw-Source/LibRaw-0.21.4/build/darwin-arm64/share/doc/libraw/COPYRIGHT +27 -0
  74. package/deps/LibRaw-Source/LibRaw-0.21.4/build/darwin-arm64/share/doc/libraw/Changelog.txt +2802 -0
  75. package/deps/LibRaw-Source/LibRaw-0.21.4/build/darwin-arm64/share/doc/libraw/LICENSE.CDDL +340 -0
  76. package/deps/LibRaw-Source/LibRaw-0.21.4/build/darwin-arm64/share/doc/libraw/LICENSE.LGPL +458 -0
  77. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/4channels.pro +5 -0
  78. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/4channels.vcxproj +145 -0
  79. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/4channels.vcxproj.filters +18 -0
  80. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/dcraw_emu.pro +6 -0
  81. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/dcraw_emu.vcxproj +145 -0
  82. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/dcraw_emu.vcxproj.filters +18 -0
  83. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/dcraw_half.pro +6 -0
  84. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/dcraw_half.vcxproj +145 -0
  85. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/dcraw_half.vcxproj.filters +18 -0
  86. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/half_mt.pro +10 -0
  87. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/libraw-common-lib.pro +28 -0
  88. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/libraw-common.pro +8 -0
  89. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/libraw.pro +70 -0
  90. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/libraw.vcxproj +234 -0
  91. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/libraw.vcxproj.filters +295 -0
  92. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/mem_image.pro +6 -0
  93. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/mem_image.vcxproj +145 -0
  94. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/mem_image.vcxproj.filters +18 -0
  95. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/multirender_test.pro +6 -0
  96. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/multirender_test.vcxproj +145 -0
  97. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/multirender_test.vcxproj.filters +18 -0
  98. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/openbayer_sample.pro +6 -0
  99. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/openbayer_sample.vcxproj +145 -0
  100. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/openbayer_sample.vcxproj.filters +18 -0
  101. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/postprocessing_benchmark.pro +4 -0
  102. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/postprocessing_benchmark.vcxproj +145 -0
  103. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/postprocessing_benchmark.vcxproj.filters +18 -0
  104. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/raw-identify.pro +6 -0
  105. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/raw-identify.vcxproj +145 -0
  106. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/raw-identify.vcxproj.filters +18 -0
  107. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/rawtextdump.pro +6 -0
  108. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/rawtextdump.vcxproj +145 -0
  109. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/rawtextdump.vcxproj.filters +18 -0
  110. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/simple_dcraw.pro +6 -0
  111. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/simple_dcraw.vcxproj +145 -0
  112. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/simple_dcraw.vcxproj.filters +18 -0
  113. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/unprocessed_raw.pro +6 -0
  114. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/unprocessed_raw.vcxproj +145 -0
  115. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/unprocessed_raw.vcxproj.filters +18 -0
  116. package/deps/LibRaw-Source/LibRaw-0.21.4/compile +347 -0
  117. package/deps/LibRaw-Source/LibRaw-0.21.4/config.guess +1433 -0
  118. package/deps/LibRaw-Source/LibRaw-0.21.4/config.log +930 -0
  119. package/deps/LibRaw-Source/LibRaw-0.21.4/config.status +2090 -0
  120. package/deps/LibRaw-Source/LibRaw-0.21.4/config.sub +1804 -0
  121. package/deps/LibRaw-Source/LibRaw-0.21.4/configure +22084 -0
  122. package/deps/LibRaw-Source/LibRaw-0.21.4/configure.ac +153 -0
  123. package/deps/LibRaw-Source/LibRaw-0.21.4/depcomp +791 -0
  124. package/deps/LibRaw-Source/LibRaw-0.21.4/doc/API-C.html +187 -0
  125. package/deps/LibRaw-Source/LibRaw-0.21.4/doc/API-CXX.html +881 -0
  126. package/deps/LibRaw-Source/LibRaw-0.21.4/doc/API-datastruct.html +1341 -0
  127. package/deps/LibRaw-Source/LibRaw-0.21.4/doc/API-notes.html +305 -0
  128. package/deps/LibRaw-Source/LibRaw-0.21.4/doc/API-overview.html +66 -0
  129. package/deps/LibRaw-Source/LibRaw-0.21.4/doc/Install-LibRaw.html +124 -0
  130. package/deps/LibRaw-Source/LibRaw-0.21.4/doc/Samples-LibRaw.html +213 -0
  131. package/deps/LibRaw-Source/LibRaw-0.21.4/doc/Why-LibRaw.html +65 -0
  132. package/deps/LibRaw-Source/LibRaw-0.21.4/doc/index.html +38 -0
  133. package/deps/LibRaw-Source/LibRaw-0.21.4/install-sh +501 -0
  134. package/deps/LibRaw-Source/LibRaw-0.21.4/internal/dcraw_defs.h +66 -0
  135. package/deps/LibRaw-Source/LibRaw-0.21.4/internal/dcraw_fileio_defs.h +25 -0
  136. package/deps/LibRaw-Source/LibRaw-0.21.4/internal/defines.h +193 -0
  137. package/deps/LibRaw-Source/LibRaw-0.21.4/internal/dmp_include.h +27 -0
  138. package/deps/LibRaw-Source/LibRaw-0.21.4/internal/libraw_cameraids.h +320 -0
  139. package/deps/LibRaw-Source/LibRaw-0.21.4/internal/libraw_cxx_defs.h +133 -0
  140. package/deps/LibRaw-Source/LibRaw-0.21.4/internal/libraw_internal_funcs.h +412 -0
  141. package/deps/LibRaw-Source/LibRaw-0.21.4/internal/var_defines.h +215 -0
  142. package/deps/LibRaw-Source/LibRaw-0.21.4/internal/x3f_tools.h +539 -0
  143. package/deps/LibRaw-Source/LibRaw-0.21.4/lib/.dirstamp +0 -0
  144. package/deps/LibRaw-Source/LibRaw-0.21.4/lib/.libs/libraw.a +0 -0
  145. package/deps/LibRaw-Source/LibRaw-0.21.4/lib/.libs/libraw.lai +41 -0
  146. package/deps/LibRaw-Source/LibRaw-0.21.4/lib/.libs/libraw_r.a +0 -0
  147. package/deps/LibRaw-Source/LibRaw-0.21.4/lib/.libs/libraw_r.lai +41 -0
  148. package/deps/LibRaw-Source/LibRaw-0.21.4/lib/libraw.la +41 -0
  149. package/deps/LibRaw-Source/LibRaw-0.21.4/lib/libraw_r.la +41 -0
  150. package/deps/LibRaw-Source/LibRaw-0.21.4/libraw/libraw.h +534 -0
  151. package/deps/LibRaw-Source/LibRaw-0.21.4/libraw/libraw_alloc.h +148 -0
  152. package/deps/LibRaw-Source/LibRaw-0.21.4/libraw/libraw_const.h +814 -0
  153. package/deps/LibRaw-Source/LibRaw-0.21.4/libraw/libraw_datastream.h +410 -0
  154. package/deps/LibRaw-Source/LibRaw-0.21.4/libraw/libraw_internal.h +341 -0
  155. package/deps/LibRaw-Source/LibRaw-0.21.4/libraw/libraw_types.h +1175 -0
  156. package/deps/LibRaw-Source/LibRaw-0.21.4/libraw/libraw_version.h +63 -0
  157. package/deps/LibRaw-Source/LibRaw-0.21.4/libraw.pc +12 -0
  158. package/deps/LibRaw-Source/LibRaw-0.21.4/libraw.pc.in +12 -0
  159. package/deps/LibRaw-Source/LibRaw-0.21.4/libraw_r.pc +12 -0
  160. package/deps/LibRaw-Source/LibRaw-0.21.4/libraw_r.pc.in +12 -0
  161. package/deps/LibRaw-Source/LibRaw-0.21.4/libtool +12190 -0
  162. package/deps/LibRaw-Source/LibRaw-0.21.4/ltmain.sh +11524 -0
  163. package/deps/LibRaw-Source/LibRaw-0.21.4/m4/ax_openmp.m4 +99 -0
  164. package/deps/LibRaw-Source/LibRaw-0.21.4/m4/libtool.m4 +8488 -0
  165. package/deps/LibRaw-Source/LibRaw-0.21.4/m4/ltoptions.m4 +467 -0
  166. package/deps/LibRaw-Source/LibRaw-0.21.4/m4/ltsugar.m4 +124 -0
  167. package/deps/LibRaw-Source/LibRaw-0.21.4/m4/ltversion.m4 +24 -0
  168. package/deps/LibRaw-Source/LibRaw-0.21.4/m4/lt~obsolete.m4 +99 -0
  169. package/deps/LibRaw-Source/LibRaw-0.21.4/missing +215 -0
  170. package/deps/LibRaw-Source/LibRaw-0.21.4/object/.keep_me +0 -0
  171. package/deps/LibRaw-Source/LibRaw-0.21.4/rsxml2c.sh +6 -0
  172. package/deps/LibRaw-Source/LibRaw-0.21.4/samples/.deps/bin_4channels-4channels.Po +0 -0
  173. package/deps/LibRaw-Source/LibRaw-0.21.4/samples/.deps/bin_dcraw_emu-dcraw_emu.Po +0 -0
  174. package/deps/LibRaw-Source/LibRaw-0.21.4/samples/.deps/bin_dcraw_half-dcraw_half.Po +0 -0
  175. package/deps/LibRaw-Source/LibRaw-0.21.4/samples/.deps/bin_half_mt-half_mt.Po +0 -0
  176. package/deps/LibRaw-Source/LibRaw-0.21.4/samples/.deps/bin_mem_image-mem_image_sample.Po +0 -0
  177. package/deps/LibRaw-Source/LibRaw-0.21.4/samples/.deps/bin_multirender_test-multirender_test.Po +0 -0
  178. package/deps/LibRaw-Source/LibRaw-0.21.4/samples/.deps/bin_postprocessing_benchmark-postprocessing_benchmark.Po +0 -0
  179. package/deps/LibRaw-Source/LibRaw-0.21.4/samples/.deps/bin_raw_identify-raw-identify.Po +0 -0
  180. package/deps/LibRaw-Source/LibRaw-0.21.4/samples/.deps/bin_rawtextdump-rawtextdump.Po +0 -0
  181. package/deps/LibRaw-Source/LibRaw-0.21.4/samples/.deps/bin_simple_dcraw-simple_dcraw.Po +0 -0
  182. package/deps/LibRaw-Source/LibRaw-0.21.4/samples/.deps/bin_unprocessed_raw-unprocessed_raw.Po +0 -0
  183. package/deps/LibRaw-Source/LibRaw-0.21.4/samples/.dirstamp +0 -0
  184. package/deps/LibRaw-Source/LibRaw-0.21.4/samples/4channels.cpp +174 -0
  185. package/deps/LibRaw-Source/LibRaw-0.21.4/samples/Makefile +2 -0
  186. package/deps/LibRaw-Source/LibRaw-0.21.4/samples/dcraw_emu.cpp +670 -0
  187. package/deps/LibRaw-Source/LibRaw-0.21.4/samples/dcraw_half.c +78 -0
  188. package/deps/LibRaw-Source/LibRaw-0.21.4/samples/half_mt.c +178 -0
  189. package/deps/LibRaw-Source/LibRaw-0.21.4/samples/half_mt_win32.c +212 -0
  190. package/deps/LibRaw-Source/LibRaw-0.21.4/samples/mem_image_sample.cpp +282 -0
  191. package/deps/LibRaw-Source/LibRaw-0.21.4/samples/multirender_test.cpp +107 -0
  192. package/deps/LibRaw-Source/LibRaw-0.21.4/samples/openbayer_sample.cpp +65 -0
  193. package/deps/LibRaw-Source/LibRaw-0.21.4/samples/postprocessing_benchmark.cpp +223 -0
  194. package/deps/LibRaw-Source/LibRaw-0.21.4/samples/raw-identify.cpp +743 -0
  195. package/deps/LibRaw-Source/LibRaw-0.21.4/samples/rawtextdump.cpp +144 -0
  196. package/deps/LibRaw-Source/LibRaw-0.21.4/samples/simple_dcraw.cpp +217 -0
  197. package/deps/LibRaw-Source/LibRaw-0.21.4/samples/unprocessed_raw.cpp +319 -0
  198. package/deps/LibRaw-Source/LibRaw-0.21.4/shlib-version.sh +11 -0
  199. package/deps/LibRaw-Source/LibRaw-0.21.4/src/.deps/.dirstamp +0 -0
  200. package/deps/LibRaw-Source/LibRaw-0.21.4/src/.deps/libraw_c_api.Plo +1597 -0
  201. package/deps/LibRaw-Source/LibRaw-0.21.4/src/.deps/libraw_datastream.Plo +1604 -0
  202. package/deps/LibRaw-Source/LibRaw-0.21.4/src/.dirstamp +0 -0
  203. package/deps/LibRaw-Source/LibRaw-0.21.4/src/Makefile +2 -0
  204. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/.deps/.dirstamp +0 -0
  205. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/.deps/canon_600.Plo +1656 -0
  206. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/.deps/crx.Plo +1659 -0
  207. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/.deps/decoders_dcraw.Plo +1657 -0
  208. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/.deps/decoders_libraw.Plo +1659 -0
  209. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/.deps/decoders_libraw_dcrdefs.Plo +1657 -0
  210. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/.deps/dng.Plo +1656 -0
  211. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/.deps/fp_dng.Plo +1659 -0
  212. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/.deps/fuji_compressed.Plo +1659 -0
  213. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/.deps/generic.Plo +1656 -0
  214. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/.deps/kodak_decoders.Plo +1656 -0
  215. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/.deps/load_mfbacks.Plo +1656 -0
  216. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/.deps/smal.Plo +1656 -0
  217. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/.deps/unpack.Plo +1661 -0
  218. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/.deps/unpack_thumb.Plo +1659 -0
  219. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/.dirstamp +0 -0
  220. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/canon_600.cpp +225 -0
  221. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/canon_600.lo +12 -0
  222. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/canon_600.o +0 -0
  223. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/crx.cpp +2781 -0
  224. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/crx.lo +12 -0
  225. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/crx.o +0 -0
  226. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/decoders_dcraw.cpp +1816 -0
  227. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/decoders_dcraw.lo +12 -0
  228. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/decoders_dcraw.o +0 -0
  229. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/decoders_libraw.cpp +873 -0
  230. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/decoders_libraw.lo +12 -0
  231. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/decoders_libraw.o +0 -0
  232. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/decoders_libraw_dcrdefs.cpp +411 -0
  233. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/decoders_libraw_dcrdefs.lo +12 -0
  234. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/decoders_libraw_dcrdefs.o +0 -0
  235. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/dng.cpp +284 -0
  236. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/dng.lo +12 -0
  237. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/dng.o +0 -0
  238. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/fp_dng.cpp +689 -0
  239. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/fp_dng.lo +12 -0
  240. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/fp_dng.o +0 -0
  241. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/fuji_compressed.cpp +1210 -0
  242. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/fuji_compressed.lo +12 -0
  243. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/fuji_compressed.o +0 -0
  244. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/generic.cpp +101 -0
  245. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/generic.lo +12 -0
  246. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/generic.o +0 -0
  247. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/kodak_decoders.cpp +524 -0
  248. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/kodak_decoders.lo +12 -0
  249. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/kodak_decoders.o +0 -0
  250. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/load_mfbacks.cpp +936 -0
  251. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/load_mfbacks.lo +12 -0
  252. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/load_mfbacks.o +0 -0
  253. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/smal.cpp +181 -0
  254. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/smal.lo +12 -0
  255. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/smal.o +0 -0
  256. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/unpack.cpp +508 -0
  257. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/unpack.lo +12 -0
  258. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/unpack.o +0 -0
  259. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/unpack_thumb.cpp +405 -0
  260. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/unpack_thumb.lo +12 -0
  261. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/unpack_thumb.o +0 -0
  262. package/deps/LibRaw-Source/LibRaw-0.21.4/src/demosaic/.deps/.dirstamp +0 -0
  263. package/deps/LibRaw-Source/LibRaw-0.21.4/src/demosaic/.deps/aahd_demosaic.Plo +1653 -0
  264. package/deps/LibRaw-Source/LibRaw-0.21.4/src/demosaic/.deps/ahd_demosaic.Plo +1656 -0
  265. package/deps/LibRaw-Source/LibRaw-0.21.4/src/demosaic/.deps/dcb_demosaic.Plo +1656 -0
  266. package/deps/LibRaw-Source/LibRaw-0.21.4/src/demosaic/.deps/dht_demosaic.Plo +1653 -0
  267. package/deps/LibRaw-Source/LibRaw-0.21.4/src/demosaic/.deps/misc_demosaic.Plo +1656 -0
  268. package/deps/LibRaw-Source/LibRaw-0.21.4/src/demosaic/.deps/xtrans_demosaic.Plo +1656 -0
  269. package/deps/LibRaw-Source/LibRaw-0.21.4/src/demosaic/.dirstamp +0 -0
  270. package/deps/LibRaw-Source/LibRaw-0.21.4/src/demosaic/aahd_demosaic.cpp +781 -0
  271. package/deps/LibRaw-Source/LibRaw-0.21.4/src/demosaic/aahd_demosaic.lo +12 -0
  272. package/deps/LibRaw-Source/LibRaw-0.21.4/src/demosaic/aahd_demosaic.o +0 -0
  273. package/deps/LibRaw-Source/LibRaw-0.21.4/src/demosaic/ahd_demosaic.cpp +355 -0
  274. package/deps/LibRaw-Source/LibRaw-0.21.4/src/demosaic/ahd_demosaic.lo +12 -0
  275. package/deps/LibRaw-Source/LibRaw-0.21.4/src/demosaic/ahd_demosaic.o +0 -0
  276. package/deps/LibRaw-Source/LibRaw-0.21.4/src/demosaic/dcb_demosaic.cpp +900 -0
  277. package/deps/LibRaw-Source/LibRaw-0.21.4/src/demosaic/dcb_demosaic.lo +12 -0
  278. package/deps/LibRaw-Source/LibRaw-0.21.4/src/demosaic/dcb_demosaic.o +0 -0
  279. package/deps/LibRaw-Source/LibRaw-0.21.4/src/demosaic/dht_demosaic.cpp +1033 -0
  280. package/deps/LibRaw-Source/LibRaw-0.21.4/src/demosaic/dht_demosaic.lo +12 -0
  281. package/deps/LibRaw-Source/LibRaw-0.21.4/src/demosaic/dht_demosaic.o +0 -0
  282. package/deps/LibRaw-Source/LibRaw-0.21.4/src/demosaic/misc_demosaic.cpp +420 -0
  283. package/deps/LibRaw-Source/LibRaw-0.21.4/src/demosaic/misc_demosaic.lo +12 -0
  284. package/deps/LibRaw-Source/LibRaw-0.21.4/src/demosaic/misc_demosaic.o +0 -0
  285. package/deps/LibRaw-Source/LibRaw-0.21.4/src/demosaic/xtrans_demosaic.cpp +434 -0
  286. package/deps/LibRaw-Source/LibRaw-0.21.4/src/demosaic/xtrans_demosaic.lo +12 -0
  287. package/deps/LibRaw-Source/LibRaw-0.21.4/src/demosaic/xtrans_demosaic.o +0 -0
  288. package/deps/LibRaw-Source/LibRaw-0.21.4/src/integration/.deps/.dirstamp +0 -0
  289. package/deps/LibRaw-Source/LibRaw-0.21.4/src/integration/.deps/dngsdk_glue.Plo +1659 -0
  290. package/deps/LibRaw-Source/LibRaw-0.21.4/src/integration/.deps/rawspeed_glue.Plo +1659 -0
  291. package/deps/LibRaw-Source/LibRaw-0.21.4/src/integration/.dirstamp +0 -0
  292. package/deps/LibRaw-Source/LibRaw-0.21.4/src/integration/dngsdk_glue.cpp +416 -0
  293. package/deps/LibRaw-Source/LibRaw-0.21.4/src/integration/dngsdk_glue.lo +12 -0
  294. package/deps/LibRaw-Source/LibRaw-0.21.4/src/integration/dngsdk_glue.o +0 -0
  295. package/deps/LibRaw-Source/LibRaw-0.21.4/src/integration/rawspeed_glue.cpp +286 -0
  296. package/deps/LibRaw-Source/LibRaw-0.21.4/src/integration/rawspeed_glue.lo +12 -0
  297. package/deps/LibRaw-Source/LibRaw-0.21.4/src/integration/rawspeed_glue.o +0 -0
  298. package/deps/LibRaw-Source/LibRaw-0.21.4/src/libraw_c_api.cpp +457 -0
  299. package/deps/LibRaw-Source/LibRaw-0.21.4/src/libraw_c_api.lo +12 -0
  300. package/deps/LibRaw-Source/LibRaw-0.21.4/src/libraw_c_api.o +0 -0
  301. package/deps/LibRaw-Source/LibRaw-0.21.4/src/libraw_datastream.cpp +1046 -0
  302. package/deps/LibRaw-Source/LibRaw-0.21.4/src/libraw_datastream.lo +12 -0
  303. package/deps/LibRaw-Source/LibRaw-0.21.4/src/libraw_datastream.o +0 -0
  304. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/.deps/.dirstamp +0 -0
  305. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/.deps/adobepano.Plo +1656 -0
  306. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/.deps/canon.Plo +1657 -0
  307. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/.deps/ciff.Plo +1656 -0
  308. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/.deps/cr3_parser.Plo +1656 -0
  309. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/.deps/epson.Plo +1656 -0
  310. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/.deps/exif_gps.Plo +1657 -0
  311. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/.deps/fuji.Plo +1656 -0
  312. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/.deps/hasselblad_model.Plo +1657 -0
  313. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/.deps/identify.Plo +1657 -0
  314. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/.deps/identify_tools.Plo +1656 -0
  315. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/.deps/kodak.Plo +1656 -0
  316. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/.deps/leica.Plo +1656 -0
  317. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/.deps/makernotes.Plo +1656 -0
  318. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/.deps/mediumformat.Plo +1656 -0
  319. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/.deps/minolta.Plo +1656 -0
  320. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/.deps/misc_parsers.Plo +1656 -0
  321. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/.deps/nikon.Plo +1656 -0
  322. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/.deps/normalize_model.Plo +1657 -0
  323. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/.deps/olympus.Plo +1657 -0
  324. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/.deps/p1.Plo +1656 -0
  325. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/.deps/pentax.Plo +1657 -0
  326. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/.deps/samsung.Plo +1656 -0
  327. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/.deps/sony.Plo +1657 -0
  328. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/.deps/tiff.Plo +1657 -0
  329. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/.dirstamp +0 -0
  330. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/adobepano.cpp +154 -0
  331. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/adobepano.lo +12 -0
  332. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/adobepano.o +0 -0
  333. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/canon.cpp +1335 -0
  334. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/canon.lo +12 -0
  335. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/canon.o +0 -0
  336. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/ciff.cpp +411 -0
  337. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/ciff.lo +12 -0
  338. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/ciff.o +0 -0
  339. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/cr3_parser.cpp +896 -0
  340. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/cr3_parser.lo +12 -0
  341. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/cr3_parser.o +0 -0
  342. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/epson.cpp +96 -0
  343. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/epson.lo +12 -0
  344. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/epson.o +0 -0
  345. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/exif_gps.cpp +430 -0
  346. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/exif_gps.lo +12 -0
  347. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/exif_gps.o +0 -0
  348. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/fuji.cpp +1427 -0
  349. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/fuji.lo +12 -0
  350. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/fuji.o +0 -0
  351. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/hasselblad_model.cpp +538 -0
  352. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/hasselblad_model.lo +12 -0
  353. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/hasselblad_model.o +0 -0
  354. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/identify.cpp +3167 -0
  355. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/identify.lo +12 -0
  356. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/identify.o +0 -0
  357. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/identify_tools.cpp +140 -0
  358. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/identify_tools.lo +12 -0
  359. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/identify_tools.o +0 -0
  360. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/kodak.cpp +363 -0
  361. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/kodak.lo +12 -0
  362. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/kodak.o +0 -0
  363. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/leica.cpp +375 -0
  364. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/leica.lo +12 -0
  365. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/leica.o +0 -0
  366. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/makernotes.cpp +786 -0
  367. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/makernotes.lo +12 -0
  368. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/makernotes.o +0 -0
  369. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/mediumformat.cpp +521 -0
  370. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/mediumformat.lo +12 -0
  371. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/mediumformat.o +0 -0
  372. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/minolta.cpp +110 -0
  373. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/minolta.lo +12 -0
  374. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/minolta.o +0 -0
  375. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/misc_parsers.cpp +694 -0
  376. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/misc_parsers.lo +12 -0
  377. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/misc_parsers.o +0 -0
  378. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/nikon.cpp +1051 -0
  379. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/nikon.lo +12 -0
  380. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/nikon.o +0 -0
  381. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/normalize_model.cpp +1451 -0
  382. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/normalize_model.lo +12 -0
  383. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/normalize_model.o +0 -0
  384. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/olympus.cpp +685 -0
  385. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/olympus.lo +12 -0
  386. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/olympus.o +0 -0
  387. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/p1.cpp +192 -0
  388. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/p1.lo +12 -0
  389. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/p1.o +0 -0
  390. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/pentax.cpp +675 -0
  391. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/pentax.lo +12 -0
  392. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/pentax.o +0 -0
  393. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/samsung.cpp +182 -0
  394. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/samsung.lo +12 -0
  395. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/samsung.o +0 -0
  396. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/sony.cpp +2320 -0
  397. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/sony.lo +12 -0
  398. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/sony.o +0 -0
  399. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/tiff.cpp +2198 -0
  400. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/tiff.lo +12 -0
  401. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/tiff.o +0 -0
  402. package/deps/LibRaw-Source/LibRaw-0.21.4/src/postprocessing/.deps/.dirstamp +0 -0
  403. package/deps/LibRaw-Source/LibRaw-0.21.4/src/postprocessing/.deps/aspect_ratio.Plo +1656 -0
  404. package/deps/LibRaw-Source/LibRaw-0.21.4/src/postprocessing/.deps/dcraw_process.Plo +1659 -0
  405. package/deps/LibRaw-Source/LibRaw-0.21.4/src/postprocessing/.deps/mem_image.Plo +1659 -0
  406. package/deps/LibRaw-Source/LibRaw-0.21.4/src/postprocessing/.deps/postprocessing_aux.Plo +1657 -0
  407. package/deps/LibRaw-Source/LibRaw-0.21.4/src/postprocessing/.deps/postprocessing_utils.Plo +1660 -0
  408. package/deps/LibRaw-Source/LibRaw-0.21.4/src/postprocessing/.deps/postprocessing_utils_dcrdefs.Plo +1657 -0
  409. package/deps/LibRaw-Source/LibRaw-0.21.4/src/postprocessing/.dirstamp +0 -0
  410. package/deps/LibRaw-Source/LibRaw-0.21.4/src/postprocessing/aspect_ratio.cpp +113 -0
  411. package/deps/LibRaw-Source/LibRaw-0.21.4/src/postprocessing/aspect_ratio.lo +12 -0
  412. package/deps/LibRaw-Source/LibRaw-0.21.4/src/postprocessing/aspect_ratio.o +0 -0
  413. package/deps/LibRaw-Source/LibRaw-0.21.4/src/postprocessing/dcraw_process.cpp +259 -0
  414. package/deps/LibRaw-Source/LibRaw-0.21.4/src/postprocessing/dcraw_process.lo +12 -0
  415. package/deps/LibRaw-Source/LibRaw-0.21.4/src/postprocessing/dcraw_process.o +0 -0
  416. package/deps/LibRaw-Source/LibRaw-0.21.4/src/postprocessing/mem_image.cpp +292 -0
  417. package/deps/LibRaw-Source/LibRaw-0.21.4/src/postprocessing/mem_image.lo +12 -0
  418. package/deps/LibRaw-Source/LibRaw-0.21.4/src/postprocessing/mem_image.o +0 -0
  419. package/deps/LibRaw-Source/LibRaw-0.21.4/src/postprocessing/postprocessing_aux.cpp +413 -0
  420. package/deps/LibRaw-Source/LibRaw-0.21.4/src/postprocessing/postprocessing_aux.lo +12 -0
  421. package/deps/LibRaw-Source/LibRaw-0.21.4/src/postprocessing/postprocessing_aux.o +0 -0
  422. package/deps/LibRaw-Source/LibRaw-0.21.4/src/postprocessing/postprocessing_ph.cpp +31 -0
  423. package/deps/LibRaw-Source/LibRaw-0.21.4/src/postprocessing/postprocessing_utils.cpp +190 -0
  424. package/deps/LibRaw-Source/LibRaw-0.21.4/src/postprocessing/postprocessing_utils.lo +12 -0
  425. package/deps/LibRaw-Source/LibRaw-0.21.4/src/postprocessing/postprocessing_utils.o +0 -0
  426. package/deps/LibRaw-Source/LibRaw-0.21.4/src/postprocessing/postprocessing_utils_dcrdefs.cpp +308 -0
  427. package/deps/LibRaw-Source/LibRaw-0.21.4/src/postprocessing/postprocessing_utils_dcrdefs.lo +12 -0
  428. package/deps/LibRaw-Source/LibRaw-0.21.4/src/postprocessing/postprocessing_utils_dcrdefs.o +0 -0
  429. package/deps/LibRaw-Source/LibRaw-0.21.4/src/preprocessing/.deps/.dirstamp +0 -0
  430. package/deps/LibRaw-Source/LibRaw-0.21.4/src/preprocessing/.deps/ext_preprocess.Plo +1656 -0
  431. package/deps/LibRaw-Source/LibRaw-0.21.4/src/preprocessing/.deps/raw2image.Plo +1659 -0
  432. package/deps/LibRaw-Source/LibRaw-0.21.4/src/preprocessing/.deps/subtract_black.Plo +1659 -0
  433. package/deps/LibRaw-Source/LibRaw-0.21.4/src/preprocessing/.dirstamp +0 -0
  434. package/deps/LibRaw-Source/LibRaw-0.21.4/src/preprocessing/ext_preprocess.cpp +127 -0
  435. package/deps/LibRaw-Source/LibRaw-0.21.4/src/preprocessing/ext_preprocess.lo +12 -0
  436. package/deps/LibRaw-Source/LibRaw-0.21.4/src/preprocessing/ext_preprocess.o +0 -0
  437. package/deps/LibRaw-Source/LibRaw-0.21.4/src/preprocessing/preprocessing_ph.cpp +24 -0
  438. package/deps/LibRaw-Source/LibRaw-0.21.4/src/preprocessing/raw2image.cpp +560 -0
  439. package/deps/LibRaw-Source/LibRaw-0.21.4/src/preprocessing/raw2image.lo +12 -0
  440. package/deps/LibRaw-Source/LibRaw-0.21.4/src/preprocessing/raw2image.o +0 -0
  441. package/deps/LibRaw-Source/LibRaw-0.21.4/src/preprocessing/subtract_black.cpp +91 -0
  442. package/deps/LibRaw-Source/LibRaw-0.21.4/src/preprocessing/subtract_black.lo +12 -0
  443. package/deps/LibRaw-Source/LibRaw-0.21.4/src/preprocessing/subtract_black.o +0 -0
  444. package/deps/LibRaw-Source/LibRaw-0.21.4/src/tables/.deps/.dirstamp +0 -0
  445. package/deps/LibRaw-Source/LibRaw-0.21.4/src/tables/.deps/cameralist.Plo +1659 -0
  446. package/deps/LibRaw-Source/LibRaw-0.21.4/src/tables/.deps/colorconst.Plo +1659 -0
  447. package/deps/LibRaw-Source/LibRaw-0.21.4/src/tables/.deps/colordata.Plo +1656 -0
  448. package/deps/LibRaw-Source/LibRaw-0.21.4/src/tables/.deps/wblists.Plo +1656 -0
  449. package/deps/LibRaw-Source/LibRaw-0.21.4/src/tables/.dirstamp +0 -0
  450. package/deps/LibRaw-Source/LibRaw-0.21.4/src/tables/cameralist.cpp +1268 -0
  451. package/deps/LibRaw-Source/LibRaw-0.21.4/src/tables/cameralist.lo +12 -0
  452. package/deps/LibRaw-Source/LibRaw-0.21.4/src/tables/cameralist.o +0 -0
  453. package/deps/LibRaw-Source/LibRaw-0.21.4/src/tables/colorconst.cpp +57 -0
  454. package/deps/LibRaw-Source/LibRaw-0.21.4/src/tables/colorconst.lo +12 -0
  455. package/deps/LibRaw-Source/LibRaw-0.21.4/src/tables/colorconst.o +0 -0
  456. package/deps/LibRaw-Source/LibRaw-0.21.4/src/tables/colordata.cpp +1841 -0
  457. package/deps/LibRaw-Source/LibRaw-0.21.4/src/tables/colordata.lo +12 -0
  458. package/deps/LibRaw-Source/LibRaw-0.21.4/src/tables/colordata.o +0 -0
  459. package/deps/LibRaw-Source/LibRaw-0.21.4/src/tables/wblists.cpp +217 -0
  460. package/deps/LibRaw-Source/LibRaw-0.21.4/src/tables/wblists.lo +12 -0
  461. package/deps/LibRaw-Source/LibRaw-0.21.4/src/tables/wblists.o +0 -0
  462. package/deps/LibRaw-Source/LibRaw-0.21.4/src/utils/.deps/.dirstamp +0 -0
  463. package/deps/LibRaw-Source/LibRaw-0.21.4/src/utils/.deps/curves.Plo +1656 -0
  464. package/deps/LibRaw-Source/LibRaw-0.21.4/src/utils/.deps/decoder_info.Plo +1659 -0
  465. package/deps/LibRaw-Source/LibRaw-0.21.4/src/utils/.deps/init_close_utils.Plo +1659 -0
  466. package/deps/LibRaw-Source/LibRaw-0.21.4/src/utils/.deps/open.Plo +1661 -0
  467. package/deps/LibRaw-Source/LibRaw-0.21.4/src/utils/.deps/phaseone_processing.Plo +1659 -0
  468. package/deps/LibRaw-Source/LibRaw-0.21.4/src/utils/.deps/read_utils.Plo +1656 -0
  469. package/deps/LibRaw-Source/LibRaw-0.21.4/src/utils/.deps/thumb_utils.Plo +1659 -0
  470. package/deps/LibRaw-Source/LibRaw-0.21.4/src/utils/.deps/utils_dcraw.Plo +1656 -0
  471. package/deps/LibRaw-Source/LibRaw-0.21.4/src/utils/.deps/utils_libraw.Plo +1659 -0
  472. package/deps/LibRaw-Source/LibRaw-0.21.4/src/utils/.dirstamp +0 -0
  473. package/deps/LibRaw-Source/LibRaw-0.21.4/src/utils/curves.cpp +154 -0
  474. package/deps/LibRaw-Source/LibRaw-0.21.4/src/utils/curves.lo +12 -0
  475. package/deps/LibRaw-Source/LibRaw-0.21.4/src/utils/curves.o +0 -0
  476. package/deps/LibRaw-Source/LibRaw-0.21.4/src/utils/decoder_info.cpp +413 -0
  477. package/deps/LibRaw-Source/LibRaw-0.21.4/src/utils/decoder_info.lo +12 -0
  478. package/deps/LibRaw-Source/LibRaw-0.21.4/src/utils/decoder_info.o +0 -0
  479. package/deps/LibRaw-Source/LibRaw-0.21.4/src/utils/init_close_utils.cpp +340 -0
  480. package/deps/LibRaw-Source/LibRaw-0.21.4/src/utils/init_close_utils.lo +12 -0
  481. package/deps/LibRaw-Source/LibRaw-0.21.4/src/utils/init_close_utils.o +0 -0
  482. package/deps/LibRaw-Source/LibRaw-0.21.4/src/utils/open.cpp +1269 -0
  483. package/deps/LibRaw-Source/LibRaw-0.21.4/src/utils/open.lo +12 -0
  484. package/deps/LibRaw-Source/LibRaw-0.21.4/src/utils/open.o +0 -0
  485. package/deps/LibRaw-Source/LibRaw-0.21.4/src/utils/phaseone_processing.cpp +101 -0
  486. package/deps/LibRaw-Source/LibRaw-0.21.4/src/utils/phaseone_processing.lo +12 -0
  487. package/deps/LibRaw-Source/LibRaw-0.21.4/src/utils/phaseone_processing.o +0 -0
  488. package/deps/LibRaw-Source/LibRaw-0.21.4/src/utils/read_utils.cpp +176 -0
  489. package/deps/LibRaw-Source/LibRaw-0.21.4/src/utils/read_utils.lo +12 -0
  490. package/deps/LibRaw-Source/LibRaw-0.21.4/src/utils/read_utils.o +0 -0
  491. package/deps/LibRaw-Source/LibRaw-0.21.4/src/utils/thumb_utils.cpp +338 -0
  492. package/deps/LibRaw-Source/LibRaw-0.21.4/src/utils/thumb_utils.lo +12 -0
  493. package/deps/LibRaw-Source/LibRaw-0.21.4/src/utils/thumb_utils.o +0 -0
  494. package/deps/LibRaw-Source/LibRaw-0.21.4/src/utils/utils_dcraw.cpp +330 -0
  495. package/deps/LibRaw-Source/LibRaw-0.21.4/src/utils/utils_dcraw.lo +12 -0
  496. package/deps/LibRaw-Source/LibRaw-0.21.4/src/utils/utils_dcraw.o +0 -0
  497. package/deps/LibRaw-Source/LibRaw-0.21.4/src/utils/utils_libraw.cpp +673 -0
  498. package/deps/LibRaw-Source/LibRaw-0.21.4/src/utils/utils_libraw.lo +12 -0
  499. package/deps/LibRaw-Source/LibRaw-0.21.4/src/utils/utils_libraw.o +0 -0
  500. package/deps/LibRaw-Source/LibRaw-0.21.4/src/write/.deps/.dirstamp +0 -0
  501. package/deps/LibRaw-Source/LibRaw-0.21.4/src/write/.deps/apply_profile.Plo +1656 -0
  502. package/deps/LibRaw-Source/LibRaw-0.21.4/src/write/.deps/file_write.Plo +1656 -0
  503. package/deps/LibRaw-Source/LibRaw-0.21.4/src/write/.deps/tiff_writer.Plo +1659 -0
  504. package/deps/LibRaw-Source/LibRaw-0.21.4/src/write/.dirstamp +0 -0
  505. package/deps/LibRaw-Source/LibRaw-0.21.4/src/write/apply_profile.cpp +76 -0
  506. package/deps/LibRaw-Source/LibRaw-0.21.4/src/write/apply_profile.lo +12 -0
  507. package/deps/LibRaw-Source/LibRaw-0.21.4/src/write/apply_profile.o +0 -0
  508. package/deps/LibRaw-Source/LibRaw-0.21.4/src/write/file_write.cpp +338 -0
  509. package/deps/LibRaw-Source/LibRaw-0.21.4/src/write/file_write.lo +12 -0
  510. package/deps/LibRaw-Source/LibRaw-0.21.4/src/write/file_write.o +0 -0
  511. package/deps/LibRaw-Source/LibRaw-0.21.4/src/write/tiff_writer.cpp +73 -0
  512. package/deps/LibRaw-Source/LibRaw-0.21.4/src/write/tiff_writer.lo +12 -0
  513. package/deps/LibRaw-Source/LibRaw-0.21.4/src/write/tiff_writer.o +0 -0
  514. package/deps/LibRaw-Source/LibRaw-0.21.4/src/write/write_ph.cpp +39 -0
  515. package/deps/LibRaw-Source/LibRaw-0.21.4/src/x3f/.deps/.dirstamp +0 -0
  516. package/deps/LibRaw-Source/LibRaw-0.21.4/src/x3f/.deps/x3f_parse_process.Plo +1 -0
  517. package/deps/LibRaw-Source/LibRaw-0.21.4/src/x3f/.deps/x3f_utils_patched.Plo +1 -0
  518. package/deps/LibRaw-Source/LibRaw-0.21.4/src/x3f/.dirstamp +0 -0
  519. package/deps/LibRaw-Source/LibRaw-0.21.4/src/x3f/x3f_parse_process.cpp +708 -0
  520. package/deps/LibRaw-Source/LibRaw-0.21.4/src/x3f/x3f_parse_process.lo +12 -0
  521. package/deps/LibRaw-Source/LibRaw-0.21.4/src/x3f/x3f_parse_process.o +0 -0
  522. package/deps/LibRaw-Source/LibRaw-0.21.4/src/x3f/x3f_utils_patched.cpp +2119 -0
  523. package/deps/LibRaw-Source/LibRaw-0.21.4/src/x3f/x3f_utils_patched.lo +12 -0
  524. package/deps/LibRaw-Source/LibRaw-0.21.4/src/x3f/x3f_utils_patched.o +0 -0
  525. package/deps/LibRaw-Source/LibRaw-0.21.4/version.sh +16 -0
  526. package/lib/index.d.ts +671 -0
  527. package/lib/index.js +2292 -0
  528. package/package.json +134 -0
  529. package/prebuilds/darwin-arm64/librawspeed-full.node +0 -0
  530. package/scripts/build-libraw.sh +303 -0
  531. package/scripts/download-dependencies.sh +31 -0
  532. package/scripts/download-libraw.sh +30 -0
  533. package/scripts/generate-docs.js +590 -0
  534. package/scripts/merge-prebuilds.sh +40 -0
  535. package/scripts/prepare-libraw.js +132 -0
  536. package/scripts/publish.sh +84 -0
  537. package/scripts/setup-dev-env.sh +112 -0
  538. package/src/addon.cpp +8 -0
  539. package/src/libraw_wrapper.cpp +1370 -0
  540. package/src/libraw_wrapper.h +114 -0
  541. package/types/index.d.ts +152 -0
@@ -0,0 +1,1674 @@
1
+ # generated automatically by aclocal 1.18.1 -*- Autoconf -*-
2
+
3
+ # Copyright (C) 1996-2025 Free Software Foundation, Inc.
4
+
5
+ # This file is free software; the Free Software Foundation
6
+ # gives unlimited permission to copy and/or distribute it,
7
+ # with or without modifications, as long as this notice is preserved.
8
+
9
+ # This program is distributed in the hope that it will be useful,
10
+ # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11
+ # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
+ # PARTICULAR PURPOSE.
13
+
14
+ m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
15
+ m4_ifndef([AC_AUTOCONF_VERSION],
16
+ [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
17
+ m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.72],,
18
+ [m4_warning([this file was generated for autoconf 2.72.
19
+ You have another version of autoconf. It may work, but is not guaranteed to.
20
+ If you have problems, you may need to regenerate the build system entirely.
21
+ To do so, use the procedure documented by the package, typically 'autoreconf'.])])
22
+
23
+ # pkg.m4 - Macros to locate and use pkg-config. -*- Autoconf -*-
24
+ # serial 13 (pkgconf)
25
+
26
+ dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
27
+ dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com>
28
+ dnl
29
+ dnl This program is free software; you can redistribute it and/or modify
30
+ dnl it under the terms of the GNU General Public License as published by
31
+ dnl the Free Software Foundation; either version 2 of the License, or
32
+ dnl (at your option) any later version.
33
+ dnl
34
+ dnl This program is distributed in the hope that it will be useful, but
35
+ dnl WITHOUT ANY WARRANTY; without even the implied warranty of
36
+ dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
37
+ dnl General Public License for more details.
38
+ dnl
39
+ dnl You should have received a copy of the GNU General Public License
40
+ dnl along with this program; if not, see <https://www.gnu.org/licenses/>.
41
+ dnl
42
+ dnl As a special exception to the GNU General Public License, if you
43
+ dnl distribute this file as part of a program that contains a
44
+ dnl configuration script generated by Autoconf, you may include it under
45
+ dnl the same distribution terms that you use for the rest of that
46
+ dnl program.
47
+
48
+ dnl PKG_PREREQ(MIN-VERSION)
49
+ dnl -----------------------
50
+ dnl Since: 0.29
51
+ dnl
52
+ dnl Verify that the version of the pkg-config macros are at least
53
+ dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's
54
+ dnl installed version of pkg-config, this checks the developer's version
55
+ dnl of pkg.m4 when generating configure.
56
+ dnl
57
+ dnl To ensure that this macro is defined, also add:
58
+ dnl m4_ifndef([PKG_PREREQ],
59
+ dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])])
60
+ dnl
61
+ dnl See the "Since" comment for each macro you use to see what version
62
+ dnl of the macros you require.
63
+ m4_defun([PKG_PREREQ],
64
+ [m4_define([PKG_MACROS_VERSION], [0.29.2])
65
+ m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1,
66
+ [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])])
67
+ ])dnl PKG_PREREQ
68
+
69
+ dnl PKG_PROG_PKG_CONFIG([MIN-VERSION], [ACTION-IF-NOT-FOUND])
70
+ dnl ---------------------------------------------------------
71
+ dnl Since: 0.16
72
+ dnl
73
+ dnl Search for the pkg-config tool and set the PKG_CONFIG variable to
74
+ dnl first found in the path. Checks that the version of pkg-config found
75
+ dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is
76
+ dnl used since that's the first version where most current features of
77
+ dnl pkg-config existed.
78
+ dnl
79
+ dnl If pkg-config is not found or older than specified, it will result
80
+ dnl in an empty PKG_CONFIG variable. To avoid widespread issues with
81
+ dnl scripts not checking it, ACTION-IF-NOT-FOUND defaults to aborting.
82
+ dnl You can specify [PKG_CONFIG=false] as an action instead, which would
83
+ dnl result in pkg-config tests failing, but no bogus error messages.
84
+ AC_DEFUN([PKG_PROG_PKG_CONFIG],
85
+ [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
86
+ m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
87
+ m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
88
+ AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
89
+ AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
90
+ AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
91
+
92
+ if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
93
+ AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
94
+ fi
95
+ if test -n "$PKG_CONFIG"; then
96
+ _pkg_min_version=m4_default([$1], [0.9.0])
97
+ AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
98
+ if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
99
+ AC_MSG_RESULT([yes])
100
+ else
101
+ AC_MSG_RESULT([no])
102
+ PKG_CONFIG=""
103
+ fi
104
+ fi
105
+ if test -z "$PKG_CONFIG"; then
106
+ m4_default([$2], [AC_MSG_ERROR([pkg-config not found])])
107
+ fi[]dnl
108
+ ])dnl PKG_PROG_PKG_CONFIG
109
+
110
+ dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
111
+ dnl -------------------------------------------------------------------
112
+ dnl Since: 0.18
113
+ dnl
114
+ dnl Check to see whether a particular set of modules exists. Similar to
115
+ dnl PKG_CHECK_MODULES(), but does not set variables or print errors.
116
+ dnl
117
+ dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
118
+ dnl only at the first occurrence in configure.ac, so if the first place
119
+ dnl it's called might be skipped (such as if it is within an "if", you
120
+ dnl have to call PKG_CHECK_EXISTS manually
121
+ AC_DEFUN([PKG_CHECK_EXISTS],
122
+ [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
123
+ if test -n "$PKG_CONFIG" && \
124
+ AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
125
+ m4_default([$2], [:])
126
+ m4_ifvaln([$3], [else
127
+ $3])dnl
128
+ fi])
129
+
130
+ dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
131
+ dnl ---------------------------------------------
132
+ dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting
133
+ dnl pkg_failed based on the result.
134
+ m4_define([_PKG_CONFIG],
135
+ [if test -n "$$1"; then
136
+ pkg_cv_[]$1="$$1"
137
+ elif test -n "$PKG_CONFIG"; then
138
+ PKG_CHECK_EXISTS([$3],
139
+ [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
140
+ test "x$?" != "x0" && pkg_failed=yes ],
141
+ [pkg_failed=yes])
142
+ else
143
+ pkg_failed=untried
144
+ fi[]dnl
145
+ ])dnl _PKG_CONFIG
146
+
147
+ dnl _PKG_SHORT_ERRORS_SUPPORTED
148
+ dnl ---------------------------
149
+ dnl Internal check to see if pkg-config supports short errors.
150
+ AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
151
+ [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
152
+ if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
153
+ _pkg_short_errors_supported=yes
154
+ else
155
+ _pkg_short_errors_supported=no
156
+ fi[]dnl
157
+ ])dnl _PKG_SHORT_ERRORS_SUPPORTED
158
+
159
+
160
+ dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
161
+ dnl [ACTION-IF-NOT-FOUND])
162
+ dnl --------------------------------------------------------------
163
+ dnl Since: 0.4.0
164
+ dnl
165
+ dnl Note that if there is a possibility the first call to
166
+ dnl PKG_CHECK_MODULES might not happen, you should be sure to include an
167
+ dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
168
+ AC_DEFUN([PKG_CHECK_MODULES],
169
+ [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
170
+ AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
171
+ AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
172
+
173
+ pkg_failed=no
174
+ AC_MSG_CHECKING([for $2])
175
+
176
+ _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
177
+ _PKG_CONFIG([$1][_LIBS], [libs], [$2])
178
+
179
+ m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
180
+ and $1[]_LIBS to avoid the need to call pkg-config.
181
+ See the pkg-config man page for more details.])
182
+
183
+ if test $pkg_failed = yes; then
184
+ AC_MSG_RESULT([no])
185
+ _PKG_SHORT_ERRORS_SUPPORTED
186
+ if test $_pkg_short_errors_supported = yes; then
187
+ $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
188
+ else
189
+ $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
190
+ fi
191
+ # Put the nasty error message in config.log where it belongs
192
+ echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
193
+
194
+ m4_default([$4], [AC_MSG_ERROR(
195
+ [Package requirements ($2) were not met:
196
+
197
+ $$1_PKG_ERRORS
198
+
199
+ Consider adjusting the PKG_CONFIG_PATH environment variable if you
200
+ installed software in a non-standard prefix.
201
+
202
+ _PKG_TEXT])[]dnl
203
+ ])
204
+ elif test $pkg_failed = untried; then
205
+ AC_MSG_RESULT([no])
206
+ m4_default([$4], [AC_MSG_FAILURE(
207
+ [The pkg-config script could not be found or is too old. Make sure it
208
+ is in your PATH or set the PKG_CONFIG environment variable to the full
209
+ path to pkg-config.
210
+
211
+ _PKG_TEXT
212
+
213
+ To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
214
+ ])
215
+ else
216
+ $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
217
+ $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
218
+ AC_MSG_RESULT([yes])
219
+ $3
220
+ fi[]dnl
221
+ ])dnl PKG_CHECK_MODULES
222
+
223
+
224
+ dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
225
+ dnl [ACTION-IF-NOT-FOUND])
226
+ dnl ---------------------------------------------------------------------
227
+ dnl Since: 0.29
228
+ dnl
229
+ dnl Checks for existence of MODULES and gathers its build flags with
230
+ dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags
231
+ dnl and VARIABLE-PREFIX_LIBS from --libs.
232
+ dnl
233
+ dnl Note that if there is a possibility the first call to
234
+ dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to
235
+ dnl include an explicit call to PKG_PROG_PKG_CONFIG in your
236
+ dnl configure.ac.
237
+ AC_DEFUN([PKG_CHECK_MODULES_STATIC],
238
+ [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
239
+ _save_PKG_CONFIG=$PKG_CONFIG
240
+ PKG_CONFIG="$PKG_CONFIG --static"
241
+ PKG_CHECK_MODULES($@)
242
+ PKG_CONFIG=$_save_PKG_CONFIG[]dnl
243
+ ])dnl PKG_CHECK_MODULES_STATIC
244
+
245
+
246
+ dnl PKG_INSTALLDIR([DIRECTORY])
247
+ dnl -------------------------
248
+ dnl Since: 0.27
249
+ dnl
250
+ dnl Substitutes the variable pkgconfigdir as the location where a module
251
+ dnl should install pkg-config .pc files. By default the directory is
252
+ dnl $libdir/pkgconfig, but the default can be changed by passing
253
+ dnl DIRECTORY. The user can override through the --with-pkgconfigdir
254
+ dnl parameter.
255
+ AC_DEFUN([PKG_INSTALLDIR],
256
+ [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
257
+ m4_pushdef([pkg_description],
258
+ [pkg-config installation directory @<:@]pkg_default[@:>@])
259
+ AC_ARG_WITH([pkgconfigdir],
260
+ [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
261
+ [with_pkgconfigdir=]pkg_default)
262
+ AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
263
+ m4_popdef([pkg_default])
264
+ m4_popdef([pkg_description])
265
+ ])dnl PKG_INSTALLDIR
266
+
267
+
268
+ dnl PKG_NOARCH_INSTALLDIR([DIRECTORY])
269
+ dnl --------------------------------
270
+ dnl Since: 0.27
271
+ dnl
272
+ dnl Substitutes the variable noarch_pkgconfigdir as the location where a
273
+ dnl module should install arch-independent pkg-config .pc files. By
274
+ dnl default the directory is $datadir/pkgconfig, but the default can be
275
+ dnl changed by passing DIRECTORY. The user can override through the
276
+ dnl --with-noarch-pkgconfigdir parameter.
277
+ AC_DEFUN([PKG_NOARCH_INSTALLDIR],
278
+ [m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
279
+ m4_pushdef([pkg_description],
280
+ [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
281
+ AC_ARG_WITH([noarch-pkgconfigdir],
282
+ [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
283
+ [with_noarch_pkgconfigdir=]pkg_default)
284
+ AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
285
+ m4_popdef([pkg_default])
286
+ m4_popdef([pkg_description])
287
+ ])dnl PKG_NOARCH_INSTALLDIR
288
+
289
+
290
+ dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
291
+ dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
292
+ dnl -------------------------------------------
293
+ dnl Since: 0.28
294
+ dnl
295
+ dnl Retrieves the value of the pkg-config variable for the given module.
296
+ AC_DEFUN([PKG_CHECK_VAR],
297
+ [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
298
+ AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
299
+
300
+ _PKG_CONFIG([$1], [variable="][$3]["], [$2])
301
+ AS_VAR_COPY([$1], [pkg_cv_][$1])
302
+
303
+ AS_VAR_IF([$1], [""], [$5], [$4])dnl
304
+ ])dnl PKG_CHECK_VAR
305
+
306
+ dnl PKG_WITH_MODULES(VARIABLE-PREFIX, MODULES,
307
+ dnl [ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND],
308
+ dnl [DESCRIPTION], [DEFAULT])
309
+ dnl ------------------------------------------
310
+ dnl
311
+ dnl Prepare a "--with-" configure option using the lowercase
312
+ dnl [VARIABLE-PREFIX] name, merging the behaviour of AC_ARG_WITH and
313
+ dnl PKG_CHECK_MODULES in a single macro.
314
+ AC_DEFUN([PKG_WITH_MODULES],
315
+ [
316
+ m4_pushdef([with_arg], m4_tolower([$1]))
317
+
318
+ m4_pushdef([description],
319
+ [m4_default([$5], [build with ]with_arg[ support])])
320
+
321
+ m4_pushdef([def_arg], [m4_default([$6], [auto])])
322
+ m4_pushdef([def_action_if_found], [AS_TR_SH([with_]with_arg)=yes])
323
+ m4_pushdef([def_action_if_not_found], [AS_TR_SH([with_]with_arg)=no])
324
+
325
+ m4_case(def_arg,
326
+ [yes],[m4_pushdef([with_without], [--without-]with_arg)],
327
+ [m4_pushdef([with_without],[--with-]with_arg)])
328
+
329
+ AC_ARG_WITH(with_arg,
330
+ AS_HELP_STRING(with_without, description[ @<:@default=]def_arg[@:>@]),,
331
+ [AS_TR_SH([with_]with_arg)=def_arg])
332
+
333
+ AS_CASE([$AS_TR_SH([with_]with_arg)],
334
+ [yes],[PKG_CHECK_MODULES([$1],[$2],$3,$4)],
335
+ [auto],[PKG_CHECK_MODULES([$1],[$2],
336
+ [m4_n([def_action_if_found]) $3],
337
+ [m4_n([def_action_if_not_found]) $4])])
338
+
339
+ m4_popdef([with_arg])
340
+ m4_popdef([description])
341
+ m4_popdef([def_arg])
342
+
343
+ ])dnl PKG_WITH_MODULES
344
+
345
+ dnl PKG_HAVE_WITH_MODULES(VARIABLE-PREFIX, MODULES,
346
+ dnl [DESCRIPTION], [DEFAULT])
347
+ dnl -----------------------------------------------
348
+ dnl
349
+ dnl Convenience macro to trigger AM_CONDITIONAL after PKG_WITH_MODULES
350
+ dnl check._[VARIABLE-PREFIX] is exported as make variable.
351
+ AC_DEFUN([PKG_HAVE_WITH_MODULES],
352
+ [
353
+ PKG_WITH_MODULES([$1],[$2],,,[$3],[$4])
354
+
355
+ AM_CONDITIONAL([HAVE_][$1],
356
+ [test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"])
357
+ ])dnl PKG_HAVE_WITH_MODULES
358
+
359
+ dnl PKG_HAVE_DEFINE_WITH_MODULES(VARIABLE-PREFIX, MODULES,
360
+ dnl [DESCRIPTION], [DEFAULT])
361
+ dnl ------------------------------------------------------
362
+ dnl
363
+ dnl Convenience macro to run AM_CONDITIONAL and AC_DEFINE after
364
+ dnl PKG_WITH_MODULES check. HAVE_[VARIABLE-PREFIX] is exported as make
365
+ dnl and preprocessor variable.
366
+ AC_DEFUN([PKG_HAVE_DEFINE_WITH_MODULES],
367
+ [
368
+ PKG_HAVE_WITH_MODULES([$1],[$2],[$3],[$4])
369
+
370
+ AS_IF([test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"],
371
+ [AC_DEFINE([HAVE_][$1], 1, [Enable ]m4_tolower([$1])[ support])])
372
+ ])dnl PKG_HAVE_DEFINE_WITH_MODULES
373
+
374
+ # Copyright (C) 2002-2025 Free Software Foundation, Inc.
375
+ #
376
+ # This file is free software; the Free Software Foundation
377
+ # gives unlimited permission to copy and/or distribute it,
378
+ # with or without modifications, as long as this notice is preserved.
379
+
380
+ # AM_AUTOMAKE_VERSION(VERSION)
381
+ # ----------------------------
382
+ # Automake X.Y traces this macro to ensure aclocal.m4 has been
383
+ # generated from the m4 files accompanying Automake X.Y.
384
+ # (This private macro should not be called outside this file.)
385
+ AC_DEFUN([AM_AUTOMAKE_VERSION],
386
+ [am__api_version='1.18'
387
+ dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
388
+ dnl require some minimum version. Point them to the right macro.
389
+ m4_if([$1], [1.18.1], [],
390
+ [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
391
+ ])
392
+
393
+ # _AM_AUTOCONF_VERSION(VERSION)
394
+ # -----------------------------
395
+ # aclocal traces this macro to find the Autoconf version.
396
+ # This is a private macro too. Using m4_define simplifies
397
+ # the logic in aclocal, which can simply ignore this definition.
398
+ m4_define([_AM_AUTOCONF_VERSION], [])
399
+
400
+ # AM_SET_CURRENT_AUTOMAKE_VERSION
401
+ # -------------------------------
402
+ # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
403
+ # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
404
+ AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
405
+ [AM_AUTOMAKE_VERSION([1.18.1])dnl
406
+ m4_ifndef([AC_AUTOCONF_VERSION],
407
+ [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
408
+ _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
409
+
410
+ # AM_AUX_DIR_EXPAND -*- Autoconf -*-
411
+
412
+ # Copyright (C) 2001-2025 Free Software Foundation, Inc.
413
+ #
414
+ # This file is free software; the Free Software Foundation
415
+ # gives unlimited permission to copy and/or distribute it,
416
+ # with or without modifications, as long as this notice is preserved.
417
+
418
+ # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
419
+ # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
420
+ # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
421
+ #
422
+ # Of course, Automake must honor this variable whenever it calls a
423
+ # tool from the auxiliary directory. The problem is that $srcdir (and
424
+ # therefore $ac_aux_dir as well) can be either absolute or relative,
425
+ # depending on how configure is run. This is pretty annoying, since
426
+ # it makes $ac_aux_dir quite unusable in subdirectories: in the top
427
+ # source directory, any form will work fine, but in subdirectories a
428
+ # relative path needs to be adjusted first.
429
+ #
430
+ # $ac_aux_dir/missing
431
+ # fails when called from a subdirectory if $ac_aux_dir is relative
432
+ # $top_srcdir/$ac_aux_dir/missing
433
+ # fails if $ac_aux_dir is absolute,
434
+ # fails when called from a subdirectory in a VPATH build with
435
+ # a relative $ac_aux_dir
436
+ #
437
+ # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
438
+ # are both prefixed by $srcdir. In an in-source build this is usually
439
+ # harmless because $srcdir is '.', but things will broke when you
440
+ # start a VPATH build or use an absolute $srcdir.
441
+ #
442
+ # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
443
+ # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
444
+ # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
445
+ # and then we would define $MISSING as
446
+ # MISSING="\${SHELL} $am_aux_dir/missing"
447
+ # This will work as long as MISSING is not called from configure, because
448
+ # unfortunately $(top_srcdir) has no meaning in configure.
449
+ # However there are other variables, like CC, which are often used in
450
+ # configure, and could therefore not use this "fixed" $ac_aux_dir.
451
+ #
452
+ # Another solution, used here, is to always expand $ac_aux_dir to an
453
+ # absolute PATH. The drawback is that using absolute paths prevent a
454
+ # configured tree to be moved without reconfiguration.
455
+
456
+ AC_DEFUN([AM_AUX_DIR_EXPAND],
457
+ [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
458
+ # Expand $ac_aux_dir to an absolute path.
459
+ am_aux_dir=`cd "$ac_aux_dir" && pwd`
460
+ ])
461
+
462
+ # AM_CONDITIONAL -*- Autoconf -*-
463
+
464
+ # Copyright (C) 1997-2025 Free Software Foundation, Inc.
465
+ #
466
+ # This file is free software; the Free Software Foundation
467
+ # gives unlimited permission to copy and/or distribute it,
468
+ # with or without modifications, as long as this notice is preserved.
469
+
470
+ # AM_CONDITIONAL(NAME, SHELL-CONDITION)
471
+ # -------------------------------------
472
+ # Define a conditional.
473
+ AC_DEFUN([AM_CONDITIONAL],
474
+ [AC_PREREQ([2.52])dnl
475
+ m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
476
+ [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
477
+ AC_SUBST([$1_TRUE])dnl
478
+ AC_SUBST([$1_FALSE])dnl
479
+ _AM_SUBST_NOTMAKE([$1_TRUE])dnl
480
+ _AM_SUBST_NOTMAKE([$1_FALSE])dnl
481
+ m4_define([_AM_COND_VALUE_$1], [$2])dnl
482
+ if $2; then
483
+ $1_TRUE=
484
+ $1_FALSE='#'
485
+ else
486
+ $1_TRUE='#'
487
+ $1_FALSE=
488
+ fi
489
+ AC_CONFIG_COMMANDS_PRE(
490
+ [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
491
+ AC_MSG_ERROR([[conditional "$1" was never defined.
492
+ Usually this means the macro was only invoked conditionally.]])
493
+ fi])])
494
+
495
+ # Copyright (C) 1999-2025 Free Software Foundation, Inc.
496
+ #
497
+ # This file is free software; the Free Software Foundation
498
+ # gives unlimited permission to copy and/or distribute it,
499
+ # with or without modifications, as long as this notice is preserved.
500
+
501
+
502
+ # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
503
+ # written in clear, in which case automake, when reading aclocal.m4,
504
+ # will think it sees a *use*, and therefore will trigger all it's
505
+ # C support machinery. Also note that it means that autoscan, seeing
506
+ # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
507
+
508
+
509
+ # _AM_DEPENDENCIES(NAME)
510
+ # ----------------------
511
+ # See how the compiler implements dependency checking.
512
+ # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
513
+ # We try a few techniques and use that to set a single cache variable.
514
+ #
515
+ # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
516
+ # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
517
+ # dependency, and given that the user is not expected to run this macro,
518
+ # just rely on AC_PROG_CC.
519
+ AC_DEFUN([_AM_DEPENDENCIES],
520
+ [AC_REQUIRE([AM_SET_DEPDIR])dnl
521
+ AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
522
+ AC_REQUIRE([AM_MAKE_INCLUDE])dnl
523
+ AC_REQUIRE([AM_DEP_TRACK])dnl
524
+
525
+ m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
526
+ [$1], [CXX], [depcc="$CXX" am_compiler_list=],
527
+ [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
528
+ [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
529
+ [$1], [UPC], [depcc="$UPC" am_compiler_list=],
530
+ [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
531
+ [depcc="$$1" am_compiler_list=])
532
+
533
+ AC_CACHE_CHECK([dependency style of $depcc],
534
+ [am_cv_$1_dependencies_compiler_type],
535
+ [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
536
+ # We make a subdir and do the tests there. Otherwise we can end up
537
+ # making bogus files that we don't know about and never remove. For
538
+ # instance it was reported that on HP-UX the gcc test will end up
539
+ # making a dummy file named 'D' -- because '-MD' means "put the output
540
+ # in D".
541
+ rm -rf conftest.dir
542
+ mkdir conftest.dir
543
+ # Copy depcomp to subdir because otherwise we won't find it if we're
544
+ # using a relative directory.
545
+ cp "$am_depcomp" conftest.dir
546
+ cd conftest.dir
547
+ # We will build objects and dependencies in a subdirectory because
548
+ # it helps to detect inapplicable dependency modes. For instance
549
+ # both Tru64's cc and ICC support -MD to output dependencies as a
550
+ # side effect of compilation, but ICC will put the dependencies in
551
+ # the current directory while Tru64 will put them in the object
552
+ # directory.
553
+ mkdir sub
554
+
555
+ am_cv_$1_dependencies_compiler_type=none
556
+ if test "$am_compiler_list" = ""; then
557
+ am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
558
+ fi
559
+ am__universal=false
560
+ m4_case([$1], [CC],
561
+ [case " $depcc " in #(
562
+ *\ -arch\ *\ -arch\ *) am__universal=true ;;
563
+ esac],
564
+ [CXX],
565
+ [case " $depcc " in #(
566
+ *\ -arch\ *\ -arch\ *) am__universal=true ;;
567
+ esac])
568
+
569
+ for depmode in $am_compiler_list; do
570
+ # Setup a source with many dependencies, because some compilers
571
+ # like to wrap large dependency lists on column 80 (with \), and
572
+ # we should not choose a depcomp mode which is confused by this.
573
+ #
574
+ # We need to recreate these files for each test, as the compiler may
575
+ # overwrite some of them when testing with obscure command lines.
576
+ # This happens at least with the AIX C compiler.
577
+ : > sub/conftest.c
578
+ for i in 1 2 3 4 5 6; do
579
+ echo '#include "conftst'$i'.h"' >> sub/conftest.c
580
+ # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
581
+ # Solaris 10 /bin/sh.
582
+ echo '/* dummy */' > sub/conftst$i.h
583
+ done
584
+ echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
585
+
586
+ # We check with '-c' and '-o' for the sake of the "dashmstdout"
587
+ # mode. It turns out that the SunPro C++ compiler does not properly
588
+ # handle '-M -o', and we need to detect this. Also, some Intel
589
+ # versions had trouble with output in subdirs.
590
+ am__obj=sub/conftest.${OBJEXT-o}
591
+ am__minus_obj="-o $am__obj"
592
+ case $depmode in
593
+ gcc)
594
+ # This depmode causes a compiler race in universal mode.
595
+ test "$am__universal" = false || continue
596
+ ;;
597
+ nosideeffect)
598
+ # After this tag, mechanisms are not by side-effect, so they'll
599
+ # only be used when explicitly requested.
600
+ if test "x$enable_dependency_tracking" = xyes; then
601
+ continue
602
+ else
603
+ break
604
+ fi
605
+ ;;
606
+ msvc7 | msvc7msys | msvisualcpp | msvcmsys)
607
+ # This compiler won't grok '-c -o', but also, the minuso test has
608
+ # not run yet. These depmodes are late enough in the game, and
609
+ # so weak that their functioning should not be impacted.
610
+ am__obj=conftest.${OBJEXT-o}
611
+ am__minus_obj=
612
+ ;;
613
+ none) break ;;
614
+ esac
615
+ if depmode=$depmode \
616
+ source=sub/conftest.c object=$am__obj \
617
+ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
618
+ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
619
+ >/dev/null 2>conftest.err &&
620
+ grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
621
+ grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
622
+ grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
623
+ ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
624
+ # icc doesn't choke on unknown options, it will just issue warnings
625
+ # or remarks (even with -Werror). So we grep stderr for any message
626
+ # that says an option was ignored or not supported.
627
+ # When given -MP, icc 7.0 and 7.1 complain thus:
628
+ # icc: Command line warning: ignoring option '-M'; no argument required
629
+ # The diagnosis changed in icc 8.0:
630
+ # icc: Command line remark: option '-MP' not supported
631
+ if (grep 'ignoring option' conftest.err ||
632
+ grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
633
+ am_cv_$1_dependencies_compiler_type=$depmode
634
+ break
635
+ fi
636
+ fi
637
+ done
638
+
639
+ cd ..
640
+ rm -rf conftest.dir
641
+ else
642
+ am_cv_$1_dependencies_compiler_type=none
643
+ fi
644
+ ])
645
+ AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
646
+ AM_CONDITIONAL([am__fastdep$1], [
647
+ test "x$enable_dependency_tracking" != xno \
648
+ && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
649
+ ])
650
+
651
+
652
+ # AM_SET_DEPDIR
653
+ # -------------
654
+ # Choose a directory name for dependency files.
655
+ # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
656
+ AC_DEFUN([AM_SET_DEPDIR],
657
+ [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
658
+ AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
659
+ ])
660
+
661
+
662
+ # AM_DEP_TRACK
663
+ # ------------
664
+ AC_DEFUN([AM_DEP_TRACK],
665
+ [AC_ARG_ENABLE([dependency-tracking], [dnl
666
+ AS_HELP_STRING(
667
+ [--enable-dependency-tracking],
668
+ [do not reject slow dependency extractors])
669
+ AS_HELP_STRING(
670
+ [--disable-dependency-tracking],
671
+ [speeds up one-time build])])
672
+ if test "x$enable_dependency_tracking" != xno; then
673
+ am_depcomp="$ac_aux_dir/depcomp"
674
+ AMDEPBACKSLASH='\'
675
+ am__nodep='_no'
676
+ fi
677
+ AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
678
+ AC_SUBST([AMDEPBACKSLASH])dnl
679
+ _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
680
+ AC_SUBST([am__nodep])dnl
681
+ _AM_SUBST_NOTMAKE([am__nodep])dnl
682
+ ])
683
+
684
+ # Generate code to set up dependency tracking. -*- Autoconf -*-
685
+
686
+ # Copyright (C) 1999-2025 Free Software Foundation, Inc.
687
+ #
688
+ # This file is free software; the Free Software Foundation
689
+ # gives unlimited permission to copy and/or distribute it,
690
+ # with or without modifications, as long as this notice is preserved.
691
+
692
+ # _AM_OUTPUT_DEPENDENCY_COMMANDS
693
+ # ------------------------------
694
+ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
695
+ [{
696
+ # Older Autoconf quotes --file arguments for eval, but not when files
697
+ # are listed without --file. Let's play safe and only enable the eval
698
+ # if we detect the quoting.
699
+ # TODO: see whether this extra hack can be removed once we start
700
+ # requiring Autoconf 2.70 or later.
701
+ AS_CASE([$CONFIG_FILES],
702
+ [*\'*], [eval set x "$CONFIG_FILES"],
703
+ [*], [set x $CONFIG_FILES])
704
+ shift
705
+ # Used to flag and report bootstrapping failures.
706
+ am_rc=0
707
+ for am_mf
708
+ do
709
+ # Strip MF so we end up with the name of the file.
710
+ am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'`
711
+ # Check whether this is an Automake generated Makefile which includes
712
+ # dependency-tracking related rules and includes.
713
+ # Grep'ing the whole file directly is not great: AIX grep has a line
714
+ # limit of 2048, but all sed's we know have understand at least 4000.
715
+ sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
716
+ || continue
717
+ am_dirpart=`AS_DIRNAME(["$am_mf"])`
718
+ am_filepart=`AS_BASENAME(["$am_mf"])`
719
+ AM_RUN_LOG([cd "$am_dirpart" \
720
+ && sed -e '/# am--include-marker/d' "$am_filepart" \
721
+ | $MAKE -f - am--depfiles]) || am_rc=$?
722
+ done
723
+ if test $am_rc -ne 0; then
724
+ AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments
725
+ for automatic dependency tracking. If GNU make was not used, consider
726
+ re-running the configure script with MAKE="gmake" (or whatever is
727
+ necessary). You can also try re-running configure with the
728
+ '--disable-dependency-tracking' option to at least be able to build
729
+ the package (albeit without support for automatic dependency tracking).])
730
+ fi
731
+ AS_UNSET([am_dirpart])
732
+ AS_UNSET([am_filepart])
733
+ AS_UNSET([am_mf])
734
+ AS_UNSET([am_rc])
735
+ rm -f conftest-deps.mk
736
+ }
737
+ ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
738
+
739
+
740
+ # AM_OUTPUT_DEPENDENCY_COMMANDS
741
+ # -----------------------------
742
+ # This macro should only be invoked once -- use via AC_REQUIRE.
743
+ #
744
+ # This code is only required when automatic dependency tracking is enabled.
745
+ # This creates each '.Po' and '.Plo' makefile fragment that we'll need in
746
+ # order to bootstrap the dependency handling code.
747
+ AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
748
+ [AC_CONFIG_COMMANDS([depfiles],
749
+ [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
750
+ [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])])
751
+
752
+ # Do all the work for Automake. -*- Autoconf -*-
753
+
754
+ # Copyright (C) 1996-2025 Free Software Foundation, Inc.
755
+ #
756
+ # This file is free software; the Free Software Foundation
757
+ # gives unlimited permission to copy and/or distribute it,
758
+ # with or without modifications, as long as this notice is preserved.
759
+
760
+ # This macro actually does too much. Some checks are only needed if
761
+ # your package does certain things. But this isn't really a big deal.
762
+
763
+ dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
764
+ m4_define([AC_PROG_CC],
765
+ m4_defn([AC_PROG_CC])
766
+ [_AM_PROG_CC_C_O
767
+ ])
768
+
769
+ # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
770
+ # AM_INIT_AUTOMAKE([OPTIONS])
771
+ # -----------------------------------------------
772
+ # The call with PACKAGE and VERSION arguments is the old style
773
+ # call (pre autoconf-2.50), which is being phased out. PACKAGE
774
+ # and VERSION should now be passed to AC_INIT and removed from
775
+ # the call to AM_INIT_AUTOMAKE.
776
+ # We support both call styles for the transition. After
777
+ # the next Automake release, Autoconf can make the AC_INIT
778
+ # arguments mandatory, and then we can depend on a new Autoconf
779
+ # release and drop the old call support.
780
+ AC_DEFUN([AM_INIT_AUTOMAKE],
781
+ [AC_PREREQ([2.65])dnl
782
+ m4_ifdef([_$0_ALREADY_INIT],
783
+ [m4_fatal([$0 expanded multiple times
784
+ ]m4_defn([_$0_ALREADY_INIT]))],
785
+ [m4_define([_$0_ALREADY_INIT], m4_expansion_stack)])dnl
786
+ dnl Autoconf wants to disallow AM_ names. We explicitly allow
787
+ dnl the ones we care about.
788
+ m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
789
+ AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
790
+ AC_REQUIRE([AC_PROG_INSTALL])dnl
791
+ if test "`cd $srcdir && pwd`" != "`pwd`"; then
792
+ # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
793
+ # is not polluted with repeated "-I."
794
+ AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
795
+ # test to see if srcdir already configured
796
+ if test -f $srcdir/config.status; then
797
+ AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
798
+ fi
799
+ fi
800
+
801
+ # test whether we have cygpath
802
+ if test -z "$CYGPATH_W"; then
803
+ if (cygpath --version) >/dev/null 2>/dev/null; then
804
+ CYGPATH_W='cygpath -w'
805
+ else
806
+ CYGPATH_W=echo
807
+ fi
808
+ fi
809
+ AC_SUBST([CYGPATH_W])
810
+
811
+ # Define the identity of the package.
812
+ dnl Distinguish between old-style and new-style calls.
813
+ m4_ifval([$2],
814
+ [AC_DIAGNOSE([obsolete],
815
+ [$0: two- and three-arguments forms are deprecated.])
816
+ m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
817
+ AC_SUBST([PACKAGE], [$1])dnl
818
+ AC_SUBST([VERSION], [$2])],
819
+ [_AM_SET_OPTIONS([$1])dnl
820
+ dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
821
+ m4_if(
822
+ m4_ifset([AC_PACKAGE_NAME], [ok]):m4_ifset([AC_PACKAGE_VERSION], [ok]),
823
+ [ok:ok],,
824
+ [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
825
+ AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
826
+ AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
827
+
828
+ _AM_IF_OPTION([no-define],,
829
+ [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
830
+ AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
831
+
832
+ # Some tools Automake needs.
833
+ AC_REQUIRE([AM_SANITY_CHECK])dnl
834
+ AC_REQUIRE([AC_ARG_PROGRAM])dnl
835
+ AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
836
+ AM_MISSING_PROG([AUTOCONF], [autoconf])
837
+ AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
838
+ AM_MISSING_PROG([AUTOHEADER], [autoheader])
839
+ AM_MISSING_PROG([MAKEINFO], [makeinfo])
840
+ AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
841
+ AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
842
+ AC_REQUIRE([AC_PROG_MKDIR_P])dnl
843
+ # For better backward compatibility. To be removed once Automake 1.9.x
844
+ # dies out for good. For more background, see:
845
+ # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
846
+ # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
847
+ AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
848
+ # We need awk for the "check" target (and possibly the TAP driver). The
849
+ # system "awk" is bad on some platforms.
850
+ AC_REQUIRE([AC_PROG_AWK])dnl
851
+ AC_REQUIRE([AC_PROG_MAKE_SET])dnl
852
+ AC_REQUIRE([AM_SET_LEADING_DOT])dnl
853
+ _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
854
+ [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
855
+ [_AM_IF_OPTION([tar-v7], [_AM_PROG_TAR([v7])],
856
+ [_AM_PROG_TAR([ustar])])])])
857
+ _AM_IF_OPTION([no-dependencies],,
858
+ [AC_PROVIDE_IFELSE([AC_PROG_CC],
859
+ [_AM_DEPENDENCIES([CC])],
860
+ [m4_define([AC_PROG_CC],
861
+ m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
862
+ AC_PROVIDE_IFELSE([AC_PROG_CXX],
863
+ [_AM_DEPENDENCIES([CXX])],
864
+ [m4_define([AC_PROG_CXX],
865
+ m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
866
+ AC_PROVIDE_IFELSE([AC_PROG_OBJC],
867
+ [_AM_DEPENDENCIES([OBJC])],
868
+ [m4_define([AC_PROG_OBJC],
869
+ m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
870
+ AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
871
+ [_AM_DEPENDENCIES([OBJCXX])],
872
+ [m4_define([AC_PROG_OBJCXX],
873
+ m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
874
+ ])
875
+ # Variables for tags utilities; see am/tags.am
876
+ if test -z "$CTAGS"; then
877
+ CTAGS=ctags
878
+ fi
879
+ AC_SUBST([CTAGS])
880
+ if test -z "$ETAGS"; then
881
+ ETAGS=etags
882
+ fi
883
+ AC_SUBST([ETAGS])
884
+ if test -z "$CSCOPE"; then
885
+ CSCOPE=cscope
886
+ fi
887
+ AC_SUBST([CSCOPE])
888
+
889
+ AC_REQUIRE([_AM_SILENT_RULES])dnl
890
+ dnl The testsuite driver may need to know about EXEEXT, so add the
891
+ dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
892
+ dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
893
+ AC_CONFIG_COMMANDS_PRE(dnl
894
+ [m4_provide_if([_AM_COMPILER_EXEEXT],
895
+ [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
896
+
897
+ AC_REQUIRE([_AM_PROG_RM_F])
898
+ AC_REQUIRE([_AM_PROG_XARGS_N])
899
+
900
+ dnl The trailing newline in this macro's definition is deliberate, for
901
+ dnl backward compatibility and to allow trailing 'dnl'-style comments
902
+ dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
903
+ ])
904
+
905
+ dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
906
+ dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
907
+ dnl mangled by Autoconf and run in a shell conditional statement.
908
+ m4_define([_AC_COMPILER_EXEEXT],
909
+ m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
910
+
911
+ # When config.status generates a header, we must update the stamp-h file.
912
+ # This file resides in the same directory as the config header
913
+ # that is generated. The stamp files are numbered to have different names.
914
+
915
+ # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
916
+ # loop where config.status creates the headers, so we can generate
917
+ # our stamp files there.
918
+ AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
919
+ [# Compute $1's index in $config_headers.
920
+ _am_arg=$1
921
+ _am_stamp_count=1
922
+ for _am_header in $config_headers :; do
923
+ case $_am_header in
924
+ $_am_arg | $_am_arg:* )
925
+ break ;;
926
+ * )
927
+ _am_stamp_count=`expr $_am_stamp_count + 1` ;;
928
+ esac
929
+ done
930
+ echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
931
+
932
+ # Copyright (C) 2001-2025 Free Software Foundation, Inc.
933
+ #
934
+ # This file is free software; the Free Software Foundation
935
+ # gives unlimited permission to copy and/or distribute it,
936
+ # with or without modifications, as long as this notice is preserved.
937
+
938
+ # AM_PROG_INSTALL_SH
939
+ # ------------------
940
+ # Define $install_sh.
941
+ AC_DEFUN([AM_PROG_INSTALL_SH],
942
+ [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
943
+ if test x"${install_sh+set}" != xset; then
944
+ case $am_aux_dir in
945
+ *\ * | *\ *)
946
+ install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
947
+ *)
948
+ install_sh="\${SHELL} $am_aux_dir/install-sh"
949
+ esac
950
+ fi
951
+ AC_SUBST([install_sh])])
952
+
953
+ # Copyright (C) 2003-2025 Free Software Foundation, Inc.
954
+ #
955
+ # This file is free software; the Free Software Foundation
956
+ # gives unlimited permission to copy and/or distribute it,
957
+ # with or without modifications, as long as this notice is preserved.
958
+
959
+ # Check whether the underlying file-system supports filenames
960
+ # with a leading dot. For instance MS-DOS doesn't.
961
+ AC_DEFUN([AM_SET_LEADING_DOT],
962
+ [rm -rf .tst 2>/dev/null
963
+ mkdir .tst 2>/dev/null
964
+ if test -d .tst; then
965
+ am__leading_dot=.
966
+ else
967
+ am__leading_dot=_
968
+ fi
969
+ rmdir .tst 2>/dev/null
970
+ AC_SUBST([am__leading_dot])])
971
+
972
+ # Check to see how 'make' treats includes. -*- Autoconf -*-
973
+
974
+ # Copyright (C) 2001-2025 Free Software Foundation, Inc.
975
+ #
976
+ # This file is free software; the Free Software Foundation
977
+ # gives unlimited permission to copy and/or distribute it,
978
+ # with or without modifications, as long as this notice is preserved.
979
+
980
+ # AM_MAKE_INCLUDE()
981
+ # -----------------
982
+ # Check whether make has an 'include' directive that can support all
983
+ # the idioms we need for our automatic dependency tracking code.
984
+ AC_DEFUN([AM_MAKE_INCLUDE],
985
+ [AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive])
986
+ cat > confinc.mk << 'END'
987
+ am__doit:
988
+ @echo this is the am__doit target >confinc.out
989
+ .PHONY: am__doit
990
+ END
991
+ am__include="#"
992
+ am__quote=
993
+ # BSD make does it like this.
994
+ echo '.include "confinc.mk" # ignored' > confmf.BSD
995
+ # Other make implementations (GNU, Solaris 10, AIX) do it like this.
996
+ echo 'include confinc.mk # ignored' > confmf.GNU
997
+ _am_result=no
998
+ for s in GNU BSD; do
999
+ AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out])
1000
+ AS_CASE([$?:`cat confinc.out 2>/dev/null`],
1001
+ ['0:this is the am__doit target'],
1002
+ [AS_CASE([$s],
1003
+ [BSD], [am__include='.include' am__quote='"'],
1004
+ [am__include='include' am__quote=''])])
1005
+ if test "$am__include" != "#"; then
1006
+ _am_result="yes ($s style)"
1007
+ break
1008
+ fi
1009
+ done
1010
+ rm -f confinc.* confmf.*
1011
+ AC_MSG_RESULT([${_am_result}])
1012
+ AC_SUBST([am__include])])
1013
+ AC_SUBST([am__quote])])
1014
+
1015
+ # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
1016
+
1017
+ # Copyright (C) 1997-2025 Free Software Foundation, Inc.
1018
+ #
1019
+ # This file is free software; the Free Software Foundation
1020
+ # gives unlimited permission to copy and/or distribute it,
1021
+ # with or without modifications, as long as this notice is preserved.
1022
+
1023
+ # AM_MISSING_PROG(NAME, PROGRAM)
1024
+ # ------------------------------
1025
+ AC_DEFUN([AM_MISSING_PROG],
1026
+ [AC_REQUIRE([AM_MISSING_HAS_RUN])
1027
+ $1=${$1-"${am_missing_run}$2"}
1028
+ AC_SUBST($1)])
1029
+
1030
+ # AM_MISSING_HAS_RUN
1031
+ # ------------------
1032
+ # Define MISSING if not defined so far and test if it is modern enough.
1033
+ # If it is, set am_missing_run to use it, otherwise, to nothing.
1034
+ AC_DEFUN([AM_MISSING_HAS_RUN],
1035
+ [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1036
+ AC_REQUIRE_AUX_FILE([missing])dnl
1037
+ if test x"${MISSING+set}" != xset; then
1038
+ MISSING="\${SHELL} '$am_aux_dir/missing'"
1039
+ fi
1040
+ # Use eval to expand $SHELL
1041
+ if eval "$MISSING --is-lightweight"; then
1042
+ am_missing_run="$MISSING "
1043
+ else
1044
+ am_missing_run=
1045
+ AC_MSG_WARN(['missing' script is too old or missing])
1046
+ fi
1047
+ ])
1048
+
1049
+ # Helper functions for option handling. -*- Autoconf -*-
1050
+
1051
+ # Copyright (C) 2001-2025 Free Software Foundation, Inc.
1052
+ #
1053
+ # This file is free software; the Free Software Foundation
1054
+ # gives unlimited permission to copy and/or distribute it,
1055
+ # with or without modifications, as long as this notice is preserved.
1056
+
1057
+ # _AM_MANGLE_OPTION(NAME)
1058
+ # -----------------------
1059
+ AC_DEFUN([_AM_MANGLE_OPTION],
1060
+ [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1061
+
1062
+ # _AM_SET_OPTION(NAME)
1063
+ # --------------------
1064
+ # Set option NAME. Presently that only means defining a flag for this option.
1065
+ AC_DEFUN([_AM_SET_OPTION],
1066
+ [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
1067
+
1068
+ # _AM_SET_OPTIONS(OPTIONS)
1069
+ # ------------------------
1070
+ # OPTIONS is a space-separated list of Automake options.
1071
+ AC_DEFUN([_AM_SET_OPTIONS],
1072
+ [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
1073
+
1074
+ # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
1075
+ # -------------------------------------------
1076
+ # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
1077
+ AC_DEFUN([_AM_IF_OPTION],
1078
+ [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1079
+
1080
+ # Copyright (C) 1999-2025 Free Software Foundation, Inc.
1081
+ #
1082
+ # This file is free software; the Free Software Foundation
1083
+ # gives unlimited permission to copy and/or distribute it,
1084
+ # with or without modifications, as long as this notice is preserved.
1085
+
1086
+ # _AM_PROG_CC_C_O
1087
+ # ---------------
1088
+ # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
1089
+ # to automatically call this.
1090
+ AC_DEFUN([_AM_PROG_CC_C_O],
1091
+ [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1092
+ AC_REQUIRE_AUX_FILE([compile])dnl
1093
+ AC_LANG_PUSH([C])dnl
1094
+ AC_CACHE_CHECK(
1095
+ [whether $CC understands -c and -o together],
1096
+ [am_cv_prog_cc_c_o],
1097
+ [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
1098
+ # Make sure it works both with $CC and with simple cc.
1099
+ # Following AC_PROG_CC_C_O, we do the test twice because some
1100
+ # compilers refuse to overwrite an existing .o file with -o,
1101
+ # though they will create one.
1102
+ am_cv_prog_cc_c_o=yes
1103
+ for am_i in 1 2; do
1104
+ if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
1105
+ && test -f conftest2.$ac_objext; then
1106
+ : OK
1107
+ else
1108
+ am_cv_prog_cc_c_o=no
1109
+ break
1110
+ fi
1111
+ done
1112
+ # aligned with autoconf, so not including core; see bug#72225.
1113
+ rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
1114
+ conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
1115
+ conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
1116
+ unset am_i])
1117
+ if test "$am_cv_prog_cc_c_o" != yes; then
1118
+ # Losing compiler, so override with the script.
1119
+ # FIXME: It is wrong to rewrite CC.
1120
+ # But if we don't then we get into trouble of one sort or another.
1121
+ # A longer-term fix would be to have automake use am__CC in this case,
1122
+ # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
1123
+ CC="$am_aux_dir/compile $CC"
1124
+ fi
1125
+ AC_LANG_POP([C])])
1126
+
1127
+ # For backward compatibility.
1128
+ AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
1129
+
1130
+ # Copyright (C) 2022-2025 Free Software Foundation, Inc.
1131
+ #
1132
+ # This file is free software; the Free Software Foundation
1133
+ # gives unlimited permission to copy and/or distribute it,
1134
+ # with or without modifications, as long as this notice is preserved.
1135
+
1136
+ # _AM_PROG_RM_F
1137
+ # ---------------
1138
+ # Check whether 'rm -f' without any arguments works.
1139
+ # https://bugs.gnu.org/10828
1140
+ AC_DEFUN([_AM_PROG_RM_F],
1141
+ [am__rm_f_notfound=
1142
+ AS_IF([(rm -f && rm -fr && rm -rf) 2>/dev/null], [], [am__rm_f_notfound='""'])
1143
+ AC_SUBST(am__rm_f_notfound)
1144
+ ])
1145
+
1146
+ # Copyright (C) 2001-2025 Free Software Foundation, Inc.
1147
+ #
1148
+ # This file is free software; the Free Software Foundation
1149
+ # gives unlimited permission to copy and/or distribute it,
1150
+ # with or without modifications, as long as this notice is preserved.
1151
+
1152
+ # AM_RUN_LOG(COMMAND)
1153
+ # -------------------
1154
+ # Run COMMAND, save the exit status in ac_status, and log it.
1155
+ # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
1156
+ AC_DEFUN([AM_RUN_LOG],
1157
+ [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
1158
+ ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
1159
+ ac_status=$?
1160
+ echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1161
+ (exit $ac_status); }])
1162
+
1163
+ # Check to make sure that the build environment is sane. -*- Autoconf -*-
1164
+
1165
+ # Copyright (C) 1996-2025 Free Software Foundation, Inc.
1166
+ #
1167
+ # This file is free software; the Free Software Foundation
1168
+ # gives unlimited permission to copy and/or distribute it,
1169
+ # with or without modifications, as long as this notice is preserved.
1170
+
1171
+ # _AM_SLEEP_FRACTIONAL_SECONDS
1172
+ # ----------------------------
1173
+ AC_DEFUN([_AM_SLEEP_FRACTIONAL_SECONDS], [dnl
1174
+ AC_CACHE_CHECK([whether sleep supports fractional seconds],
1175
+ am_cv_sleep_fractional_seconds, [dnl
1176
+ AS_IF([sleep 0.001 2>/dev/null], [am_cv_sleep_fractional_seconds=yes],
1177
+ [am_cv_sleep_fractional_seconds=no])
1178
+ ])])
1179
+
1180
+ # _AM_FILESYSTEM_TIMESTAMP_RESOLUTION
1181
+ # -----------------------------------
1182
+ # Determine the filesystem's resolution for file modification
1183
+ # timestamps. The coarsest we know of is FAT, with a resolution
1184
+ # of only two seconds, even with the most recent "exFAT" extensions.
1185
+ # The finest (e.g. ext4 with large inodes, XFS, ZFS) is one
1186
+ # nanosecond, matching clock_gettime. However, it is probably not
1187
+ # possible to delay execution of a shell script for less than one
1188
+ # millisecond, due to process creation overhead and scheduling
1189
+ # granularity, so we don't check for anything finer than that. (See below.)
1190
+ AC_DEFUN([_AM_FILESYSTEM_TIMESTAMP_RESOLUTION], [dnl
1191
+ AC_REQUIRE([_AM_SLEEP_FRACTIONAL_SECONDS])
1192
+ AC_CACHE_CHECK([filesystem timestamp resolution],
1193
+ am_cv_filesystem_timestamp_resolution, [dnl
1194
+ # Default to the worst case.
1195
+ am_cv_filesystem_timestamp_resolution=2
1196
+
1197
+ # Only try to go finer than 1 sec if sleep can do it.
1198
+ # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
1199
+ # - 1 sec is not much of a win compared to 2 sec, and
1200
+ # - it takes 2 seconds to perform the test whether 1 sec works.
1201
+ #
1202
+ # Instead, just use the default 2s on platforms that have 1s resolution,
1203
+ # accept the extra 1s delay when using $sleep in the Automake tests, in
1204
+ # exchange for not incurring the 2s delay for running the test for all
1205
+ # packages.
1206
+ #
1207
+ am_try_resolutions=
1208
+ if test "$am_cv_sleep_fractional_seconds" = yes; then
1209
+ # Even a millisecond often causes a bunch of false positives,
1210
+ # so just try a hundredth of a second. The time saved between .001 and
1211
+ # .01 is not terribly consequential.
1212
+ am_try_resolutions="0.01 0.1 $am_try_resolutions"
1213
+ fi
1214
+
1215
+ # In order to catch current-generation FAT out, we must *modify* files
1216
+ # that already exist; the *creation* timestamp is finer. Use names
1217
+ # that make ls -t sort them differently when they have equal
1218
+ # timestamps than when they have distinct timestamps, keeping
1219
+ # in mind that ls -t prints the *newest* file first.
1220
+ rm -f conftest.ts?
1221
+ : > conftest.ts1
1222
+ : > conftest.ts2
1223
+ : > conftest.ts3
1224
+
1225
+ # Make sure ls -t actually works. Do 'set' in a subshell so we don't
1226
+ # clobber the current shell's arguments. (Outer-level square brackets
1227
+ # are removed by m4; they're present so that m4 does not expand
1228
+ # <dollar><star>; be careful, easy to get confused.)
1229
+ if (
1230
+ set X `[ls -t conftest.ts[12]]` &&
1231
+ {
1232
+ test "$[]*" != "X conftest.ts1 conftest.ts2" ||
1233
+ test "$[]*" != "X conftest.ts2 conftest.ts1";
1234
+ }
1235
+ ); then :; else
1236
+ # If neither matched, then we have a broken ls. This can happen
1237
+ # if, for instance, CONFIG_SHELL is bash and it inherits a
1238
+ # broken ls alias from the environment. This has actually
1239
+ # happened. Such a system could not be considered "sane".
1240
+ _AS_ECHO_UNQUOTED(
1241
+ ["Bad output from ls -t: \"`[ls -t conftest.ts[12]]`\""],
1242
+ [AS_MESSAGE_LOG_FD])
1243
+ AC_MSG_FAILURE([ls -t produces unexpected output.
1244
+ Make sure there is not a broken ls alias in your environment.])
1245
+ fi
1246
+
1247
+ for am_try_res in $am_try_resolutions; do
1248
+ # Any one fine-grained sleep might happen to cross the boundary
1249
+ # between two values of a coarser actual resolution, but if we do
1250
+ # two fine-grained sleeps in a row, at least one of them will fall
1251
+ # entirely within a coarse interval.
1252
+ echo alpha > conftest.ts1
1253
+ sleep $am_try_res
1254
+ echo beta > conftest.ts2
1255
+ sleep $am_try_res
1256
+ echo gamma > conftest.ts3
1257
+
1258
+ # We assume that 'ls -t' will make use of high-resolution
1259
+ # timestamps if the operating system supports them at all.
1260
+ if (set X `ls -t conftest.ts?` &&
1261
+ test "$[]2" = conftest.ts3 &&
1262
+ test "$[]3" = conftest.ts2 &&
1263
+ test "$[]4" = conftest.ts1); then
1264
+ #
1265
+ # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
1266
+ # because we don't need to test make.
1267
+ make_ok=true
1268
+ if test $am_try_res != 1; then
1269
+ # But if we've succeeded so far with a subsecond resolution, we
1270
+ # have one more thing to check: make. It can happen that
1271
+ # everything else supports the subsecond mtimes, but make doesn't;
1272
+ # notably on macOS, which ships make 3.81 from 2006 (the last one
1273
+ # released under GPLv2). https://bugs.gnu.org/68808
1274
+ #
1275
+ # We test $MAKE if it is defined in the environment, else "make".
1276
+ # It might get overridden later, but our hope is that in practice
1277
+ # it does not matter: it is the system "make" which is (by far)
1278
+ # the most likely to be broken, whereas if the user overrides it,
1279
+ # probably they did so with a better, or at least not worse, make.
1280
+ # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
1281
+ #
1282
+ # Create a Makefile (real tab character here):
1283
+ rm -f conftest.mk
1284
+ echo 'conftest.ts1: conftest.ts2' >conftest.mk
1285
+ echo ' touch conftest.ts2' >>conftest.mk
1286
+ #
1287
+ # Now, running
1288
+ # touch conftest.ts1; touch conftest.ts2; make
1289
+ # should touch ts1 because ts2 is newer. This could happen by luck,
1290
+ # but most often, it will fail if make's support is insufficient. So
1291
+ # test for several consecutive successes.
1292
+ #
1293
+ # (We reuse conftest.ts[12] because we still want to modify existing
1294
+ # files, not create new ones, per above.)
1295
+ n=0
1296
+ make=${MAKE-make}
1297
+ until test $n -eq 3; do
1298
+ echo one > conftest.ts1
1299
+ sleep $am_try_res
1300
+ echo two > conftest.ts2 # ts2 should now be newer than ts1
1301
+ if $make -f conftest.mk | grep 'up to date' >/dev/null; then
1302
+ make_ok=false
1303
+ break # out of $n loop
1304
+ fi
1305
+ n=`expr $n + 1`
1306
+ done
1307
+ fi
1308
+ #
1309
+ if $make_ok; then
1310
+ # Everything we know to check worked out, so call this resolution good.
1311
+ am_cv_filesystem_timestamp_resolution=$am_try_res
1312
+ break # out of $am_try_res loop
1313
+ fi
1314
+ # Otherwise, we'll go on to check the next resolution.
1315
+ fi
1316
+ done
1317
+ rm -f conftest.ts?
1318
+ # (end _am_filesystem_timestamp_resolution)
1319
+ ])])
1320
+
1321
+ # AM_SANITY_CHECK
1322
+ # ---------------
1323
+ AC_DEFUN([AM_SANITY_CHECK],
1324
+ [AC_REQUIRE([_AM_FILESYSTEM_TIMESTAMP_RESOLUTION])
1325
+ # This check should not be cached, as it may vary across builds of
1326
+ # different projects.
1327
+ AC_MSG_CHECKING([whether build environment is sane])
1328
+ # Reject unsafe characters in $srcdir or the absolute working directory
1329
+ # name. Accept space and tab only in the latter.
1330
+ am_lf='
1331
+ '
1332
+ case `pwd` in
1333
+ *[[\\\"\#\$\&\'\`$am_lf]]*)
1334
+ AC_MSG_RESULT([no])
1335
+ AC_MSG_ERROR([unsafe absolute working directory name]);;
1336
+ esac
1337
+ case $srcdir in
1338
+ *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
1339
+ AC_MSG_RESULT([no])
1340
+ AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
1341
+ esac
1342
+
1343
+ # Do 'set' in a subshell so we don't clobber the current shell's
1344
+ # arguments. Must try -L first in case configure is actually a
1345
+ # symlink; some systems play weird games with the mod time of symlinks
1346
+ # (eg FreeBSD returns the mod time of the symlink's containing
1347
+ # directory).
1348
+ am_build_env_is_sane=no
1349
+ am_has_slept=no
1350
+ rm -f conftest.file
1351
+ for am_try in 1 2; do
1352
+ echo "timestamp, slept: $am_has_slept" > conftest.file
1353
+ if (
1354
+ set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1355
+ if test "$[]*" = "X"; then
1356
+ # -L didn't work.
1357
+ set X `ls -t "$srcdir/configure" conftest.file`
1358
+ fi
1359
+ test "$[]2" = conftest.file
1360
+ ); then
1361
+ am_build_env_is_sane=yes
1362
+ break
1363
+ fi
1364
+ # Just in case.
1365
+ sleep "$am_cv_filesystem_timestamp_resolution"
1366
+ am_has_slept=yes
1367
+ done
1368
+
1369
+ AC_MSG_RESULT([$am_build_env_is_sane])
1370
+ if test "$am_build_env_is_sane" = no; then
1371
+ AC_MSG_ERROR([newly created file is older than distributed files!
1372
+ Check your system clock])
1373
+ fi
1374
+
1375
+ # If we didn't sleep, we still need to ensure time stamps of config.status and
1376
+ # generated files are strictly newer.
1377
+ am_sleep_pid=
1378
+ AS_IF([test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1],, [dnl
1379
+ ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
1380
+ am_sleep_pid=$!
1381
+ ])
1382
+ AC_CONFIG_COMMANDS_PRE(
1383
+ [AC_MSG_CHECKING([that generated files are newer than configure])
1384
+ if test -n "$am_sleep_pid"; then
1385
+ # Hide warnings about reused PIDs.
1386
+ wait $am_sleep_pid 2>/dev/null
1387
+ fi
1388
+ AC_MSG_RESULT([done])])
1389
+ rm -f conftest.file
1390
+ ])
1391
+
1392
+ # Copyright (C) 2009-2025 Free Software Foundation, Inc.
1393
+ #
1394
+ # This file is free software; the Free Software Foundation
1395
+ # gives unlimited permission to copy and/or distribute it,
1396
+ # with or without modifications, as long as this notice is preserved.
1397
+
1398
+ # _AM_SILENT_RULES
1399
+ # ----------------
1400
+ # Enable less verbose build rules support.
1401
+ AC_DEFUN([_AM_SILENT_RULES],
1402
+ [AM_DEFAULT_VERBOSITY=1
1403
+ AC_ARG_ENABLE([silent-rules], [dnl
1404
+ AS_HELP_STRING(
1405
+ [--enable-silent-rules],
1406
+ [less verbose build output (undo: "make V=1")])
1407
+ AS_HELP_STRING(
1408
+ [--disable-silent-rules],
1409
+ [verbose build output (undo: "make V=0")])dnl
1410
+ ])
1411
+ dnl
1412
+ dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
1413
+ dnl do not support nested variable expansions.
1414
+ dnl See automake bug#9928 and bug#10237.
1415
+ am_make=${MAKE-make}
1416
+ AC_CACHE_CHECK([whether $am_make supports nested variables],
1417
+ [am_cv_make_support_nested_variables],
1418
+ [if AS_ECHO([['TRUE=$(BAR$(V))
1419
+ BAR0=false
1420
+ BAR1=true
1421
+ V=1
1422
+ am__doit:
1423
+ @$(TRUE)
1424
+ .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
1425
+ am_cv_make_support_nested_variables=yes
1426
+ else
1427
+ am_cv_make_support_nested_variables=no
1428
+ fi])
1429
+ AC_SUBST([AM_V])dnl
1430
+ AM_SUBST_NOTMAKE([AM_V])dnl
1431
+ AC_SUBST([AM_DEFAULT_V])dnl
1432
+ AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
1433
+ AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
1434
+ AM_BACKSLASH='\'
1435
+ AC_SUBST([AM_BACKSLASH])dnl
1436
+ _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1437
+ dnl Delay evaluation of AM_DEFAULT_VERBOSITY to the end to allow multiple calls
1438
+ dnl to AM_SILENT_RULES to change the default value.
1439
+ AC_CONFIG_COMMANDS_PRE([dnl
1440
+ case $enable_silent_rules in @%:@ (((
1441
+ yes) AM_DEFAULT_VERBOSITY=0;;
1442
+ no) AM_DEFAULT_VERBOSITY=1;;
1443
+ esac
1444
+ if test $am_cv_make_support_nested_variables = yes; then
1445
+ dnl Using '$V' instead of '$(V)' breaks IRIX make.
1446
+ AM_V='$(V)'
1447
+ AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1448
+ else
1449
+ AM_V=$AM_DEFAULT_VERBOSITY
1450
+ AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1451
+ fi
1452
+ ])dnl
1453
+ ])
1454
+
1455
+ # AM_SILENT_RULES([DEFAULT])
1456
+ # --------------------------
1457
+ # Set the default verbosity level to DEFAULT ("yes" being less verbose, "no" or
1458
+ # empty being verbose).
1459
+ AC_DEFUN([AM_SILENT_RULES],
1460
+ [AC_REQUIRE([_AM_SILENT_RULES])
1461
+ AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1])m4_newline
1462
+ dnl We intentionally force a newline after the assignment, since a) nothing
1463
+ dnl good can come of more text following, and b) that was the behavior
1464
+ dnl before 1.17. See https://bugs.gnu.org/72267.
1465
+ ])
1466
+
1467
+ # Copyright (C) 2001-2025 Free Software Foundation, Inc.
1468
+ #
1469
+ # This file is free software; the Free Software Foundation
1470
+ # gives unlimited permission to copy and/or distribute it,
1471
+ # with or without modifications, as long as this notice is preserved.
1472
+
1473
+ # AM_PROG_INSTALL_STRIP
1474
+ # ---------------------
1475
+ # One issue with vendor 'install' (even GNU) is that you can't
1476
+ # specify the program used to strip binaries. This is especially
1477
+ # annoying in cross-compiling environments, where the build's strip
1478
+ # is unlikely to handle the host's binaries.
1479
+ # Fortunately install-sh will honor a STRIPPROG variable, so we
1480
+ # always use install-sh in "make install-strip", and initialize
1481
+ # STRIPPROG with the value of the STRIP variable (set by the user).
1482
+ AC_DEFUN([AM_PROG_INSTALL_STRIP],
1483
+ [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1484
+ # Installed binaries are usually stripped using 'strip' when the user
1485
+ # run "make install-strip". However 'strip' might not be the right
1486
+ # tool to use in cross-compilation environments, therefore Automake
1487
+ # will honor the 'STRIP' environment variable to overrule this program.
1488
+ dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
1489
+ if test "$cross_compiling" != no; then
1490
+ AC_CHECK_TOOL([STRIP], [strip], :)
1491
+ fi
1492
+ INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1493
+ AC_SUBST([INSTALL_STRIP_PROGRAM])])
1494
+
1495
+ # Copyright (C) 2006-2025 Free Software Foundation, Inc.
1496
+ #
1497
+ # This file is free software; the Free Software Foundation
1498
+ # gives unlimited permission to copy and/or distribute it,
1499
+ # with or without modifications, as long as this notice is preserved.
1500
+
1501
+ # _AM_SUBST_NOTMAKE(VARIABLE)
1502
+ # ---------------------------
1503
+ # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1504
+ # This macro is traced by Automake.
1505
+ AC_DEFUN([_AM_SUBST_NOTMAKE])
1506
+
1507
+ # AM_SUBST_NOTMAKE(VARIABLE)
1508
+ # --------------------------
1509
+ # Public sister of _AM_SUBST_NOTMAKE.
1510
+ AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1511
+
1512
+ # Check how to create a tarball. -*- Autoconf -*-
1513
+
1514
+ # Copyright (C) 2004-2025 Free Software Foundation, Inc.
1515
+ #
1516
+ # This file is free software; the Free Software Foundation
1517
+ # gives unlimited permission to copy and/or distribute it,
1518
+ # with or without modifications, as long as this notice is preserved.
1519
+
1520
+ # _AM_PROG_TAR(FORMAT)
1521
+ # --------------------
1522
+ # Check how to create a tarball in format FORMAT.
1523
+ # FORMAT should be one of 'v7', 'ustar', or 'pax'.
1524
+ #
1525
+ # Substitute a variable $(am__tar) that is a command
1526
+ # writing to stdout a FORMAT-tarball containing the directory
1527
+ # $tardir.
1528
+ # tardir=directory && $(am__tar) > result.tar
1529
+ #
1530
+ # Substitute a variable $(am__untar) that extract such
1531
+ # a tarball read from stdin.
1532
+ # $(am__untar) < result.tar
1533
+ #
1534
+ AC_DEFUN([_AM_PROG_TAR],
1535
+ [# Always define AMTAR for backward compatibility. Yes, it's still used
1536
+ # in the wild :-( We should find a proper way to deprecate it ...
1537
+ AC_SUBST([AMTAR], ['$${TAR-tar}'])
1538
+
1539
+ # We'll loop over all known methods to create a tar archive until one works.
1540
+ _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1541
+
1542
+ m4_if([$1], [v7],
1543
+ [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1544
+
1545
+ [m4_case([$1],
1546
+ [ustar],
1547
+ [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
1548
+ # There is notably a 21 bits limit for the UID and the GID. In fact,
1549
+ # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
1550
+ # and bug#13588).
1551
+ am_max_uid=2097151 # 2^21 - 1
1552
+ am_max_gid=$am_max_uid
1553
+ # The $UID and $GID variables are not portable, so we need to resort
1554
+ # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
1555
+ # below are definitely unexpected, so allow the users to see them
1556
+ # (that is, avoid stderr redirection).
1557
+ am_uid=`id -u || echo unknown`
1558
+ am_gid=`id -g || echo unknown`
1559
+ AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
1560
+ if test x$am_uid = xunknown; then
1561
+ AC_MSG_WARN([ancient id detected; assuming current UID is ok, but dist-ustar might not work])
1562
+ elif test $am_uid -le $am_max_uid; then
1563
+ AC_MSG_RESULT([yes])
1564
+ else
1565
+ AC_MSG_RESULT([no])
1566
+ _am_tools=none
1567
+ fi
1568
+ AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
1569
+ if test x$gm_gid = xunknown; then
1570
+ AC_MSG_WARN([ancient id detected; assuming current GID is ok, but dist-ustar might not work])
1571
+ elif test $am_gid -le $am_max_gid; then
1572
+ AC_MSG_RESULT([yes])
1573
+ else
1574
+ AC_MSG_RESULT([no])
1575
+ _am_tools=none
1576
+ fi],
1577
+
1578
+ [pax],
1579
+ [],
1580
+
1581
+ [m4_fatal([Unknown tar format])])
1582
+
1583
+ AC_MSG_CHECKING([how to create a $1 tar archive])
1584
+
1585
+ # Go ahead even if we have the value already cached. We do so because we
1586
+ # need to set the values for the 'am__tar' and 'am__untar' variables.
1587
+ _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1588
+
1589
+ for _am_tool in $_am_tools; do
1590
+ case $_am_tool in
1591
+ gnutar)
1592
+ for _am_tar in tar gnutar gtar; do
1593
+ AM_RUN_LOG([$_am_tar --version]) && break
1594
+ done
1595
+ am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1596
+ am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1597
+ am__untar="$_am_tar -xf -"
1598
+ ;;
1599
+ plaintar)
1600
+ # Must skip GNU tar: if it does not support --format= it doesn't create
1601
+ # ustar tarball either.
1602
+ (tar --version) >/dev/null 2>&1 && continue
1603
+ am__tar='tar chf - "$$tardir"'
1604
+ am__tar_='tar chf - "$tardir"'
1605
+ am__untar='tar xf -'
1606
+ ;;
1607
+ pax)
1608
+ am__tar='pax -L -x $1 -w "$$tardir"'
1609
+ am__tar_='pax -L -x $1 -w "$tardir"'
1610
+ am__untar='pax -r'
1611
+ ;;
1612
+ cpio)
1613
+ am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1614
+ am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1615
+ am__untar='cpio -i -H $1 -d'
1616
+ ;;
1617
+ none)
1618
+ am__tar=false
1619
+ am__tar_=false
1620
+ am__untar=false
1621
+ ;;
1622
+ esac
1623
+
1624
+ # If the value was cached, stop now. We just wanted to have am__tar
1625
+ # and am__untar set.
1626
+ test -n "${am_cv_prog_tar_$1}" && break
1627
+
1628
+ # tar/untar a dummy directory, and stop if the command works.
1629
+ rm -rf conftest.dir
1630
+ mkdir conftest.dir
1631
+ echo GrepMe > conftest.dir/file
1632
+ AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1633
+ rm -rf conftest.dir
1634
+ if test -s conftest.tar; then
1635
+ AM_RUN_LOG([$am__untar <conftest.tar])
1636
+ AM_RUN_LOG([cat conftest.dir/file])
1637
+ grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1638
+ fi
1639
+ done
1640
+ rm -rf conftest.dir
1641
+
1642
+ AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1643
+ AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1644
+
1645
+ AC_SUBST([am__tar])
1646
+ AC_SUBST([am__untar])
1647
+ ]) # _AM_PROG_TAR
1648
+
1649
+ # Copyright (C) 2022-2025 Free Software Foundation, Inc.
1650
+ #
1651
+ # This file is free software; the Free Software Foundation
1652
+ # gives unlimited permission to copy and/or distribute it,
1653
+ # with or without modifications, as long as this notice is preserved.
1654
+
1655
+ # _AM_PROG_XARGS_N
1656
+ # ----------------
1657
+ # Check whether 'xargs -n' works. It should work everywhere, so the fallback
1658
+ # is not optimized at all as we never expect to use it.
1659
+ AC_DEFUN([_AM_PROG_XARGS_N],
1660
+ [AC_CACHE_CHECK([xargs -n works], am_cv_xargs_n_works, [dnl
1661
+ AS_IF([test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
1662
+ 3"], [am_cv_xargs_n_works=yes], [am_cv_xargs_n_works=no])])
1663
+ AS_IF([test "$am_cv_xargs_n_works" = yes], [am__xargs_n='xargs -n'], [dnl
1664
+ am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "$@" "$am__xargs_n_arg"; done; }'
1665
+ ])dnl
1666
+ AC_SUBST(am__xargs_n)
1667
+ ])
1668
+
1669
+ m4_include([m4/ax_openmp.m4])
1670
+ m4_include([m4/libtool.m4])
1671
+ m4_include([m4/ltoptions.m4])
1672
+ m4_include([m4/ltsugar.m4])
1673
+ m4_include([m4/ltversion.m4])
1674
+ m4_include([m4/lt~obsolete.m4])