Try this before configure:

export QTDIR=/usr/share/qt3