What have you tried so far? What errors did you see?
You can tell configure to use another compile with the CC shell variable, i.e.
./configure CC=cc --.... or
CC=cc ./configure --...
Make sure the Solaris Studio compiler is in your PATH or use an absolute path (i.e. CC=/opt/solarisstudio12.3/bin/cc).