Skip to content

Commit a549566

Browse files
hosietmchehab
authored andcommitted
configure.ac: Use old way to detect Qt5
Bug: #277 Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent 368571f commit a549566

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

configure.ac

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -675,8 +675,8 @@ AS_IF([test "x$with_qt" != "xno"],
675675
AS_IF([test "x$with_qt6" = "xno"],
676676
[PKG_CHECK_MODULES([QT],
677677
[Qt5Core >= 5 Qt5Gui >= 5 Qt5Widgets >= 5.0 Qt5X11Extras >= 5.0],
678-
[MOC=`$PKG_CONFIG Qt5 --variable=moc`
679-
QT_VERSION=`$PKG_CONFIG Qt5 --modversion`
678+
[AC_CHECK_PROGS([MOC], [moc-qt5 moc])
679+
QT_VERSION=`$PKG_CONFIG Qt5Gui --modversion`;
680680
qt_pkgconfig_file="zbar-qt5.pc"
681681
],
682682
[with_qt="no"])])

0 commit comments

Comments
 (0)