The emscripten compiler <
http://emscripten.org/> creates a _javascript_ translation from C or other LLVM-able code, using the asm.js subset of _javascript_ as a formal target.
The host triple defined by the compiler is 'asmjs-unknown-emscripten', but currently many autoconf-based programs don't allow cross-compilation with this triple as config.sub doesn't recognize it, so workarounds are used to fake out the compiler for the configure scripts... (See mailing list thread <
https://groups.google.com/forum/#!topic/emscripten-discuss/zLMDkPUmZIQ> for example.)
Adding it to the canonical config.sub should help with proper _javascript_ cross-compilation of various GNU and other libraries that use autoconf.
Please let me know if this is the right way to go about it. Thanks!