libtiff: Merge branch 'move_tools_to_unsupported_a_archive' into 'master'

From eab89a627f0a65e9a1a47c4b30b4802c80b1ac45 Mon Sep 17 00:00:00 2001
From: Su Laus <[EMAIL REDACTED]>
Date: Wed, 16 Aug 2023 13:01:04 +0000
Subject: [PATCH] Move most TIFF tools to archive and keep some as unsupported
 (see #580).

---
 CMakeLists.txt                                |  10 +-
 Makefile.am                                   |   2 +-
 {doc => archive/doc}/tools/fax2ps.rst         |   0
 {doc => archive/doc}/tools/fax2tiff.rst       |   0
 {doc => archive/doc}/tools/pal2rgb.rst        |   0
 {doc => archive/doc}/tools/ppm2tiff.rst       |   0
 {doc => archive/doc}/tools/raw2tiff.rst       |   0
 {doc => archive/doc}/tools/rgb2ycbcr.rst      |   0
 {doc => archive/doc}/tools/thumbnail.rst      |   0
 {doc => archive/doc}/tools/tiff2bw.rst        |   0
 {doc => archive/doc}/tools/tiff2pdf.rst       |   0
 {doc => archive/doc}/tools/tiff2ps.rst        |   0
 {doc => archive/doc}/tools/tiff2rgba.rst      |   0
 {doc => archive/doc}/tools/tiffcmp.rst        |   0
 {doc => archive/doc}/tools/tiffcrop.rst       |   0
 {doc => archive/doc}/tools/tiffdither.rst     |   0
 {doc => archive/doc}/tools/tiffgt.rst         |   0
 {doc => archive/doc}/tools/tiffmedian.rst     |   0
 {test => archive/test}/fax2tiff.sh            |   0
 {test => archive/test}/ppm2tiff_pbm.sh        |   0
 {test => archive/test}/ppm2tiff_pgm.sh        |   0
 {test => archive/test}/ppm2tiff_ppm.sh        |   0
 .../test}/testdeflatelaststripextradata.sh    |   0
 .../test}/tiff2bw-logluv-3c-16b.sh            |   0
 .../test}/tiff2bw-lzw-single-strip.sh         |   0
 .../test}/tiff2bw-minisblack-1c-16b.sh        |   0
 .../test}/tiff2bw-minisblack-1c-8b.sh         |   0
 .../test}/tiff2bw-minisblack-2c-8b-alpha.sh   |   0
 .../test}/tiff2bw-miniswhite-1c-1b.sh         |   0
 ...f2bw-ojpeg_chewey_subsamp21_multi_strip.sh |   0
 ...ojpeg_zackthecat_subsamp22_single_strip.sh |   0
 .../test}/tiff2bw-palette-1c-1b.sh            |   0
 .../test}/tiff2bw-palette-1c-4b.sh            |   0
 .../test}/tiff2bw-palette-1c-8b.sh            |   0
 .../test}/tiff2bw-quad-lzw-compat.sh          |   0
 .../test}/tiff2bw-quad-tile.jpg.sh            |   0
 .../test}/tiff2bw-quad-tile.jpg.t1iff.sh      |   0
 {test => archive/test}/tiff2bw-rgb-3c-16b.sh  |   0
 {test => archive/test}/tiff2bw-rgb-3c-8b.sh   |   0
 {test => archive/test}/tiff2pdf.sh            |   0
 {test => archive/test}/tiff2ps-EPS1.sh        |   0
 {test => archive/test}/tiff2ps-PS1.sh         |   0
 {test => archive/test}/tiff2ps-PS2.sh         |   0
 {test => archive/test}/tiff2ps-PS3.sh         |   0
 .../test}/tiff2rgba-logluv-3c-16b.sh          |   0
 .../test}/tiff2rgba-lzw-single-strip.sh       |   0
 .../test}/tiff2rgba-minisblack-1c-16b.sh      |   0
 .../test}/tiff2rgba-minisblack-1c-8b.sh       |   0
 .../test}/tiff2rgba-minisblack-2c-8b-alpha.sh |   0
 .../test}/tiff2rgba-miniswhite-1c-1b.sh       |   0
 ...rgba-ojpeg_chewey_subsamp21_multi_strip.sh |   0
 ...rgba-ojpeg_single_strip_no_rowsperstrip.sh |   0
 ...ojpeg_zackthecat_subsamp22_single_strip.sh |   0
 .../test}/tiff2rgba-palette-1c-1b.sh          |   0
 .../test}/tiff2rgba-palette-1c-4b.sh          |   0
 .../test}/tiff2rgba-palette-1c-8b.sh          |   0
 .../test}/tiff2rgba-quad-lzw-compat.sh        |   0
 .../test}/tiff2rgba-quad-tile.jpg.sh          |   0
 .../test}/tiff2rgba-quad-tile.jpg.t1iff.sh    |   0
 .../test}/tiff2rgba-rgb-3c-16b.sh             |   0
 {test => archive/test}/tiff2rgba-rgb-3c-8b.sh |   0
 archive/test/tiffcp-g3-1d-fill.sh             |   7 +
 archive/test/tiffcp-g3-1d.sh                  |   6 +
 archive/test/tiffcp-g3-2d-fill.sh             |   7 +
 archive/test/tiffcp-g3-2d.sh                  |   6 +
 archive/test/tiffcp-g3.sh                     |   6 +
 archive/test/tiffcp-g4.sh                     |   6 +
 archive/test/tiffcp-logluv.sh                 |   7 +
 archive/test/tiffcp-lzw-compat.sh             |   6 +
 archive/test/tiffcp-lzw-scanline-decode.sh    |   6 +
 archive/test/tiffcp-split-join.sh             |  16 +
 archive/test/tiffcp-split.sh                  |  13 +
 {test => archive/test}/tiffcp-thumbnail.sh    |   0
 .../test}/tiffcrop-R90-logluv-3c-16b.sh       |   0
 .../test}/tiffcrop-R90-lzw-single-strip.sh    |   0
 .../test}/tiffcrop-R90-minisblack-1c-16b.sh   |   0
 .../test}/tiffcrop-R90-minisblack-1c-8b.sh    |   0
 .../tiffcrop-R90-minisblack-2c-8b-alpha.sh    |   0
 .../test}/tiffcrop-R90-miniswhite-1c-1b.sh    |   0
 ...-R90-ojpeg_chewey_subsamp21_multi_strip.sh |   0
 ...ojpeg_zackthecat_subsamp22_single_strip.sh |   0
 .../test}/tiffcrop-R90-palette-1c-1b.sh       |   0
 .../test}/tiffcrop-R90-palette-1c-4b.sh       |   0
 .../test}/tiffcrop-R90-palette-1c-8b.sh       |   0
 .../test}/tiffcrop-R90-quad-lzw-compat.sh     |   0
 .../test}/tiffcrop-R90-quad-tile.jpg.sh       |   0
 .../test}/tiffcrop-R90-quad-tile.jpg.t1iff.sh |   0
 .../test}/tiffcrop-R90-rgb-3c-16b.sh          |   0
 .../test}/tiffcrop-R90-rgb-3c-8b.sh           |   0
 .../tiffcrop-doubleflip-logluv-3c-16b.sh      |   0
 .../tiffcrop-doubleflip-lzw-single-strip.sh   |   0
 .../tiffcrop-doubleflip-minisblack-1c-16b.sh  |   0
 .../tiffcrop-doubleflip-minisblack-1c-8b.sh   |   0
 ...fcrop-doubleflip-minisblack-2c-8b-alpha.sh |   0
 .../tiffcrop-doubleflip-miniswhite-1c-1b.sh   |   0
 ...flip-ojpeg_chewey_subsamp21_multi_strip.sh |   0
 ...ojpeg_zackthecat_subsamp22_single_strip.sh |   0
 .../tiffcrop-doubleflip-palette-1c-1b.sh      |   0
 .../tiffcrop-doubleflip-palette-1c-4b.sh      |   0
 .../tiffcrop-doubleflip-palette-1c-8b.sh      |   0
 .../tiffcrop-doubleflip-quad-lzw-compat.sh    |   0
 .../tiffcrop-doubleflip-quad-tile.jpg.sh      |   0
 ...tiffcrop-doubleflip-quad-tile.jpg.t1iff.sh |   0
 .../test}/tiffcrop-doubleflip-rgb-3c-16b.sh   |   0
 .../test}/tiffcrop-doubleflip-rgb-3c-8b.sh    |   0
 .../test}/tiffcrop-extract-logluv-3c-16b.sh   |   0
 .../tiffcrop-extract-lzw-single-strip.sh      |   0
 .../tiffcrop-extract-minisblack-1c-16b.sh     |   0
 .../tiffcrop-extract-minisblack-1c-8b.sh      |   0
 ...tiffcrop-extract-minisblack-2c-8b-alpha.sh |   0
 .../tiffcrop-extract-miniswhite-1c-1b.sh      |   0
 ...ract-ojpeg_chewey_subsamp21_multi_strip.sh |   0
 ...ojpeg_zackthecat_subsamp22_single_strip.sh |   0
 .../test}/tiffcrop-extract-palette-1c-1b.sh   |   0
 .../test}/tiffcrop-extract-palette-1c-4b.sh   |   0
 .../test}/tiffcrop-extract-palette-1c-8b.sh   |   0
 .../test}/tiffcrop-extract-quad-lzw-compat.sh |   0
 .../test}/tiffcrop-extract-quad-tile.jpg.sh   |   0
 .../tiffcrop-extract-quad-tile.jpg.t1iff.sh   |   0
 .../test}/tiffcrop-extract-rgb-3c-16b.sh      |   0
 .../test}/tiffcrop-extract-rgb-3c-8b.sh       |   0
 .../tiffcrop-extractz14-logluv-3c-16b.sh      |   0
 .../tiffcrop-extractz14-lzw-single-strip.sh   |   0
 .../tiffcrop-extractz14-minisblack-1c-16b.sh  |   0
 .../tiffcrop-extractz14-minisblack-1c-8b.sh   |   0
 ...fcrop-extractz14-minisblack-2c-8b-alpha.sh |   0
 .../tiffcrop-extractz14-miniswhite-1c-1b.sh   |   0
 ...tz14-ojpeg_chewey_subsamp21_multi_strip.sh |   0
 ...ojpeg_zackthecat_subsamp22_single_strip.sh |   0
 .../tiffcrop-extractz14-palette-1c-1b.sh      |   0
 .../tiffcrop-extractz14-palette-1c-4b.sh      |   0
 .../tiffcrop-extractz14-palette-1c-8b.sh      |   0
 .../tiffcrop-extractz14-quad-lzw-compat.sh    |   0
 .../tiffcrop-extractz14-quad-tile.jpg.sh      |   0
 ...tiffcrop-extractz14-quad-tile.jpg.t1iff.sh |   0
 .../test}/tiffcrop-extractz14-rgb-3c-16b.sh   |   0
 .../test}/tiffcrop-extractz14-rgb-3c-8b.sh    |   0
 {tools => archive/tools}/fax2ps.c             |   0
 {tools => archive/tools}/fax2tiff.c           |   0
 {tools => archive/tools}/pal2rgb.c            |   0
 {tools => archive/tools}/ppm2tiff.c           |   0
 {tools => archive/tools}/raw2tiff.c           |   0
 {tools => archive/tools}/rgb2ycbcr.c          |   0
 {tools => archive/tools}/thumbnail.c          |   0
 {tools => archive/tools}/tiff2bw.c            |   0
 {tools => archive/tools}/tiff2rgba.c          |   0
 {tools => archive/tools}/tiffcmp.c            |   0
 {tools => archive/tools}/tiffcrop.c           |   0
 {tools => archive/tools}/tiffdither.c         |   0
 {tools => archive/tools}/tiffgt.c             |   0
 {tools => archive/tools}/tiffmedian.c         |   0
 configure.ac                                  |  43 +-
 doc/Makefile.am                               |  16 -
 doc/build.rst                                 |  12 +-
 doc/conf.py                                   |  16 -
 doc/functions/TIFFRGBAImage.rst               |   4 +-
 doc/functions/libtiff.rst                     |  10 -
 doc/tools.rst                                 | 115 +----
 doc/tools/tiffcp.rst                          |   4 +-
 doc/tools/tiffinfo.rst                        |   5 +-
 libtiff/tif_config.h.cmake.in                 |  18 -
 libtiff/tif_config.h.in                       |  18 -
 m4/acinclude.m4                               | 402 ------------------
 test/CMakeLists.txt                           |  40 +-
 test/Makefile.am                              | 192 +--------
 test/testfax3_bug_513.sh                      |  24 --
 test/testfax4.sh                              |  24 --
 tools/CMakeLists.txt                          | 102 +----
 tools/Makefile.am                             |  78 ----
 tools/unsupported/CMakeLists.txt              |  56 +++
 .../unsupported/Makefile.am                   |  69 +--
 .../tif_tools-unsupported_versioninfo.rc      |  51 +++
 tools/{ => unsupported}/tiff2pdf.c            |   0
 tools/{ => unsupported}/tiff2ps.c             |   0
 174 files changed, 275 insertions(+), 1122 deletions(-)
 rename {doc => archive/doc}/tools/fax2ps.rst (100%)
 rename {doc => archive/doc}/tools/fax2tiff.rst (100%)
 rename {doc => archive/doc}/tools/pal2rgb.rst (100%)
 rename {doc => archive/doc}/tools/ppm2tiff.rst (100%)
 rename {doc => archive/doc}/tools/raw2tiff.rst (100%)
 rename {doc => archive/doc}/tools/rgb2ycbcr.rst (100%)
 rename {doc => archive/doc}/tools/thumbnail.rst (100%)
 rename {doc => archive/doc}/tools/tiff2bw.rst (100%)
 rename {doc => archive/doc}/tools/tiff2pdf.rst (100%)
 rename {doc => archive/doc}/tools/tiff2ps.rst (100%)
 rename {doc => archive/doc}/tools/tiff2rgba.rst (100%)
 rename {doc => archive/doc}/tools/tiffcmp.rst (100%)
 rename {doc => archive/doc}/tools/tiffcrop.rst (100%)
 rename {doc => archive/doc}/tools/tiffdither.rst (100%)
 rename {doc => archive/doc}/tools/tiffgt.rst (100%)
 rename {doc => archive/doc}/tools/tiffmedian.rst (100%)
 rename {test => archive/test}/fax2tiff.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/ppm2tiff_pbm.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/ppm2tiff_pgm.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/ppm2tiff_ppm.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/testdeflatelaststripextradata.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiff2bw-logluv-3c-16b.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiff2bw-lzw-single-strip.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiff2bw-minisblack-1c-16b.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiff2bw-minisblack-1c-8b.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiff2bw-minisblack-2c-8b-alpha.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiff2bw-miniswhite-1c-1b.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiff2bw-ojpeg_chewey_subsamp21_multi_strip.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiff2bw-ojpeg_zackthecat_subsamp22_single_strip.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiff2bw-palette-1c-1b.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiff2bw-palette-1c-4b.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiff2bw-palette-1c-8b.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiff2bw-quad-lzw-compat.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiff2bw-quad-tile.jpg.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiff2bw-quad-tile.jpg.t1iff.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiff2bw-rgb-3c-16b.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiff2bw-rgb-3c-8b.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiff2pdf.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiff2ps-EPS1.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiff2ps-PS1.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiff2ps-PS2.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiff2ps-PS3.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiff2rgba-logluv-3c-16b.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiff2rgba-lzw-single-strip.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiff2rgba-minisblack-1c-16b.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiff2rgba-minisblack-1c-8b.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiff2rgba-minisblack-2c-8b-alpha.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiff2rgba-miniswhite-1c-1b.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiff2rgba-ojpeg_chewey_subsamp21_multi_strip.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiff2rgba-ojpeg_single_strip_no_rowsperstrip.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiff2rgba-ojpeg_zackthecat_subsamp22_single_strip.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiff2rgba-palette-1c-1b.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiff2rgba-palette-1c-4b.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiff2rgba-palette-1c-8b.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiff2rgba-quad-lzw-compat.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiff2rgba-quad-tile.jpg.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiff2rgba-quad-tile.jpg.t1iff.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiff2rgba-rgb-3c-16b.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiff2rgba-rgb-3c-8b.sh (100%)
 mode change 100755 => 100644
 create mode 100644 archive/test/tiffcp-g3-1d-fill.sh
 create mode 100644 archive/test/tiffcp-g3-1d.sh
 create mode 100644 archive/test/tiffcp-g3-2d-fill.sh
 create mode 100644 archive/test/tiffcp-g3-2d.sh
 create mode 100644 archive/test/tiffcp-g3.sh
 create mode 100644 archive/test/tiffcp-g4.sh
 create mode 100644 archive/test/tiffcp-logluv.sh
 create mode 100644 archive/test/tiffcp-lzw-compat.sh
 create mode 100644 archive/test/tiffcp-lzw-scanline-decode.sh
 create mode 100644 archive/test/tiffcp-split-join.sh
 create mode 100644 archive/test/tiffcp-split.sh
 rename {test => archive/test}/tiffcp-thumbnail.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-R90-logluv-3c-16b.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-R90-lzw-single-strip.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-R90-minisblack-1c-16b.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-R90-minisblack-1c-8b.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-R90-minisblack-2c-8b-alpha.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-R90-miniswhite-1c-1b.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-R90-ojpeg_chewey_subsamp21_multi_strip.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-R90-ojpeg_zackthecat_subsamp22_single_strip.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-R90-palette-1c-1b.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-R90-palette-1c-4b.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-R90-palette-1c-8b.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-R90-quad-lzw-compat.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-R90-quad-tile.jpg.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-R90-quad-tile.jpg.t1iff.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-R90-rgb-3c-16b.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-R90-rgb-3c-8b.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-doubleflip-logluv-3c-16b.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-doubleflip-lzw-single-strip.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-doubleflip-minisblack-1c-16b.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-doubleflip-minisblack-1c-8b.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-doubleflip-minisblack-2c-8b-alpha.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-doubleflip-miniswhite-1c-1b.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-doubleflip-ojpeg_chewey_subsamp21_multi_strip.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-doubleflip-ojpeg_zackthecat_subsamp22_single_strip.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-doubleflip-palette-1c-1b.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-doubleflip-palette-1c-4b.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-doubleflip-palette-1c-8b.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-doubleflip-quad-lzw-compat.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-doubleflip-quad-tile.jpg.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-doubleflip-quad-tile.jpg.t1iff.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-doubleflip-rgb-3c-16b.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-doubleflip-rgb-3c-8b.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-extract-logluv-3c-16b.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-extract-lzw-single-strip.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-extract-minisblack-1c-16b.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-extract-minisblack-1c-8b.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-extract-minisblack-2c-8b-alpha.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-extract-miniswhite-1c-1b.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-extract-ojpeg_chewey_subsamp21_multi_strip.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-extract-ojpeg_zackthecat_subsamp22_single_strip.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-extract-palette-1c-1b.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-extract-palette-1c-4b.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-extract-palette-1c-8b.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-extract-quad-lzw-compat.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-extract-quad-tile.jpg.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-extract-quad-tile.jpg.t1iff.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-extract-rgb-3c-16b.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-extract-rgb-3c-8b.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-extractz14-logluv-3c-16b.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-extractz14-lzw-single-strip.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-extractz14-minisblack-1c-16b.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-extractz14-minisblack-1c-8b.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-extractz14-minisblack-2c-8b-alpha.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-extractz14-miniswhite-1c-1b.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-extractz14-ojpeg_chewey_subsamp21_multi_strip.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-extractz14-ojpeg_zackthecat_subsamp22_single_strip.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-extractz14-palette-1c-1b.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-extractz14-palette-1c-4b.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-extractz14-palette-1c-8b.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-extractz14-quad-lzw-compat.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-extractz14-quad-tile.jpg.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-extractz14-quad-tile.jpg.t1iff.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-extractz14-rgb-3c-16b.sh (100%)
 mode change 100755 => 100644
 rename {test => archive/test}/tiffcrop-extractz14-rgb-3c-8b.sh (100%)
 mode change 100755 => 100644
 rename {tools => archive/tools}/fax2ps.c (100%)
 rename {tools => archive/tools}/fax2tiff.c (100%)
 rename {tools => archive/tools}/pal2rgb.c (100%)
 rename {tools => archive/tools}/ppm2tiff.c (100%)
 rename {tools => archive/tools}/raw2tiff.c (100%)
 rename {tools => archive/tools}/rgb2ycbcr.c (100%)
 rename {tools => archive/tools}/thumbnail.c (100%)
 rename {tools => archive/tools}/tiff2bw.c (100%)
 rename {tools => archive/tools}/tiff2rgba.c (100%)
 rename {tools => archive/tools}/tiffcmp.c (100%)
 rename {tools => archive/tools}/tiffcrop.c (100%)
 rename {tools => archive/tools}/tiffdither.c (100%)
 rename {tools => archive/tools}/tiffgt.c (100%)
 rename {tools => archive/tools}/tiffmedian.c (100%)
 delete mode 100755 test/testfax3_bug_513.sh
 delete mode 100755 test/testfax4.sh
 create mode 100644 tools/unsupported/CMakeLists.txt
 rename cmake/OpenGLChecks.cmake => tools/unsupported/Makefile.am (52%)
 create mode 100644 tools/unsupported/tif_tools-unsupported_versioninfo.rc
 rename tools/{ => unsupported}/tiff2pdf.c (100%)
 rename tools/{ => unsupported}/tiff2ps.c (100%)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8d440f31..184f7863 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -54,6 +54,7 @@ else()
 endif()
 
 option(tiff-tools "build TIFF tools" ON)
