File 0005-Prevent-configuration-for-Qt5-and-Qt6-at-the-same-ti.patch of Package gwenhywfar

From 7cd1c0667e248eec558fb2a10270a593184396f1 Mon Sep 17 00:00:00 2001
From: Thomas Baumgart <thb@net-bembel.de>
Date: Fri, 20 Jun 2025 08:38:56 +0200
Subject: [PATCH 5/7] Prevent configuration for Qt5 and Qt6 at the same time

---
 configure.ac | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/configure.ac b/configure.ac
index edcf131..0f4423f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -436,7 +436,7 @@ case "$OS_TYPE" in
             all_libraries="${all_libraries} -framework CoreFoundation"
           fi
         fi
-        
+
         gwenbuild_tool="gwenbuild"
     	;;
     windows)
@@ -1000,8 +1000,12 @@ AM_CONDITIONAL(WITH_GUI_QT4, [test "$with_gui_qt4" = "yes"])
 #
 
 case "$gwenhywfar_guis" in
-  *qt5*)
-  AX_HAVE_QT
+  *qt5*qt6* | *qt6*qt5*)
+    AC_MSG_ERROR(**** Configuring for Qt5 and Qt6 at the same time is not supported)
+    ;;
+  *qt5* | *qt6*)
+    AX_HAVE_QT
+    ;;
 esac
 
 
-- 
2.50.0

openSUSE Build Service is sponsored by