summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2013-06-17 20:21:08 +0200
committerAlbert Astals Cid <aacid@kde.org>2013-06-17 20:21:08 +0200
commitb1958228d4bc6793a3606b5e31c61a57b9fac9f5 (patch)
tree1840d29488d1437885a0b6b8793b24afff258cd8
parent06f45c7177afc67e02985be1a97cd976c530c4ae (diff)
No distro ships moc-qt5 but make it work in case someone would
-rw-r--r--configure.ac6
1 files changed, 4 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index a2ec2383..e4eb71fa 100644
--- a/configure.ac
+++ b/configure.ac
@@ -665,14 +665,16 @@ if test x$enable_poppler_qt5 = xyes; then
if test x"$mocversiongrep" != x"$mocversion"; then
AC_MSG_RESULT([no])
# moc was not the qt5 one, try with moc-qt5
- AC_CHECK_TOOL(MOCQT5, moc-qt5)
+ AC_CHECK_TOOL(MOCQT52, moc-qt5)
AC_MSG_CHECKING([for Qt5 moc-qt5])
- mocversion=`$MOCQT5 -v 2>&1`
+ mocversion=`$MOCQT52 -v 2>&1`
mocversiongrep=`echo $mocversion | grep "Qt 5"`
if test x"$mocversiongrep" != x"$mocversion"; then
# no valid moc found
enable_poppler_qt5=no;
MOCQT5="not found"
+ else
+ MOCQT5=$MOCQT52
fi
fi
AC_SUBST(MOCQT5)