+option(tiff-tools-unsupported "build unsupported TIFF tools" OFF)
 option(tiff-tests "build TIFF tests" ON)
 option(tiff-contrib "build TIFF contrib" ON)
 option(tiff-docs "build TIFF documentation" ON)
@@ -127,9 +128,6 @@ include(WebPCodec)
 # Option for C++ libtiffxx library
 include(CXXLibrary)
 
-# Checks for OpenGL support
-include(OpenGLChecks)
-
 # Windows support
 include(WindowsSupport)
 
@@ -149,6 +147,9 @@ add_subdirectory(libtiff)
 if(tiff-tools)
   add_subdirectory(tools)
 endif()
+if(tiff-tools-unsupported)
+  add_subdirectory(tools/unsupported)
+endif()
 if(tiff-tests)
   add_subdirectory(test)
 endif()
@@ -172,6 +173,7 @@ message(STATUS "  C compiler:                         ${CMAKE_C_COMPILER}")
 message(STATUS "  C++ compiler:                       ${CMAKE_CXX_COMPILER}")
 message(STATUS "  Build shared libraries:             ${BUILD_SHARED_LIBS}")
 message(STATUS "  Build tools:                        ${tiff-tools}")
+message(STATUS "  Build tools-unsupported:            ${tiff-tools-unsupported}")
 message(STATUS "  Build tests:                        ${tiff-tests}")
 message(STATUS "  Build contrib:                      ${tiff-contrib}")
 message(STATUS "  Build docs:                         ${tiff-docs}")
