diff --git a/ac/qt6.m4 b/ac/qt6.m4 index 15e5952ab..4c10cde0a 100644 --- a/ac/qt6.m4 +++ b/ac/qt6.m4 @@ -77,7 +77,13 @@ EOT fi fi - for qt_module in dbus; do + modules_to_test=dbus + + if test x"$enable_gui" = xno; then + modules_to_test= + fi + + for qt_module in $modules_to_test; do rm -f Makefile Makefile.Release cat > "$qmake_dir/configure.pro" < "$qmake_dir/configure.pro" <