Never mind, I got it to work...
I did --with-mysqli instead of --with-mysql and it made it without any errors.
I have apache, mysql and php up and running now, except now, when I call mysql functions in a php script, it complains about a missing socket or something like that.... I'm on my windows box now, otherwise I'd give a more detailed explanation.
Anyone else have problems with a socket error in php and mysql?