This would fix the script to work on Solaris:
--- switch-arch.orig 2011-05-02 20:54:43.312500000 -0400 +++ switch-arch 2011-05-02 20:56:05.093750000 -0400 @@ -19,8 +19,8 @@
crosscflags() {
- local host=$1
- local target=$2
host=$1
target=$2
if test "$host" = "powerpc" -o "$host" = "ppc" \ -o "$host" = "mips" -o "$host" = "s390" \
Ken
Confirmed; this produces the correct result with /bin/sh (ksh93), bash, and /usr/xpg4/bin/sh.
Thanks, Nathan