1#!/bin/sh 2# Canonicalize CHOST. 3# In particular, converts Debian multiarch tuples into GNU triplets. 4# See also 5# https://wiki.debian.org/Multiarch/Tuples 6# https://wiki.gentoo.org/wiki/CHOST 7# If you need an architecture not listed here, file a bug at github.com/zlib-ng/zlib-ng 8# and work around the problem by dropping libtool's much more comprehensive config.sub 9# on top of this file, see 10# https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub 11 12case "$1" in 13*-*-linux-gnu*) echo $1;; 14i686-linux-gnu*|x86_64-linux-gnu*) echo $1 | sed 's/-linux-gnu/-pc-linux-gnu/';; 15*-linux-gnu*) echo $1 | sed 's/-linux-gnu/-unknown-linux-gnu/';; 16*) echo $1;; 17esac 18