|
|
@ -128,9 +128,21 @@ PKG_CHECK_MODULES([QT], [Qt5Core Qt5Gui Qt5Widgets Qt5Network], |
|
|
|
have_qt=1], |
|
|
|
have_qt=1], |
|
|
|
[have_qt=0])]) |
|
|
|
[have_qt=0])]) |
|
|
|
AM_CONDITIONAL(HAVE_QT, test "$have_qt" = "1") |
|
|
|
AM_CONDITIONAL(HAVE_QT, test "$have_qt" = "1") |
|
|
|
if test "$have_qt" = "1"; then |
|
|
|
if test "$have_qt" = "1" \ |
|
|
|
test -n "$UIC" -a -n "$MOC" -a -n "$RCC" -a -n "$LUPDATE" -a -n "$LRELEASE" |
|
|
|
&& ! which "$UIC" "$MOC" "$RCC" "$LUPDATE" "$LRELEASE"; then |
|
|
|
which "$UIC" "$MOC" "$RCC" "$LUPDATE" "$LRELEASE" |
|
|
|
if test -n "$MOC" \ |
|
|
|
|
|
|
|
&& which "${UIC:=${MOC/moc/uic}}" "${RCC:=${MOC/moc/rcc}}" \ |
|
|
|
|
|
|
|
"${LUPDATE:=${MOC/moc/lupdate}}" \ |
|
|
|
|
|
|
|
"${LRELEASE:=${MOC/moc/lrelease}}"; then |
|
|
|
|
|
|
|
AC_MSG_NOTICE([Detected: "$UIC" "$MOC" "$RCC" "$LUPDATE" "$LRELEASE"]) |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
AC_MSG_ERROR([Missing QT Programs. |
|
|
|
|
|
|
|
- Needed: moc rcc lupdate lrelease |
|
|
|
|
|
|
|
- Found: $UIC $MOC $RCC $LUPDATE $LRELEASE |
|
|
|
|
|
|
|
You can specify the missing programs by passing one of the variables: |
|
|
|
|
|
|
|
\$UIC \$MOC \$RCC \$LUPDATE \$LRELEASE |
|
|
|
|
|
|
|
Often it is sufficient to specify MOC=/path/to/moc ./configure)]) |
|
|
|
|
|
|
|
fi |
|
|
|
fi |
|
|
|
fi |
|
|
|
AC_SUBST(UIC) |
|
|
|
AC_SUBST(UIC) |
|
|
|
AC_SUBST(MOC) |
|
|
|
AC_SUBST(MOC) |
|
|
|