codec: videotoolbox: check if H264 needs restart
[vlc.git] / contrib / src / get-arch.sh
blob801d6b23c5bb579e82bd19504c11ad16a4485cdd
1 #! /bin/sh
3 HOST="$1"
4 if test -z "$HOST"; then
5 echo "Usage: $0 <target machine>" >&2
6 exit 1
7 fi
9 case "$HOST" in
10 amd64-*)
11 ARCH="x86_64"
13 i[3456]86-*|x86-*)
14 ARCH="i386"
16 powerpc-*|ppc-*)
17 ARCH="ppc"
19 powerpc64-*|ppc64-*)
20 ARCH="ppc64"
22 *-*)
23 ARCH="${HOST%%-*}"
26 echo "$HOST: invalid machine specification" >&2
27 exit 1
28 esac
29 echo $ARCH