checking for Qt... libraries /usr/lib/qt3/lib64, headers /usr/lib/qt3//include using -mt
checking for moc... /usr/lib/qt3//bin/moc
checking for uic... /usr/lib/qt3//bin/uic
checking whether uic supports -L ... yes
checking whether uic supports -nounload ... yes
checking if Qt needs -ljpeg... no
checking for rpath... yes
checking for KDE... libraries /usr/lib, headers /usr/include
checking if UIC has KDE plugins available... no
configure: error: you need to install kdelibs first.
As the message says, you have to install kdelibs first. Just compile the kdelibs, this will resolve your problem. The new apps you try to compile do depend on some shared libs, they must exist on your system.
I had a similar problem several months back. Apparently, it was some kind of build or packaging problem. I was able to hack around it by editing that check in the configure script, as I don't think the programs I was building actually used UIC plugins. I put the details here.