mkvtoolnix/ac/qt_common.m4
Moritz Bunkus 783229560f
configure: require Qt 5 or 6; add --disable-gui for disabling the GUI
This is in preparation of fixing #3137. The plan is not to use
libfile's MIME type detection but Qt's. As both mkvmerge and the GUI
need to auto-detect the MIME type, this means that the command line
applications will have to be linked against Qt's core library (but not
the GUI libraries).
2021-06-15 22:39:33 +02:00

24 lines
553 B
Plaintext

if test x"$have_qt6" != xyes -a x"$have_qt5" != xyes; then
AC_MSG_ERROR([The Qt library is required for building MKVToolNix.])
fi
if test x"$enable_gui" = xyes; then
BUILD_GUI=yes
if test x"$have_qt6" = "xyes" ; then
opt_features_yes="$opt_features_yes\n * MKVToolNix GUI (with Qt 6)"
else
opt_features_yes="$opt_features_yes\n * MKVToolNix GUI (with Qt 5)"
fi
else
BUILD_GUI=no
opt_features_no="$opt_features_no\n * MKVToolNix GUI"
fi
AC_SUBST(QT_CFLAGS)
AC_SUBST(QT_LIBS)
AC_SUBST(QT_LIBS_NON_GUI)
AC_SUBST(BUILD_GUI)