Need help getting LLVM JIT running on ARM

Does anyone know what I should be doing if I want to cross compile LLVM for the ARM architecture?
I want to use the LLVM JIT on ARM for a class project this semester.
I have built and/or installed a few different gcc arm (arm-linux, and also one that is arm-elf) toolchains, and have had trouble getting LLVM 2.6 to configure and compile using the --host and --build switches of the config.

If there are any good guides out there on cross compiling LLVM I would be really be happy to read them.

Thanks

Specifying --host, --build and --target should work. For example,

$ configure --host=arm-apple-darwin10 --build=i686-apple-darwin10 --target=arm-apple-darwin10 --enable-targets=arm

-Jim

Is this the configuration you would give for an iphone?

-Puyan

It's an example of a target triple. You should substitute whatever is appropriate for your target.