Index: configure.in =================================================================== --- configure.in +++ configure.in 2010-03-23 12:53:09.000000000 +0100 @@ -956,7 +956,7 @@ if [[ "x$ac_cv_use_libqt4" = "xyes" ]]; then AC_MSG_CHECKING([for Qt4 >= 4.2.0 using pkg-config]) pkgd="/usr/lib/qt4/$ARCHLIB/pkgconfig" - if [[ -d "$pkgd" ]]; then + if [[ -d "$pkgd" ]] && ! pkg-config QtCore ; then export PKG_CONFIG_LIBDIR="$pkgd" fi verqt=`pkg-config --modversion QtCore 2>/dev/null`