@@ -222,7 +224,5 @@ message(STATUS "  ZSTD support:                       Requested:${zstd} Availabi
 message(STATUS "  WEBP support:                       Requested:${webp} Availability:${WebP_FOUND} Support:${WEBP_SUPPORT}")
 message(STATUS "")
 message(STATUS "  C++ support:                        ${cxx} (requested) ${CXX_SUPPORT} (availability)")
-message(STATUS "")
 # message(STATUS "  X Athena Widgets support:           ${HAVE_XAW}")
-message(STATUS "  OpenGL support:                     Requested:${tiff-opengl} Availability:${HAVE_OPENGL} Support:${OPENGL_SUPPORT}")
 message(STATUS "")
diff --git a/Makefile.am b/Makefile.am
index 2f07eec7..0b2276d9 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -60,7 +60,7 @@ distcheck-hook:
 	rm -rf $(distdir)/_build/cmake
 	rm -rf $(distdir)/_inst/cmake
 
-SUBDIRS = port libtiff tools build contrib test doc
+SUBDIRS = port libtiff tools build contrib test doc tools/unsupported
 
 release:
 	(rm -f $(top_srcdir)/RELEASE-DATE && echo $(LIBTIFF_RELEASE_DATE) > $(top_srcdir)/RELEASE-DATE)
diff --git a/doc/tools/fax2ps.rst b/archive/doc/tools/fax2ps.rst
similarity index 100%
rename from doc/tools/fax2ps.rst
rename to archive/doc/tools/fax2ps.rst
diff --git a/doc/tools/fax2tiff.rst b/archive/doc/tools/fax2tiff.rst
similarity index 100%
rename from doc/tools/fax2tiff.rst
rename to archive/doc/tools/fax2tiff.rst
diff --git a/doc/tools/pal2rgb.rst b/archive/doc/tools/pal2rgb.rst
similarity index 100%
rename from doc/tools/pal2rgb.rst
rename to archive/doc/tools/pal2rgb.rst
diff --git a/doc/tools/ppm2tiff.rst b/archive/doc/tools/ppm2tiff.rst
similarity index 100%
rename from doc/tools/ppm2tiff.rst
rename to archive/doc/tools/ppm2tiff.rst
diff --git a/doc/tools/raw2tiff.rst b/archive/doc/tools/raw2tiff.rst
similarity index 100%
rename from doc/tools/raw2tiff.rst
rename to archive/doc/tools/raw2tiff.rst
diff --git a/doc/tools/rgb2ycbcr.rst b/archive/doc/tools/rgb2ycbcr.rst
similarity index 100%
rename from doc/tools/rgb2ycbcr.rst
rename to archive/doc/tools/rgb2ycbcr.rst
diff --git a/doc/tools/thumbnail.rst b/archive/doc/tools/thumbnail.rst
similarity index 100%
rename from doc/tools/thumbnail.rst
rename to archive/doc/tools/thumbnail.rst
diff --git a/doc/tools/tiff2bw.rst b/archive/doc/tools/tiff2bw.rst
similarity index 100%
rename from doc/tools/tiff2bw.rst
rename to archive/doc/tools/tiff2bw.rst
diff --git a/doc/tools/tiff2pdf.rst b/archive/doc/tools/tiff2pdf.rst
similarity index 100%
rename from doc/tools/tiff2pdf.rst
rename to archive/doc/tools/tiff2pdf.rst
diff --git a/doc/tools/tiff2ps.rst b/archive/doc/tools/tiff2ps.rst
similarity index 100%
rename from doc/tools/tiff2ps.rst
rename to archive/doc/tools/tiff2ps.rst
diff --git a/doc/tools/tiff2rgba.rst b/archive/doc/tools/tiff2rgba.rst
similarity index 100%
rename from doc/tools/tiff2rgba.rst
rename to archive/doc/tools/tiff2rgba.rst
diff --git a/doc/tools/tiffcmp.rst b/archive/doc/tools/tiffcmp.rst
similarity index 100%
rename from doc/tools/tiffcmp.rst
rename to archive/doc/tools/tiffcmp.rst
diff --git a/doc/tools/tiffcrop.rst b/archive/doc/tools/tiffcrop.rst
similarity index 100%
rename from doc/tools/tiffcrop.rst
rename to archive/doc/tools/tiffcrop.rst
diff --git a/doc/tools/tiffdither.rst b/archive/doc/tools/tiffdither.rst
similarity index 100%
rename from doc/tools/tiffdither.rst
rename to archive/doc/tools/tiffdither.rst
diff --git a/doc/tools/tiffgt.rst b/archive/doc/tools/tiffgt.rst
similarity index 100%
rename from doc/tools/tiffgt.rst
rename to archive/doc/tools/tiffgt.rst
diff --git a/doc/tools/tiffmedian.rst b/archive/doc/tools/tiffmedian.rst
similarity index 100%
rename from doc/tools/tiffmedian.rst
rename to archive/doc/tools/tiffmedian.rst
diff --git a/test/fax2tiff.sh b/archive/test/fax2tiff.sh
old mode 100755
new mode 100644
similarity index 100%
rename from test/fax2tiff.sh
rename to archive/test/fax2tiff.sh
diff --git a/test/ppm2tiff_pbm.sh b/archive/test/ppm2tiff_pbm.sh
old mode 100755
new mode 100644
similarity index 100%
rename from test/ppm2tiff_pbm.sh
rename to archive/test/ppm2tiff_pbm.sh
diff --git a/test/ppm2tiff_pgm.sh b/archive/test/ppm2tiff_pgm.sh
old mode 100755
new mode 100644
similarity index 100%
rename from test/ppm2tiff_pgm.sh
rename to archive/test/ppm2tiff_pgm.sh
diff --git a/test/ppm2tiff_ppm.sh b/archive/test/ppm2tiff_ppm.sh
old mode 100755
new mode 100644
similarity index 100%
rename from test/ppm2tiff_ppm.sh
rename to archive/test/ppm2tiff_ppm.sh
diff --git a/test/testdeflatelaststripextradata.sh b/archive/test/testdeflatelaststripextradata.sh
old mode 100755
new mode 100644
similarity index 100%
rename from test/testdeflatelaststripextradata.sh
rename to archive/test/testdeflatelaststripextradata.sh
diff --git a/test/tiff2bw-logluv-3c-16b.sh b/archive/test/tiff2bw-logluv-3c-16b.sh
old mode 100755
new mode 100644
similarity index 100%
rename from test/tiff2bw-logluv-3c-16b.sh
rename to archive/test/tiff2bw-logluv-3c-16b.sh
diff --git a/test/tiff2bw-lzw-single-strip.sh b/archive/test/tiff2bw-lzw-single-strip.sh
old mode 100755
new mode 100644
similarity index 100%
rename from test/tiff2bw-lzw-single-strip.sh
rename to archive/test/tiff2bw-lzw-single-strip.sh
diff --git a/test/tiff2bw-minisblack-1c-16b.sh b/archive/test/tiff2bw-minisblack-1c-16b.sh
old mode 100755
new mode 100644
similarity index 100%
rename from test/tiff2bw-minisblack-1c-16b.sh
rename to archive/test/tiff2bw-minisblack-1c-16b.sh
diff --git a/test/tiff2bw-minisblack-1c-8b.sh b/archive/test/tiff2bw-minisblack-1c-8b.sh
old mode 100755
new mode 100644
similarity index 100%
rename from test/tiff2bw-minisblack-1c-8b.sh
rename to archive/test/tiff2bw-minisblack-1c-8b.sh
diff --git a/test/tiff2bw-minisblack-2c-8b-alpha.sh b/archive/test/tiff2bw-minisblack-2c-8b-alpha.sh
old mode 100755
new mode 100644
similarity index 100%
rename from test/tiff2bw-minisblack-2c-8b-alpha.sh
rename to archive/test/tiff2bw-minisblack-2c-8b-alpha.sh
diff --git a/test/tiff2bw-miniswhite-1c-1b.sh b/archive/test/tiff2bw-miniswhite-1c-1b.sh
old mode 100755
new mode 100644
similarity index 100%
rename from test/tiff2bw-miniswhite-1c-1b.sh
rename to archive/test/tiff2bw-miniswhite-1c-1b.sh
diff --git a/test/tiff2bw-ojpeg_chewey_subsamp21_multi_strip.sh b/archive/test/tiff2bw-ojpeg_chewey_subsamp21_multi_strip.sh
old mode 100755
new mode 100644
similarity index 100%
rename from test/tiff2bw-ojpeg_chewey_subsamp21_multi_strip.sh
rename to archive/test/tiff2bw-ojpeg_chewey_subsamp21_multi_strip.sh
diff --git a/test/tiff2bw-ojpeg_zackthecat_subsamp22_single_strip.sh b/archive/test/tiff2bw-ojpeg_zackthecat_subsamp22_single_strip.sh
old mode 100755
new mode 100644
similarity index 100%
rename from test/tiff2bw-ojpeg_zackthecat_subsamp22_single_strip.sh
rename to archive/test/tiff2bw-ojpeg_zackthecat_subsamp22_single_strip.sh
diff --git a/test/tiff2bw-palette-1c-1b.sh b/archive/test/tiff2bw-palette-1c-1b.sh
old mode 100755
new mode 100644
similarity index 100%
rename from test/tiff2bw-palette-1c-1b.sh
rename to archive/test/tiff2bw-palette-1c-1b.sh
diff --git a/test/tiff2bw-palette-1c-4b.sh b/

(Patch may be truncated, please check the link at the top of this post.)