Quick workaround for detection of Qt/Mac using pkg-config

This commit is contained in:
Jean-Marc Lasgouttes 2013-07-14 20:27:52 +02:00
parent 535c9ea078
commit e4cf514e4a
2 changed files with 11 additions and 1 deletions

View File

@ -189,9 +189,17 @@ AC_DEFUN([QT4_DO_PKG_CONFIG],
AC_SUBST(QT4_VERSION) AC_SUBST(QT4_VERSION)
QT4_LIB=`$PKG_CONFIG --libs-only-l QtCore QtGui` QT4_LIB=`$PKG_CONFIG --libs-only-l QtCore QtGui`
AC_SUBST(QT4_LIB) AC_SUBST(QT4_LIB)
LIBS="$LIBS `$PKG_CONFIG --libs-only-other QtCore QtGui`" dnl LIBS="$LIBS `$PKG_CONFIG --libs-only-other QtCore QtGui`"
fi fi
PKG_CONFIG_PATH=$save_PKG_CONFIG_PATH PKG_CONFIG_PATH=$save_PKG_CONFIG_PATH
dnl Actually, the values of QT4_LIB and QT4_CORE_LIB can be completely wrong on OS X,
dnl where everything goes to --libs-only-other.
dnl As a quick workaround, let us assign better values. A better patch exists
dnl for next cycle.
QT4_CORE_LIB=$QT4_CORE_LIBS
QT4_CORE_LDFLAGS=
QT4_LIB=$QT4_FRONTEND_LIBS
QT4_LDFLAGS=
]) ])
AC_DEFUN([QT4_DO_MANUAL_CONFIG], AC_DEFUN([QT4_DO_MANUAL_CONFIG],

View File

@ -77,3 +77,5 @@ What's new
* BUILD/INSTALLATION * BUILD/INSTALLATION
- improve detection of Qt via pkg-config, especially on Mac OS.