mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-04 11:50:29 +01:00
build: fix detection of Qt on non-Fedora platforms (bgo #691583)
Apparently Qt.pc is a Fedora-specific file to allow parallel install of Qt3 and Qt4. We should instead be using the upstream QtCore. https://bugzilla.gnome.org/show_bug.cgi?id=691583
This commit is contained in:
parent
bbf0720a8d
commit
408cafc889
1 changed files with 2 additions and 2 deletions
|
|
@ -229,7 +229,7 @@ AC_SUBST(GUDEV_LIBS)
|
|||
GOBJECT_INTROSPECTION_CHECK([0.9.6])
|
||||
|
||||
# Qt4
|
||||
PKG_CHECK_MODULES(QT, [Qt >= 4 QtCore QtDBus QtNetwork], [have_qt=yes],[have_qt=no])
|
||||
PKG_CHECK_MODULES(QT, [QtCore >= 4 QtDBus QtNetwork], [have_qt=yes],[have_qt=no])
|
||||
AC_ARG_ENABLE(qt, AS_HELP_STRING([--enable-qt], [enable Qt examples]),
|
||||
[enable_qt=${enableval}], [enable_qt=${have_qt}])
|
||||
if (test "${enable_qt}" = "yes"); then
|
||||
|
|
@ -239,7 +239,7 @@ if (test "${enable_qt}" = "yes"); then
|
|||
AC_SUBST(QT_CFLAGS)
|
||||
AC_SUBST(QT_LIBS)
|
||||
# Check for moc-qt4 and if not found then moc
|
||||
QT4_BINDIR=`$PKG_CONFIG Qt --variable bindir`
|
||||
QT4_BINDIR=`$PKG_CONFIG QtCore --variable moc_location`
|
||||
AC_CHECK_PROGS(MOC, [moc-qt4 moc],, [$QT4_BINDIR:$PATH])
|
||||
fi
|
||||
AM_CONDITIONAL(WITH_QT, test "${enable_qt}" = "yes")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue