Thanks for taking the time out to help Gerard, the automake, autoconf solution was exactly what I needed. Haven't managed to completely install KDE yet (lack of time) but it compiled alot further before falling over this time. I installed other versions of the libraries that KDE needs so I need to go back and re-install the correct ones.
You would of thought there would be backward compatability with the libraries as I have newer versions installed, but that is obviously not the case. I suppose I'm still thinking newer = better which is definatley not always the case in Linux