laag-xz 5.2.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +57 -0
- data/LICENSE.txt +65 -0
- data/README.org +34 -0
- data/ext/laag/xz/extconf.rb +21 -0
- data/laag-xz.gemspec +20 -0
- data/lib/laag/xz.rb +29 -0
- data/vendor/git.tukaani.org/xz/.gitignore +66 -0
- data/vendor/git.tukaani.org/xz/AUTHORS +27 -0
- data/vendor/git.tukaani.org/xz/COPYING +65 -0
- data/vendor/git.tukaani.org/xz/COPYING.GPLv2 +339 -0
- data/vendor/git.tukaani.org/xz/COPYING.GPLv3 +674 -0
- data/vendor/git.tukaani.org/xz/COPYING.LGPLv2.1 +502 -0
- data/vendor/git.tukaani.org/xz/ChangeLog +7 -0
- data/vendor/git.tukaani.org/xz/Doxyfile.in +1234 -0
- data/vendor/git.tukaani.org/xz/INSTALL +618 -0
- data/vendor/git.tukaani.org/xz/INSTALL.generic +365 -0
- data/vendor/git.tukaani.org/xz/Makefile.am +110 -0
- data/vendor/git.tukaani.org/xz/NEWS +571 -0
- data/vendor/git.tukaani.org/xz/PACKAGERS +231 -0
- data/vendor/git.tukaani.org/xz/README +308 -0
- data/vendor/git.tukaani.org/xz/THANKS +124 -0
- data/vendor/git.tukaani.org/xz/TODO +111 -0
- data/vendor/git.tukaani.org/xz/autogen.sh +22 -0
- data/vendor/git.tukaani.org/xz/build-aux/manconv.sh +58 -0
- data/vendor/git.tukaani.org/xz/build-aux/version.sh +24 -0
- data/vendor/git.tukaani.org/xz/configure.ac +900 -0
- data/vendor/git.tukaani.org/xz/debug/Makefile.am +30 -0
- data/vendor/git.tukaani.org/xz/debug/README +17 -0
- data/vendor/git.tukaani.org/xz/debug/crc32.c +39 -0
- data/vendor/git.tukaani.org/xz/debug/full_flush.c +103 -0
- data/vendor/git.tukaani.org/xz/debug/hex2bin.c +53 -0
- data/vendor/git.tukaani.org/xz/debug/known_sizes.c +129 -0
- data/vendor/git.tukaani.org/xz/debug/memusage.c +51 -0
- data/vendor/git.tukaani.org/xz/debug/repeat.c +36 -0
- data/vendor/git.tukaani.org/xz/debug/sync_flush.c +125 -0
- data/vendor/git.tukaani.org/xz/debug/translation.bash +100 -0
- data/vendor/git.tukaani.org/xz/doc/examples/00_README.txt +31 -0
- data/vendor/git.tukaani.org/xz/doc/examples/01_compress_easy.c +297 -0
- data/vendor/git.tukaani.org/xz/doc/examples/02_decompress.c +287 -0
- data/vendor/git.tukaani.org/xz/doc/examples/03_compress_custom.c +193 -0
- data/vendor/git.tukaani.org/xz/doc/examples/04_compress_easy_mt.c +206 -0
- data/vendor/git.tukaani.org/xz/doc/examples/Makefile +24 -0
- data/vendor/git.tukaani.org/xz/doc/examples_old/xz_pipe_comp.c +127 -0
- data/vendor/git.tukaani.org/xz/doc/examples_old/xz_pipe_decomp.c +123 -0
- data/vendor/git.tukaani.org/xz/doc/faq.txt +224 -0
- data/vendor/git.tukaani.org/xz/doc/history.txt +150 -0
- data/vendor/git.tukaani.org/xz/doc/lzma-file-format.txt +166 -0
- data/vendor/git.tukaani.org/xz/doc/xz-file-format.txt +1150 -0
- data/vendor/git.tukaani.org/xz/dos/INSTALL.txt +79 -0
- data/vendor/git.tukaani.org/xz/dos/Makefile +147 -0
- data/vendor/git.tukaani.org/xz/dos/README.txt +123 -0
- data/vendor/git.tukaani.org/xz/dos/config.h +136 -0
- data/vendor/git.tukaani.org/xz/extra/7z2lzma/7z2lzma.bash +115 -0
- data/vendor/git.tukaani.org/xz/extra/scanlzma/scanlzma.c +88 -0
- data/vendor/git.tukaani.org/xz/lib/Makefile.am +32 -0
- data/vendor/git.tukaani.org/xz/lib/getopt.c +1197 -0
- data/vendor/git.tukaani.org/xz/lib/getopt.in.h +226 -0
- data/vendor/git.tukaani.org/xz/lib/getopt1.c +171 -0
- data/vendor/git.tukaani.org/xz/lib/getopt_int.h +131 -0
- data/vendor/git.tukaani.org/xz/m4/.gitignore +38 -0
- data/vendor/git.tukaani.org/xz/m4/ax_check_capsicum.m4 +85 -0
- data/vendor/git.tukaani.org/xz/m4/ax_pthread.m4 +332 -0
- data/vendor/git.tukaani.org/xz/m4/getopt.m4 +71 -0
- data/vendor/git.tukaani.org/xz/m4/posix-shell.m4 +63 -0
- data/vendor/git.tukaani.org/xz/m4/tuklib_common.m4 +22 -0
- data/vendor/git.tukaani.org/xz/m4/tuklib_cpucores.m4 +176 -0
- data/vendor/git.tukaani.org/xz/m4/tuklib_integer.m4 +74 -0
- data/vendor/git.tukaani.org/xz/m4/tuklib_mbstr.m4 +30 -0
- data/vendor/git.tukaani.org/xz/m4/tuklib_physmem.m4 +212 -0
- data/vendor/git.tukaani.org/xz/m4/tuklib_progname.m4 +25 -0
- data/vendor/git.tukaani.org/xz/macosx/build.sh +113 -0
- data/vendor/git.tukaani.org/xz/po/.gitignore +31 -0
- data/vendor/git.tukaani.org/xz/po/LINGUAS +6 -0
- data/vendor/git.tukaani.org/xz/po/Makevars +46 -0
- data/vendor/git.tukaani.org/xz/po/POTFILES.in +13 -0
- data/vendor/git.tukaani.org/xz/po/cs.po +949 -0
- data/vendor/git.tukaani.org/xz/po/de.po +993 -0
- data/vendor/git.tukaani.org/xz/po/fr.po +978 -0
- data/vendor/git.tukaani.org/xz/po/it.po +1067 -0
- data/vendor/git.tukaani.org/xz/po/pl.po +968 -0
- data/vendor/git.tukaani.org/xz/po/vi.po +1039 -0
- data/vendor/git.tukaani.org/xz/src/Makefile.am +42 -0
- data/vendor/git.tukaani.org/xz/src/common/common_w32res.rc +50 -0
- data/vendor/git.tukaani.org/xz/src/common/mythread.h +521 -0
- data/vendor/git.tukaani.org/xz/src/common/sysdefs.h +202 -0
- data/vendor/git.tukaani.org/xz/src/common/tuklib_common.h +71 -0
- data/vendor/git.tukaani.org/xz/src/common/tuklib_config.h +7 -0
- data/vendor/git.tukaani.org/xz/src/common/tuklib_cpucores.c +100 -0
- data/vendor/git.tukaani.org/xz/src/common/tuklib_cpucores.h +23 -0
- data/vendor/git.tukaani.org/xz/src/common/tuklib_exit.c +57 -0
- data/vendor/git.tukaani.org/xz/src/common/tuklib_exit.h +25 -0
- data/vendor/git.tukaani.org/xz/src/common/tuklib_gettext.h +44 -0
- data/vendor/git.tukaani.org/xz/src/common/tuklib_integer.h +534 -0
- data/vendor/git.tukaani.org/xz/src/common/tuklib_mbstr.h +66 -0
- data/vendor/git.tukaani.org/xz/src/common/tuklib_mbstr_fw.c +31 -0
- data/vendor/git.tukaani.org/xz/src/common/tuklib_mbstr_width.c +64 -0
- data/vendor/git.tukaani.org/xz/src/common/tuklib_open_stdxxx.c +57 -0
- data/vendor/git.tukaani.org/xz/src/common/tuklib_open_stdxxx.h +23 -0
- data/vendor/git.tukaani.org/xz/src/common/tuklib_physmem.c +216 -0
- data/vendor/git.tukaani.org/xz/src/common/tuklib_physmem.h +28 -0
- data/vendor/git.tukaani.org/xz/src/common/tuklib_progname.c +50 -0
- data/vendor/git.tukaani.org/xz/src/common/tuklib_progname.h +32 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/Makefile.am +122 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/api/Makefile.am +23 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/api/lzma.h +325 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/api/lzma/base.h +659 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/api/lzma/bcj.h +90 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/api/lzma/block.h +581 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/api/lzma/check.h +150 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/api/lzma/container.h +632 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/api/lzma/delta.h +77 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/api/lzma/filter.h +425 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/api/lzma/hardware.h +64 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/api/lzma/index.h +686 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/api/lzma/index_hash.h +107 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/api/lzma/lzma12.h +420 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/api/lzma/stream_flags.h +223 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/api/lzma/version.h +121 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/api/lzma/vli.h +166 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/check/Makefile.inc +53 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/check/check.c +174 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/check/check.h +172 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/check/crc32_fast.c +82 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/check/crc32_small.c +61 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/check/crc32_table.c +19 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/check/crc32_table_be.h +525 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/check/crc32_table_le.h +525 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/check/crc32_tablegen.c +117 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/check/crc32_x86.S +304 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/check/crc64_fast.c +72 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/check/crc64_small.c +53 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/check/crc64_table.c +19 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/check/crc64_table_be.h +521 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/check/crc64_table_le.h +521 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/check/crc64_tablegen.c +88 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/check/crc64_x86.S +287 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/check/crc_macros.h +30 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/check/sha256.c +196 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/Makefile.inc +79 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/alone_decoder.c +243 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/alone_decoder.h +23 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/alone_encoder.c +163 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/auto_decoder.c +195 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/block_buffer_decoder.c +80 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/block_buffer_encoder.c +337 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/block_buffer_encoder.h +24 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/block_decoder.c +257 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/block_decoder.h +22 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/block_encoder.c +223 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/block_encoder.h +47 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/block_header_decoder.c +124 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/block_header_encoder.c +132 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/block_util.c +90 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/common.c +445 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/common.h +314 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/easy_buffer_encoder.c +27 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/easy_decoder_memusage.c +24 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/easy_encoder.c +24 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/easy_encoder_memusage.c +24 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/easy_preset.c +27 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/easy_preset.h +32 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/filter_buffer_decoder.c +88 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/filter_buffer_encoder.c +55 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/filter_common.c +337 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/filter_common.h +48 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/filter_decoder.c +184 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/filter_decoder.h +23 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/filter_encoder.c +286 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/filter_encoder.h +27 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/filter_flags_decoder.c +46 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/filter_flags_encoder.c +56 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/hardware_cputhreads.c +22 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/hardware_physmem.c +25 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/index.c +1250 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/index.h +73 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/index_decoder.c +352 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/index_encoder.c +256 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/index_encoder.h +23 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/index_hash.c +334 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/memcmplen.h +175 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/outqueue.c +184 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/outqueue.h +156 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/stream_buffer_decoder.c +91 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/stream_buffer_encoder.c +141 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/stream_decoder.c +467 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/stream_decoder.h +22 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/stream_encoder.c +340 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/stream_encoder_mt.c +1143 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/stream_flags_common.c +47 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/stream_flags_common.h +33 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/stream_flags_decoder.c +82 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/stream_flags_encoder.c +86 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/vli_decoder.c +86 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/vli_encoder.c +69 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/vli_size.c +30 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/delta/Makefile.inc +23 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/delta/delta_common.c +73 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/delta/delta_common.h +20 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/delta/delta_decoder.c +78 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/delta/delta_decoder.h +26 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/delta/delta_encoder.c +125 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/delta/delta_encoder.h +24 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/delta/delta_private.h +37 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/liblzma.map +108 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/liblzma.pc.in +19 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/liblzma_w32res.rc +12 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/lz/Makefile.inc +22 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/lz/lz_decoder.c +306 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/lz/lz_decoder.h +234 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/lz/lz_encoder.c +616 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/lz/lz_encoder.h +327 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/lz/lz_encoder_hash.h +108 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/lz/lz_encoder_hash_table.h +68 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/lz/lz_encoder_mf.c +744 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/lzma/Makefile.inc +47 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/lzma/fastpos.h +141 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/lzma/fastpos_table.c +519 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/lzma/fastpos_tablegen.c +56 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/lzma/lzma2_decoder.c +310 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/lzma/lzma2_decoder.h +29 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/lzma/lzma2_encoder.c +410 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/lzma/lzma2_encoder.h +43 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/lzma/lzma_common.h +224 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/lzma/lzma_decoder.c +1064 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/lzma/lzma_decoder.h +53 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/lzma/lzma_encoder.c +677 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/lzma/lzma_encoder.h +58 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/lzma/lzma_encoder_optimum_fast.c +170 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/lzma/lzma_encoder_optimum_normal.c +855 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/lzma/lzma_encoder_presets.c +64 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/lzma/lzma_encoder_private.h +148 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/rangecoder/Makefile.inc +21 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/rangecoder/price.h +92 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/rangecoder/price_table.c +22 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/rangecoder/price_tablegen.c +87 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/rangecoder/range_common.h +71 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/rangecoder/range_decoder.h +185 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/rangecoder/range_encoder.h +231 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/simple/Makefile.inc +47 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/simple/arm.c +71 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/simple/armthumb.c +76 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/simple/ia64.c +112 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/simple/powerpc.c +75 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/simple/simple_coder.c +282 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/simple/simple_coder.h +72 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/simple/simple_decoder.c +40 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/simple/simple_decoder.h +22 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/simple/simple_encoder.c +38 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/simple/simple_encoder.h +23 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/simple/simple_private.h +74 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/simple/sparc.c +83 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/simple/x86.c +159 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/validate_map.sh +68 -0
- data/vendor/git.tukaani.org/xz/src/lzmainfo/Makefile.am +39 -0
- data/vendor/git.tukaani.org/xz/src/lzmainfo/lzmainfo.1 +60 -0
- data/vendor/git.tukaani.org/xz/src/lzmainfo/lzmainfo.c +219 -0
- data/vendor/git.tukaani.org/xz/src/lzmainfo/lzmainfo_w32res.rc +12 -0
- data/vendor/git.tukaani.org/xz/src/scripts/Makefile.am +55 -0
- data/vendor/git.tukaani.org/xz/src/scripts/xzdiff.1 +77 -0
- data/vendor/git.tukaani.org/xz/src/scripts/xzdiff.in +200 -0
- data/vendor/git.tukaani.org/xz/src/scripts/xzgrep.1 +98 -0
- data/vendor/git.tukaani.org/xz/src/scripts/xzgrep.in +215 -0
- data/vendor/git.tukaani.org/xz/src/scripts/xzless.1 +69 -0
- data/vendor/git.tukaani.org/xz/src/scripts/xzless.in +58 -0
- data/vendor/git.tukaani.org/xz/src/scripts/xzmore.1 +55 -0
- data/vendor/git.tukaani.org/xz/src/scripts/xzmore.in +78 -0
- data/vendor/git.tukaani.org/xz/src/xz/Makefile.am +111 -0
- data/vendor/git.tukaani.org/xz/src/xz/args.c +700 -0
- data/vendor/git.tukaani.org/xz/src/xz/args.h +44 -0
- data/vendor/git.tukaani.org/xz/src/xz/coder.c +936 -0
- data/vendor/git.tukaani.org/xz/src/xz/coder.h +76 -0
- data/vendor/git.tukaani.org/xz/src/xz/file_io.c +1300 -0
- data/vendor/git.tukaani.org/xz/src/xz/file_io.h +156 -0
- data/vendor/git.tukaani.org/xz/src/xz/hardware.c +150 -0
- data/vendor/git.tukaani.org/xz/src/xz/hardware.h +37 -0
- data/vendor/git.tukaani.org/xz/src/xz/list.c +1192 -0
- data/vendor/git.tukaani.org/xz/src/xz/list.h +18 -0
- data/vendor/git.tukaani.org/xz/src/xz/main.c +330 -0
- data/vendor/git.tukaani.org/xz/src/xz/main.h +30 -0
- data/vendor/git.tukaani.org/xz/src/xz/message.c +1258 -0
- data/vendor/git.tukaani.org/xz/src/xz/message.h +167 -0
- data/vendor/git.tukaani.org/xz/src/xz/mytime.c +89 -0
- data/vendor/git.tukaani.org/xz/src/xz/mytime.h +47 -0
- data/vendor/git.tukaani.org/xz/src/xz/options.c +363 -0
- data/vendor/git.tukaani.org/xz/src/xz/options.h +31 -0
- data/vendor/git.tukaani.org/xz/src/xz/private.h +66 -0
- data/vendor/git.tukaani.org/xz/src/xz/signals.c +209 -0
- data/vendor/git.tukaani.org/xz/src/xz/signals.h +43 -0
- data/vendor/git.tukaani.org/xz/src/xz/suffix.c +399 -0
- data/vendor/git.tukaani.org/xz/src/xz/suffix.h +28 -0
- data/vendor/git.tukaani.org/xz/src/xz/util.c +288 -0
- data/vendor/git.tukaani.org/xz/src/xz/util.h +123 -0
- data/vendor/git.tukaani.org/xz/src/xz/xz.1 +2786 -0
- data/vendor/git.tukaani.org/xz/src/xz/xz_w32res.rc +12 -0
- data/vendor/git.tukaani.org/xz/src/xzdec/Makefile.am +82 -0
- data/vendor/git.tukaani.org/xz/src/xzdec/lzmadec_w32res.rc +12 -0
- data/vendor/git.tukaani.org/xz/src/xzdec/xzdec.1 +146 -0
- data/vendor/git.tukaani.org/xz/src/xzdec/xzdec.c +323 -0
- data/vendor/git.tukaani.org/xz/src/xzdec/xzdec_w32res.rc +12 -0
- data/vendor/git.tukaani.org/xz/tests/Makefile.am +57 -0
- data/vendor/git.tukaani.org/xz/tests/bcj_test.c +65 -0
- data/vendor/git.tukaani.org/xz/tests/compress_prepared_bcj_sparc +0 -0
- data/vendor/git.tukaani.org/xz/tests/compress_prepared_bcj_x86 +0 -0
- data/vendor/git.tukaani.org/xz/tests/create_compress_files.c +158 -0
- data/vendor/git.tukaani.org/xz/tests/files/README +240 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-0-backward_size.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-0-empty-truncated.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-0-footer_magic.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-0-header_magic.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-0-nonempty_index.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-0cat-alone.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-0cat-header_magic.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-0catpad-empty.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-0pad-empty.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-1-block_header-1.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-1-block_header-2.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-1-block_header-3.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-1-block_header-4.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-1-block_header-5.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-1-block_header-6.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-1-check-crc32.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-1-check-crc64.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-1-check-sha256.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-1-lzma2-1.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-1-lzma2-2.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-1-lzma2-3.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-1-lzma2-4.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-1-lzma2-5.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-1-lzma2-6.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-1-lzma2-7.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-1-lzma2-8.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-1-stream_flags-1.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-1-stream_flags-2.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-1-stream_flags-3.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-1-vli-1.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-1-vli-2.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-2-compressed_data_padding.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-2-index-1.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-2-index-2.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-2-index-3.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-2-index-4.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-2-index-5.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/good-0-empty.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/good-0cat-empty.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/good-0catpad-empty.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/good-0pad-empty.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/good-1-3delta-lzma2.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/good-1-block_header-1.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/good-1-block_header-2.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/good-1-block_header-3.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/good-1-check-crc32.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/good-1-check-crc64.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/good-1-check-none.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/good-1-check-sha256.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/good-1-delta-lzma2.tiff.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/good-1-lzma2-1.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/good-1-lzma2-2.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/good-1-lzma2-3.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/good-1-lzma2-4.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/good-1-lzma2-5.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/good-1-sparc-lzma2.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/good-1-x86-lzma2.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/good-2-lzma2.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/unsupported-block_header.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/unsupported-check.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/unsupported-filter_flags-1.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/unsupported-filter_flags-2.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/unsupported-filter_flags-3.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/test_bcj_exact_size.c +113 -0
- data/vendor/git.tukaani.org/xz/tests/test_block_header.c +240 -0
- data/vendor/git.tukaani.org/xz/tests/test_check.c +83 -0
- data/vendor/git.tukaani.org/xz/tests/test_compress.sh +142 -0
- data/vendor/git.tukaani.org/xz/tests/test_files.sh +57 -0
- data/vendor/git.tukaani.org/xz/tests/test_filter_flags.c +258 -0
- data/vendor/git.tukaani.org/xz/tests/test_index.c +689 -0
- data/vendor/git.tukaani.org/xz/tests/test_scripts.sh +76 -0
- data/vendor/git.tukaani.org/xz/tests/test_stream_flags.c +180 -0
- data/vendor/git.tukaani.org/xz/tests/tests.h +124 -0
- data/vendor/git.tukaani.org/xz/tests/xzgrep_expected_output +39 -0
- data/vendor/git.tukaani.org/xz/windows/INSTALL-MSVC.txt +47 -0
- data/vendor/git.tukaani.org/xz/windows/INSTALL-MinGW.txt +138 -0
- data/vendor/git.tukaani.org/xz/windows/README-Windows.txt +122 -0
- data/vendor/git.tukaani.org/xz/windows/build.bash +203 -0
- data/vendor/git.tukaani.org/xz/windows/vs2013/config.h +148 -0
- data/vendor/git.tukaani.org/xz/windows/vs2013/liblzma.vcxproj +354 -0
- data/vendor/git.tukaani.org/xz/windows/vs2013/liblzma_dll.vcxproj +383 -0
- data/vendor/git.tukaani.org/xz/windows/vs2013/xz_win.sln +48 -0
- data/vendor/git.tukaani.org/xz/windows/vs2017/config.h +148 -0
- data/vendor/git.tukaani.org/xz/windows/vs2017/liblzma.vcxproj +355 -0
- data/vendor/git.tukaani.org/xz/windows/vs2017/liblzma_dll.vcxproj +384 -0
- data/vendor/git.tukaani.org/xz/windows/vs2017/xz_win.sln +48 -0
- metadata +457 -0
@@ -0,0 +1,71 @@
|
|
1
|
+
# getopt.m4 serial 14 (modified version)
|
2
|
+
dnl Copyright (C) 2002-2006, 2008 Free Software Foundation, Inc.
|
3
|
+
dnl This file is free software; the Free Software Foundation
|
4
|
+
dnl gives unlimited permission to copy and/or distribute it,
|
5
|
+
dnl with or without modifications, as long as this notice is preserved.
|
6
|
+
|
7
|
+
# The getopt module assume you want GNU getopt, with getopt_long etc,
|
8
|
+
# rather than vanilla POSIX getopt. This means your code should
|
9
|
+
# always include <getopt.h> for the getopt prototypes.
|
10
|
+
|
11
|
+
AC_DEFUN([gl_GETOPT_SUBSTITUTE],
|
12
|
+
[
|
13
|
+
AC_LIBOBJ([getopt])
|
14
|
+
AC_LIBOBJ([getopt1])
|
15
|
+
gl_GETOPT_SUBSTITUTE_HEADER
|
16
|
+
])
|
17
|
+
|
18
|
+
AC_DEFUN([gl_GETOPT_SUBSTITUTE_HEADER],
|
19
|
+
[
|
20
|
+
GETOPT_H=getopt.h
|
21
|
+
AC_DEFINE([__GETOPT_PREFIX], [[rpl_]],
|
22
|
+
[Define to rpl_ if the getopt replacement functions and variables
|
23
|
+
should be used.])
|
24
|
+
AC_SUBST([GETOPT_H])
|
25
|
+
])
|
26
|
+
|
27
|
+
AC_DEFUN([gl_GETOPT_CHECK_HEADERS],
|
28
|
+
[
|
29
|
+
if test -z "$GETOPT_H"; then
|
30
|
+
AC_CHECK_HEADERS([getopt.h], [], [GETOPT_H=getopt.h])
|
31
|
+
fi
|
32
|
+
|
33
|
+
if test -z "$GETOPT_H"; then
|
34
|
+
AC_CHECK_FUNCS([getopt_long], [], [GETOPT_H=getopt.h])
|
35
|
+
fi
|
36
|
+
|
37
|
+
dnl BSD getopt_long uses a way to reset option processing, that is different
|
38
|
+
dnl from GNU and Solaris (which copied the GNU behavior). We support both
|
39
|
+
dnl GNU and BSD style resetting of getopt_long(), so there's no need to use
|
40
|
+
dnl GNU getopt_long() on BSD due to different resetting style.
|
41
|
+
dnl
|
42
|
+
dnl With getopt_long(), some BSD versions have a bug in handling optional
|
43
|
+
dnl arguments. This bug appears only if the environment variable
|
44
|
+
dnl POSIXLY_CORRECT has been set, so it shouldn't be too bad in most
|
45
|
+
dnl cases; probably most don't have that variable set. But if we actually
|
46
|
+
dnl hit this bug, it is a real problem due to our heavy use of optional
|
47
|
+
dnl arguments.
|
48
|
+
dnl
|
49
|
+
dnl According to CVS logs, the bug was introduced in OpenBSD in 2003-09-22
|
50
|
+
dnl and copied to FreeBSD in 2004-02-24. It was fixed in both in 2006-09-22,
|
51
|
+
dnl so the affected versions shouldn't be popular anymore anyway. NetBSD
|
52
|
+
dnl never had this bug. TODO: What about Darwin and others?
|
53
|
+
if test -z "$GETOPT_H"; then
|
54
|
+
AC_CHECK_DECL([optreset],
|
55
|
+
[AC_DEFINE([HAVE_OPTRESET], 1,
|
56
|
+
[Define to 1 if getopt.h declares extern int optreset.])],
|
57
|
+
[], [#include <getopt.h>])
|
58
|
+
fi
|
59
|
+
|
60
|
+
dnl Solaris 10 getopt doesn't handle `+' as a leading character in an
|
61
|
+
dnl option string (as of 2005-05-05). We don't use that feature, so this
|
62
|
+
dnl is not a problem for us. Thus, the respective test was removed here.
|
63
|
+
])
|
64
|
+
|
65
|
+
AC_DEFUN([gl_GETOPT_IFELSE],
|
66
|
+
[
|
67
|
+
AC_REQUIRE([gl_GETOPT_CHECK_HEADERS])
|
68
|
+
AS_IF([test -n "$GETOPT_H"], [$1], [$2])
|
69
|
+
])
|
70
|
+
|
71
|
+
AC_DEFUN([gl_GETOPT], [gl_GETOPT_IFELSE([gl_GETOPT_SUBSTITUTE])])
|
@@ -0,0 +1,63 @@
|
|
1
|
+
# Find a POSIX-conforming shell.
|
2
|
+
|
3
|
+
# Copyright (C) 2007-2008 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
|
+
# Written by Paul Eggert.
|
10
|
+
|
11
|
+
# If a POSIX-conforming shell can be found, set POSIX_SHELL and
|
12
|
+
# PREFERABLY_POSIX_SHELL to it. If not, set POSIX_SHELL to the
|
13
|
+
# empty string and PREFERABLY_POSIX_SHELL to '/bin/sh'.
|
14
|
+
|
15
|
+
AC_DEFUN([gl_POSIX_SHELL],
|
16
|
+
[
|
17
|
+
AC_CACHE_CHECK([for a shell that conforms to POSIX], [gl_cv_posix_shell],
|
18
|
+
[gl_test_posix_shell_script='
|
19
|
+
func_return () {
|
20
|
+
(exit [$]1)
|
21
|
+
}
|
22
|
+
func_success () {
|
23
|
+
func_return 0
|
24
|
+
}
|
25
|
+
func_failure () {
|
26
|
+
func_return 1
|
27
|
+
}
|
28
|
+
func_ret_success () {
|
29
|
+
return 0
|
30
|
+
}
|
31
|
+
func_ret_failure () {
|
32
|
+
return 1
|
33
|
+
}
|
34
|
+
subshell_umask_sanity () {
|
35
|
+
(umask 22; (umask 0); test $(umask) -eq 22)
|
36
|
+
}
|
37
|
+
test "[$](echo foo)" = foo &&
|
38
|
+
func_success &&
|
39
|
+
! func_failure &&
|
40
|
+
func_ret_success &&
|
41
|
+
! func_ret_failure &&
|
42
|
+
(set x && func_ret_success y && test x = "[$]1") &&
|
43
|
+
subshell_umask_sanity
|
44
|
+
'
|
45
|
+
for gl_cv_posix_shell in \
|
46
|
+
"$CONFIG_SHELL" "$SHELL" /bin/sh /bin/bash /bin/ksh /bin/sh5 no; do
|
47
|
+
case $gl_cv_posix_shell in
|
48
|
+
/*)
|
49
|
+
"$gl_cv_posix_shell" -c "$gl_test_posix_shell_script" 2>/dev/null \
|
50
|
+
&& break;;
|
51
|
+
esac
|
52
|
+
done])
|
53
|
+
|
54
|
+
if test "$gl_cv_posix_shell" != no; then
|
55
|
+
POSIX_SHELL=$gl_cv_posix_shell
|
56
|
+
PREFERABLY_POSIX_SHELL=$POSIX_SHELL
|
57
|
+
else
|
58
|
+
POSIX_SHELL=
|
59
|
+
PREFERABLY_POSIX_SHELL=/bin/sh
|
60
|
+
fi
|
61
|
+
AC_SUBST([POSIX_SHELL])
|
62
|
+
AC_SUBST([PREFERABLY_POSIX_SHELL])
|
63
|
+
])
|
@@ -0,0 +1,22 @@
|
|
1
|
+
#
|
2
|
+
# SYNOPSIS
|
3
|
+
#
|
4
|
+
# TUKLIB_COMMON
|
5
|
+
#
|
6
|
+
# DESCRIPTION
|
7
|
+
#
|
8
|
+
# Common checks for tuklib.
|
9
|
+
#
|
10
|
+
# COPYING
|
11
|
+
#
|
12
|
+
# Author: Lasse Collin
|
13
|
+
#
|
14
|
+
# This file has been put into the public domain.
|
15
|
+
# You can do whatever you want with this file.
|
16
|
+
#
|
17
|
+
|
18
|
+
AC_DEFUN_ONCE([TUKLIB_COMMON], [
|
19
|
+
AC_REQUIRE([AC_CANONICAL_HOST])
|
20
|
+
AC_REQUIRE([AC_PROG_CC_C99])
|
21
|
+
AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
|
22
|
+
])dnl
|
@@ -0,0 +1,176 @@
|
|
1
|
+
#
|
2
|
+
# SYNOPSIS
|
3
|
+
#
|
4
|
+
# TUKLIB_CPUCORES
|
5
|
+
#
|
6
|
+
# DESCRIPTION
|
7
|
+
#
|
8
|
+
# Check how to find out the number of available CPU cores in the system.
|
9
|
+
# This information is used by tuklib_cpucores.c.
|
10
|
+
#
|
11
|
+
# Supported methods:
|
12
|
+
# - GetSystemInfo(): Windows (including Cygwin)
|
13
|
+
# - sched_getaffinity(): glibc (GNU/Linux, GNU/kFreeBSD)
|
14
|
+
# - cpuset_getaffinity(): FreeBSD
|
15
|
+
# - sysctl(): BSDs, OS/2
|
16
|
+
# - sysconf(): GNU/Linux, Solaris, Tru64, IRIX, AIX, QNX, Cygwin (but
|
17
|
+
# GetSystemInfo() is used on Cygwin)
|
18
|
+
# - pstat_getdynamic(): HP-UX
|
19
|
+
#
|
20
|
+
# COPYING
|
21
|
+
#
|
22
|
+
# Author: Lasse Collin
|
23
|
+
#
|
24
|
+
# This file has been put into the public domain.
|
25
|
+
# You can do whatever you want with this file.
|
26
|
+
#
|
27
|
+
|
28
|
+
AC_DEFUN_ONCE([TUKLIB_CPUCORES], [
|
29
|
+
AC_REQUIRE([TUKLIB_COMMON])
|
30
|
+
|
31
|
+
# sys/param.h might be needed by sys/sysctl.h.
|
32
|
+
AC_CHECK_HEADERS([sys/param.h])
|
33
|
+
|
34
|
+
AC_CACHE_CHECK([how to detect the number of available CPU cores],
|
35
|
+
[tuklib_cv_cpucores_method], [
|
36
|
+
|
37
|
+
# Maybe checking $host_os would be enough but this matches what
|
38
|
+
# tuklib_cpucores.c does.
|
39
|
+
#
|
40
|
+
# NOTE: IRIX has a compiler that doesn't error out with #error, so use
|
41
|
+
# a non-compilable text instead of #error to generate an error.
|
42
|
+
AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
|
43
|
+
#if defined(_WIN32) || defined(__CYGWIN__)
|
44
|
+
int main(void) { return 0; }
|
45
|
+
#else
|
46
|
+
compile error
|
47
|
+
#endif
|
48
|
+
]])], [tuklib_cv_cpucores_method=special], [
|
49
|
+
|
50
|
+
# glibc-based systems (GNU/Linux and GNU/kFreeBSD) have sched_getaffinity().
|
51
|
+
# The CPU_COUNT() macro was added in glibc 2.9 so we try to link the
|
52
|
+
# test program instead of merely compiling it. glibc 2.9 is old enough that
|
53
|
+
# if someone uses the code on older glibc, the fallback to sysconf() should
|
54
|
+
# be good enough.
|
55
|
+
AC_LINK_IFELSE([AC_LANG_SOURCE([[
|
56
|
+
#include <sched.h>
|
57
|
+
int
|
58
|
+
main(void)
|
59
|
+
{
|
60
|
+
cpu_set_t cpu_mask;
|
61
|
+
sched_getaffinity(0, sizeof(cpu_mask), &cpu_mask);
|
62
|
+
return CPU_COUNT(&cpu_mask);
|
63
|
+
}
|
64
|
+
]])], [tuklib_cv_cpucores_method=sched_getaffinity], [
|
65
|
+
|
66
|
+
# FreeBSD has both cpuset and sysctl. Look for cpuset first because
|
67
|
+
# it's a better approach.
|
68
|
+
#
|
69
|
+
# This test would match on GNU/kFreeBSD too but it would require
|
70
|
+
# -lfreebsd-glue when linking and thus in the current form this would
|
71
|
+
# fail on GNU/kFreeBSD. The above test for sched_getaffinity() matches
|
72
|
+
# on GNU/kFreeBSD so the test below should never run on that OS.
|
73
|
+
AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
|
74
|
+
#include <sys/param.h>
|
75
|
+
#include <sys/cpuset.h>
|
76
|
+
|
77
|
+
int
|
78
|
+
main(void)
|
79
|
+
{
|
80
|
+
cpuset_t set;
|
81
|
+
cpuset_getaffinity(CPU_LEVEL_WHICH, CPU_WHICH_PID, -1,
|
82
|
+
sizeof(set), &set);
|
83
|
+
return 0;
|
84
|
+
}
|
85
|
+
]])], [tuklib_cv_cpucores_method=cpuset], [
|
86
|
+
|
87
|
+
# On OS/2, both sysconf() and sysctl() pass the tests in this file,
|
88
|
+
# but only sysctl() works. On QNX it's the opposite: only sysconf() works
|
89
|
+
# (although it assumes that _POSIX_SOURCE, _XOPEN_SOURCE, and _POSIX_C_SOURCE
|
90
|
+
# are undefined or alternatively _QNX_SOURCE is defined).
|
91
|
+
#
|
92
|
+
# We test sysctl() first and intentionally break the sysctl() test on QNX
|
93
|
+
# so that sysctl() is never used on QNX.
|
94
|
+
AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
|
95
|
+
#ifdef __QNX__
|
96
|
+
compile error
|
97
|
+
#endif
|
98
|
+
#include <sys/types.h>
|
99
|
+
#ifdef HAVE_SYS_PARAM_H
|
100
|
+
# include <sys/param.h>
|
101
|
+
#endif
|
102
|
+
#include <sys/sysctl.h>
|
103
|
+
int
|
104
|
+
main(void)
|
105
|
+
{
|
106
|
+
int name[2] = { CTL_HW, HW_NCPU };
|
107
|
+
int cpus;
|
108
|
+
size_t cpus_size = sizeof(cpus);
|
109
|
+
sysctl(name, 2, &cpus, &cpus_size, NULL, 0);
|
110
|
+
return 0;
|
111
|
+
}
|
112
|
+
]])], [tuklib_cv_cpucores_method=sysctl], [
|
113
|
+
|
114
|
+
AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
|
115
|
+
#include <unistd.h>
|
116
|
+
int
|
117
|
+
main(void)
|
118
|
+
{
|
119
|
+
long i;
|
120
|
+
#ifdef _SC_NPROCESSORS_ONLN
|
121
|
+
/* Many systems using sysconf() */
|
122
|
+
i = sysconf(_SC_NPROCESSORS_ONLN);
|
123
|
+
#else
|
124
|
+
/* IRIX */
|
125
|
+
i = sysconf(_SC_NPROC_ONLN);
|
126
|
+
#endif
|
127
|
+
return 0;
|
128
|
+
}
|
129
|
+
]])], [tuklib_cv_cpucores_method=sysconf], [
|
130
|
+
|
131
|
+
AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
|
132
|
+
#include <sys/param.h>
|
133
|
+
#include <sys/pstat.h>
|
134
|
+
|
135
|
+
int
|
136
|
+
main(void)
|
137
|
+
{
|
138
|
+
struct pst_dynamic pst;
|
139
|
+
pstat_getdynamic(&pst, sizeof(pst), 1, 0);
|
140
|
+
(void)pst.psd_proc_cnt;
|
141
|
+
return 0;
|
142
|
+
}
|
143
|
+
]])], [tuklib_cv_cpucores_method=pstat_getdynamic], [
|
144
|
+
|
145
|
+
tuklib_cv_cpucores_method=unknown
|
146
|
+
])])])])])])])
|
147
|
+
|
148
|
+
case $tuklib_cv_cpucores_method in
|
149
|
+
sched_getaffinity)
|
150
|
+
AC_DEFINE([TUKLIB_CPUCORES_SCHED_GETAFFINITY], [1],
|
151
|
+
[Define to 1 if the number of available CPU cores
|
152
|
+
can be detected with sched_getaffinity()])
|
153
|
+
;;
|
154
|
+
cpuset)
|
155
|
+
AC_DEFINE([TUKLIB_CPUCORES_CPUSET], [1],
|
156
|
+
[Define to 1 if the number of available CPU cores
|
157
|
+
can be detected with cpuset(2).])
|
158
|
+
;;
|
159
|
+
sysctl)
|
160
|
+
AC_DEFINE([TUKLIB_CPUCORES_SYSCTL], [1],
|
161
|
+
[Define to 1 if the number of available CPU cores
|
162
|
+
can be detected with sysctl().])
|
163
|
+
;;
|
164
|
+
sysconf)
|
165
|
+
AC_DEFINE([TUKLIB_CPUCORES_SYSCONF], [1],
|
166
|
+
[Define to 1 if the number of available CPU cores
|
167
|
+
can be detected with sysconf(_SC_NPROCESSORS_ONLN)
|
168
|
+
or sysconf(_SC_NPROC_ONLN).])
|
169
|
+
;;
|
170
|
+
pstat_getdynamic)
|
171
|
+
AC_DEFINE([TUKLIB_CPUCORES_PSTAT_GETDYNAMIC], [1],
|
172
|
+
[Define to 1 if the number of available CPU cores
|
173
|
+
can be detected with pstat_getdynamic().])
|
174
|
+
;;
|
175
|
+
esac
|
176
|
+
])dnl
|
@@ -0,0 +1,74 @@
|
|
1
|
+
#
|
2
|
+
# SYNOPSIS
|
3
|
+
#
|
4
|
+
# TUKLIB_INTEGER
|
5
|
+
#
|
6
|
+
# DESCRIPTION
|
7
|
+
#
|
8
|
+
# Checks for tuklib_integer.h:
|
9
|
+
# - Endianness
|
10
|
+
# - Does operating system provide byte swapping macros
|
11
|
+
# - Does the hardware support fast unaligned access to 16-bit
|
12
|
+
# and 32-bit integers
|
13
|
+
#
|
14
|
+
# COPYING
|
15
|
+
#
|
16
|
+
# Author: Lasse Collin
|
17
|
+
#
|
18
|
+
# This file has been put into the public domain.
|
19
|
+
# You can do whatever you want with this file.
|
20
|
+
#
|
21
|
+
|
22
|
+
AC_DEFUN_ONCE([TUKLIB_INTEGER], [
|
23
|
+
AC_REQUIRE([TUKLIB_COMMON])
|
24
|
+
AC_REQUIRE([AC_C_BIGENDIAN])
|
25
|
+
AC_CHECK_HEADERS([byteswap.h sys/endian.h sys/byteorder.h], [break])
|
26
|
+
|
27
|
+
# Even if we have byteswap.h, we may lack the specific macros/functions.
|
28
|
+
if test x$ac_cv_header_byteswap_h = xyes ; then
|
29
|
+
m4_foreach([FUNC], [bswap_16,bswap_32,bswap_64], [
|
30
|
+
AC_MSG_CHECKING([if FUNC is available])
|
31
|
+
AC_LINK_IFELSE([AC_LANG_SOURCE([
|
32
|
+
#include <byteswap.h>
|
33
|
+
int
|
34
|
+
main(void)
|
35
|
+
{
|
36
|
+
FUNC[](42);
|
37
|
+
return 0;
|
38
|
+
}
|
39
|
+
])], [
|
40
|
+
AC_DEFINE(HAVE_[]m4_toupper(FUNC), [1],
|
41
|
+
[Define to 1 if] FUNC [is available.])
|
42
|
+
AC_MSG_RESULT([yes])
|
43
|
+
], [AC_MSG_RESULT([no])])
|
44
|
+
|
45
|
+
])dnl
|
46
|
+
fi
|
47
|
+
|
48
|
+
AC_MSG_CHECKING([if unaligned memory access should be used])
|
49
|
+
AC_ARG_ENABLE([unaligned-access], AS_HELP_STRING([--enable-unaligned-access],
|
50
|
+
[Enable if the system supports *fast* unaligned memory access
|
51
|
+
with 16-bit and 32-bit integers. By default, this is enabled
|
52
|
+
only on x86, x86_64, and big endian PowerPC.]),
|
53
|
+
[], [enable_unaligned_access=auto])
|
54
|
+
if test "x$enable_unaligned_access" = xauto ; then
|
55
|
+
# TODO: There may be other architectures, on which unaligned access
|
56
|
+
# is OK.
|
57
|
+
case $host_cpu in
|
58
|
+
i?86|x86_64|powerpc|powerpc64)
|
59
|
+
enable_unaligned_access=yes
|
60
|
+
;;
|
61
|
+
*)
|
62
|
+
enable_unaligned_access=no
|
63
|
+
;;
|
64
|
+
esac
|
65
|
+
fi
|
66
|
+
if test "x$enable_unaligned_access" = xyes ; then
|
67
|
+
AC_DEFINE([TUKLIB_FAST_UNALIGNED_ACCESS], [1], [Define to 1 if
|
68
|
+
the system supports fast unaligned access to 16-bit and
|
69
|
+
32-bit integers.])
|
70
|
+
AC_MSG_RESULT([yes])
|
71
|
+
else
|
72
|
+
AC_MSG_RESULT([no])
|
73
|
+
fi
|
74
|
+
])dnl
|
@@ -0,0 +1,30 @@
|
|
1
|
+
#
|
2
|
+
# SYNOPSIS
|
3
|
+
#
|
4
|
+
# TUKLIB_MBSTR
|
5
|
+
#
|
6
|
+
# DESCRIPTION
|
7
|
+
#
|
8
|
+
# Check if multibyte and wide character functionality is available
|
9
|
+
# for use by tuklib_mbstr_* functions. If not enough multibyte string
|
10
|
+
# support is available in the C library, the functions keep working
|
11
|
+
# with the assumption that all strings are a in single-byte character
|
12
|
+
# set without combining characters, e.g. US-ASCII or ISO-8859-*.
|
13
|
+
#
|
14
|
+
# This .m4 file and tuklib_mbstr.h are common to all tuklib_mbstr_*
|
15
|
+
# functions, but each function is put into a separate .c file so
|
16
|
+
# that it is possible to pick only what is strictly needed.
|
17
|
+
#
|
18
|
+
# COPYING
|
19
|
+
#
|
20
|
+
# Author: Lasse Collin
|
21
|
+
#
|
22
|
+
# This file has been put into the public domain.
|
23
|
+
# You can do whatever you want with this file.
|
24
|
+
#
|
25
|
+
|
26
|
+
AC_DEFUN_ONCE([TUKLIB_MBSTR], [
|
27
|
+
AC_REQUIRE([TUKLIB_COMMON])
|
28
|
+
AC_FUNC_MBRTOWC
|
29
|
+
AC_CHECK_FUNCS([wcwidth])
|
30
|
+
])dnl
|
@@ -0,0 +1,212 @@
|
|
1
|
+
#
|
2
|
+
# SYNOPSIS
|
3
|
+
#
|
4
|
+
# TUKLIB_PHYSMEM
|
5
|
+
#
|
6
|
+
# DESCRIPTION
|
7
|
+
#
|
8
|
+
# Check how to get the amount of physical memory.
|
9
|
+
# This information is used in tuklib_physmem.c.
|
10
|
+
#
|
11
|
+
# Supported methods:
|
12
|
+
#
|
13
|
+
# - Windows (including Cygwin), OS/2, DJGPP (DOS), OpenVMS, AROS,
|
14
|
+
# and QNX have operating-system specific functions.
|
15
|
+
#
|
16
|
+
# - AIX has _system_configuration.physmem.
|
17
|
+
#
|
18
|
+
# - sysconf() works on GNU/Linux and Solaris, and possibly on
|
19
|
+
# some BSDs.
|
20
|
+
#
|
21
|
+
# - BSDs use sysctl().
|
22
|
+
#
|
23
|
+
# - Tru64 uses getsysinfo().
|
24
|
+
#
|
25
|
+
# - HP-UX uses pstat_getstatic().
|
26
|
+
#
|
27
|
+
# - IRIX has setinvent_r(), getinvent_r(), and endinvent_r().
|
28
|
+
#
|
29
|
+
# - sysinfo() works on Linux/dietlibc and probably on other Linux
|
30
|
+
# systems whose libc may lack sysconf().
|
31
|
+
#
|
32
|
+
# COPYING
|
33
|
+
#
|
34
|
+
# Author: Lasse Collin
|
35
|
+
#
|
36
|
+
# This file has been put into the public domain.
|
37
|
+
# You can do whatever you want with this file.
|
38
|
+
#
|
39
|
+
|
40
|
+
AC_DEFUN_ONCE([TUKLIB_PHYSMEM], [
|
41
|
+
AC_REQUIRE([TUKLIB_COMMON])
|
42
|
+
|
43
|
+
# sys/param.h might be needed by sys/sysctl.h.
|
44
|
+
AC_CHECK_HEADERS([sys/param.h])
|
45
|
+
|
46
|
+
AC_CACHE_CHECK([how to detect the amount of physical memory],
|
47
|
+
[tuklib_cv_physmem_method], [
|
48
|
+
|
49
|
+
# Maybe checking $host_os would be enough but this matches what
|
50
|
+
# tuklib_physmem.c does.
|
51
|
+
#
|
52
|
+
# NOTE: IRIX has a compiler that doesn't error out with #error, so use
|
53
|
+
# a non-compilable text instead of #error to generate an error.
|
54
|
+
AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
|
55
|
+
#if defined(_WIN32) || defined(__CYGWIN__) || defined(__OS2__) \
|
56
|
+
|| defined(__DJGPP__) || defined(__VMS) \
|
57
|
+
|| defined(AMIGA) || defined(__AROS__) || defined(__QNX__)
|
58
|
+
int main(void) { return 0; }
|
59
|
+
#else
|
60
|
+
compile error
|
61
|
+
#endif
|
62
|
+
]])], [tuklib_cv_physmem_method=special], [
|
63
|
+
|
64
|
+
# Look for AIX-specific solution before sysconf(), because the test
|
65
|
+
# for sysconf() will pass on AIX but won't actually work
|
66
|
+
# (sysconf(_SC_PHYS_PAGES) compiles but always returns -1 on AIX).
|
67
|
+
AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
|
68
|
+
#include <sys/systemcfg.h>
|
69
|
+
|
70
|
+
int
|
71
|
+
main(void)
|
72
|
+
{
|
73
|
+
(void)_system_configuration.physmem;
|
74
|
+
return 0;
|
75
|
+
}
|
76
|
+
]])], [tuklib_cv_physmem_method=aix], [
|
77
|
+
|
78
|
+
AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
|
79
|
+
#include <unistd.h>
|
80
|
+
int
|
81
|
+
main(void)
|
82
|
+
{
|
83
|
+
long i;
|
84
|
+
i = sysconf(_SC_PAGESIZE);
|
85
|
+
i = sysconf(_SC_PHYS_PAGES);
|
86
|
+
return 0;
|
87
|
+
}
|
88
|
+
]])], [tuklib_cv_physmem_method=sysconf], [
|
89
|
+
|
90
|
+
AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
|
91
|
+
#include <sys/types.h>
|
92
|
+
#ifdef HAVE_SYS_PARAM_H
|
93
|
+
# include <sys/param.h>
|
94
|
+
#endif
|
95
|
+
#include <sys/sysctl.h>
|
96
|
+
int
|
97
|
+
main(void)
|
98
|
+
{
|
99
|
+
int name[2] = { CTL_HW, HW_PHYSMEM };
|
100
|
+
unsigned long mem;
|
101
|
+
size_t mem_ptr_size = sizeof(mem);
|
102
|
+
sysctl(name, 2, &mem, &mem_ptr_size, NULL, 0);
|
103
|
+
return 0;
|
104
|
+
}
|
105
|
+
]])], [tuklib_cv_physmem_method=sysctl], [
|
106
|
+
|
107
|
+
AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
|
108
|
+
#include <sys/sysinfo.h>
|
109
|
+
#include <machine/hal_sysinfo.h>
|
110
|
+
|
111
|
+
int
|
112
|
+
main(void)
|
113
|
+
{
|
114
|
+
int memkb;
|
115
|
+
int start = 0;
|
116
|
+
getsysinfo(GSI_PHYSMEM, (caddr_t)&memkb, sizeof(memkb), &start);
|
117
|
+
return 0;
|
118
|
+
}
|
119
|
+
]])], [tuklib_cv_physmem_method=getsysinfo],[
|
120
|
+
|
121
|
+
AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
|
122
|
+
#include <sys/param.h>
|
123
|
+
#include <sys/pstat.h>
|
124
|
+
|
125
|
+
int
|
126
|
+
main(void)
|
127
|
+
{
|
128
|
+
struct pst_static pst;
|
129
|
+
pstat_getstatic(&pst, sizeof(pst), 1, 0);
|
130
|
+
(void)pst.physical_memory;
|
131
|
+
(void)pst.page_size;
|
132
|
+
return 0;
|
133
|
+
}
|
134
|
+
]])], [tuklib_cv_physmem_method=pstat_getstatic],[
|
135
|
+
|
136
|
+
AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
|
137
|
+
#include <invent.h>
|
138
|
+
int
|
139
|
+
main(void)
|
140
|
+
{
|
141
|
+
inv_state_t *st = NULL;
|
142
|
+
setinvent_r(&st);
|
143
|
+
getinvent_r(st);
|
144
|
+
endinvent_r(st);
|
145
|
+
return 0;
|
146
|
+
}
|
147
|
+
]])], [tuklib_cv_physmem_method=getinvent_r], [
|
148
|
+
|
149
|
+
# This version of sysinfo() is Linux-specific. Some non-Linux systems have
|
150
|
+
# different sysinfo() so we must check $host_os.
|
151
|
+
case $host_os in
|
152
|
+
linux*)
|
153
|
+
AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
|
154
|
+
#include <sys/sysinfo.h>
|
155
|
+
int
|
156
|
+
main(void)
|
157
|
+
{
|
158
|
+
struct sysinfo si;
|
159
|
+
sysinfo(&si);
|
160
|
+
return 0;
|
161
|
+
}
|
162
|
+
]])], [
|
163
|
+
tuklib_cv_physmem_method=sysinfo
|
164
|
+
], [
|
165
|
+
tuklib_cv_physmem_method=unknown
|
166
|
+
])
|
167
|
+
;;
|
168
|
+
*)
|
169
|
+
tuklib_cv_physmem_method=unknown
|
170
|
+
;;
|
171
|
+
esac
|
172
|
+
])])])])])])])])
|
173
|
+
|
174
|
+
case $tuklib_cv_physmem_method in
|
175
|
+
aix)
|
176
|
+
AC_DEFINE([TUKLIB_PHYSMEM_AIX], [1],
|
177
|
+
[Define to 1 if the amount of physical memory
|
178
|
+
can be detected with _system_configuration.physmem.])
|
179
|
+
;;
|
180
|
+
sysconf)
|
181
|
+
AC_DEFINE([TUKLIB_PHYSMEM_SYSCONF], [1],
|
182
|
+
[Define to 1 if the amount of physical memory can
|
183
|
+
be detected with sysconf(_SC_PAGESIZE) and
|
184
|
+
sysconf(_SC_PHYS_PAGES).])
|
185
|
+
;;
|
186
|
+
sysctl)
|
187
|
+
AC_DEFINE([TUKLIB_PHYSMEM_SYSCTL], [1],
|
188
|
+
[Define to 1 if the amount of physical memory can
|
189
|
+
be detected with sysctl().])
|
190
|
+
;;
|
191
|
+
getsysinfo)
|
192
|
+
AC_DEFINE([TUKLIB_PHYSMEM_GETSYSINFO], [1],
|
193
|
+
[Define to 1 if the amount of physical memory can
|
194
|
+
be detected with getsysinfo().])
|
195
|
+
;;
|
196
|
+
pstat_getstatic)
|
197
|
+
AC_DEFINE([TUKLIB_PHYSMEM_PSTAT_GETSTATIC], [1],
|
198
|
+
[Define to 1 if the amount of physical memory can
|
199
|
+
be detected with pstat_getstatic().])
|
200
|
+
;;
|
201
|
+
getinvent_r)
|
202
|
+
AC_DEFINE([TUKLIB_PHYSMEM_GETINVENT_R], [1],
|
203
|
+
[Define to 1 if the amount of physical memory
|
204
|
+
can be detected with getinvent_r().])
|
205
|
+
;;
|
206
|
+
sysinfo)
|
207
|
+
AC_DEFINE([TUKLIB_PHYSMEM_SYSINFO], [1],
|
208
|
+
[Define to 1 if the amount of physical memory
|
209
|
+
can be detected with Linux sysinfo().])
|
210
|
+
;;
|
211
|
+
esac
|
212
|
+
])dnl
|