Adding debian version 4.03+dfsg-8.
[syslinux-debian/hramrach.git] / win64 / find-mingw64.sh
blob6b620c8770870868b2e7e64b697f167078a02ba7
1 #!/bin/sh
3 cc="$1"
5 for prefix in \
6 mingw64- \
7 x86_64-pc-mingw64- \
8 x86_64-pc-mingw64msvc- \
9 x86_64-pc-mingw32- \
10 x86_64-pc-mingw32msvc- \
11 x86_64-mingw64- \
12 x86_64-mingw64msvc- \
13 x86_64-mingw32- \
14 x86_64-mingw32msvc- \
15 ; do
16 if "${prefix}${cc}" -v > /dev/null 2>&1; then
17 echo "$prefix"
18 exit 0
20 done
22 # No prefix, no idea what to do now...
23 echo missing-
24 exit 1