this line says it all -
checking whether the C compiler (gcc ) works... no
if your compiler isn't working you can't compile the source
gcc is the "gnu c compiler". you should be able to download it from the web again.
also, are you actually running the command -
configure --with-mysql=[path] --with-apxs=[path]
or are you replacing [path] with the path to mysql & apxs?
they are normally in -
/usr/local/apache
/usr/local/bin/mysql