Fixed detection of Qt by pkgconfig from yet another stupid place.

git-svn-id: http://voip.null.ro/svn/yate@2139 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2008-08-04 06:36:08 +00:00
parent 261993b48f
commit 458407c891
1 changed files with 5 additions and 0 deletions

View File

@ -743,9 +743,14 @@ QT4_VER=""
AC_ARG_WITH(libqt4,AC_HELP_STRING([--with-libqt4],[use Qt for graphical clients (default)]),[ac_cv_use_libqt4=$withval],[ac_cv_use_libqt4=yes])
if [[ "x$ac_cv_use_libqt4" = "xyes" ]]; then
AC_MSG_CHECKING([for Qt4 using pkg-config])
pkgd="/usr/lib/qt4/$ARCHLIB/pkgconfig"
if [[ -d "$pkgd" ]]; then
export PKG_CONFIG_LIBDIR="$pkgd"
fi
verqt=`pkg-config --modversion QtCore 2>/dev/null`
incqt=`pkg-config --cflags QtCore QtGui QtXml QtNetwork 2>/dev/null | sed 's/QtNetwork/QtUiTools/'`
libqt=`pkg-config --libs QtCore QtGui QtXml QtNetwork 2>/dev/null | sed 's/QtNetwork/QtUiTools/'`
unset PKG_CONFIG_LIBDIR
if [[ "x$incqt" != "x" -a "x$libqt" != "x" ]]; then
HAVE_QT4=yes
QT4_INC="$incqt"