You can check config.log to see what went wrong with the configure script.
But I suppose this is the same issue
lib/ld-linux.so.3 no such file.
I'm not sure why this library is not in your library path, maybe the toolchain was not installed properly.
I've never used scratchbox, but it looks like you are trying to cross-compile a program inside qemu, is that correct?
If so, it may be relatively slow, you'd better setup a cross-compiler in your host.