--- a/m4/qt6.m4	2024-02-26 22:24:12 +0800
+++ b/m4/qt6.m4	2025-11-06 21:28:10 +0800
@@ -25,7 +25,7 @@

   if test "$have_qt6_libs" = "yes"; then
     # Qt6 moved moc to libexec
-    qt6libexecdir=$($PKG_CONFIG --variable=libexecdir 'Qt6Core >= 6.4.0')
+    qt6libexecdir=$(cygpath -u $($PKG_CONFIG --variable=libexecdir 'Qt6Core >= 6.4.0'))
     AC_PATH_TOOL(MOC6, moc, [], [$qt6libexecdir])
     if test -z "$MOC6"; then
       AC_MSG_WARN([moc not found - Qt 6 binding will not be built.])
