]> git.lyx.org Git - lyx.git/commitdiff
Account for Qt 5.10
authorEnrico Forestieri <forenr@lyx.org>
Fri, 5 Jan 2018 18:27:24 +0000 (19:27 +0100)
committerEnrico Forestieri <forenr@lyx.org>
Fri, 5 Jan 2018 18:29:12 +0000 (19:29 +0100)
Fix regular sed expression in order to catch a second digit in the
Qt minor version number.

config/qt4.m4

index 1cf557d637239bd9ce3fb0df98904c9e283fde6b..f53f243df09042f586797429941a30292014727d 100644 (file)
@@ -211,7 +211,7 @@ AC_DEFUN([QT_DO_IT_ALL],
        QT_FIND_TOOL([QT_RCC], [rcc])
 
        dnl Safety check
-       mocqtver=`$QT_MOC -v 2>&1 | sed -e 's/.*\([[0-9]]\.[[0-9]]\.[[0-9]]\).*/\1/'`
+       mocqtver=`$QT_MOC -v 2>&1 | sed -e 's/.*\([[0-9]]\.[[0-9]]*\.[[0-9]]\).*/\1/'`
        if test "x$mocqtver" != "x$QTLIB_VERSION"; then
                LYX_WARNING([The found moc compiler is for Qt $mocqtver but the Qt library version is $QTLIB_VERSION.])
        fi