| # Compute the Firefox XPCOM-ABI string -- see |
| # http://developer.mozilla.org/en/docs/XPCOM_ABI |
| # OS_TARGET portion should be one of: |
| # WINNT - Windows NT, 2000, XP and later |
| # SunOS - all Solaris versions |
| # COMPILER should be one of: |
| # gcc3 - GNU C++ v3.x or v4.x |
| # n32 - IRIX 6 C++ Compiler |
| # sunc - Sun C++ Compiler |
| # ibmc - IBM C++ Compiler |
| # TODO: figure out how to determine this in a better way |
| # TARGET_XPCOM_ABI consists of ARCH and COMPILER |
| # Currently acceptable ARCH values are: |
| # x86 - i386 and up, 32-bit mode |
| # x86_64 - AMD64/EMT64 processors in 64-bit mode |
| x86_64 | ppc | sparc | alpha | ia64) |
| # these don't need changing |
| athlon | i386 | i486 | i586 | i686 | i86pc) |
| echo "Unknown mac architecture '$ARCH'" >&2 |
| echo "Unknown architecture '$ARCH'" >&2 |
| echo ${OS}_$ARCH-$COMPILER >$1 |