[vlc-commits] configure: look for bullseye / bookworm+ locations for stdole2.tlb

Steve Lhomme git at videolan.org
Wed Aug 19 12:10:50 UTC 2026


npapi-vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Aug 19 14:00:46 2026 +0200| [a138c74d60d30fb17b2cdf02da1e4a87a2e7483a] | committer: Steve Lhomme

configure: look for bullseye / bookworm+ locations for stdole2.tlb

For i686:
- On bullseye it's found in /usr/lib/i386-linux-gnu/wine/fakedlls [^1].
- On bookworm it's found in /usr/lib/i386-linux-gnu/wine/i386-windows [^2].
- On trixie it's found in /usr/lib/i386-linux-gnu/wine/i386-windows [^2].

For x86_64:
- On bullseye it's found in /usr/lib/x86_64-linux-gnu/wine/fakedlls [^1].
- On bookworm it's found in /usr/lib/x86_64-linux-gnu/wine/i386-windows [^2].
- On trixie it's found in /usr/lib/x86_64-linux-gnu/wine/i386-windows [^2].

[^1]: https://packages.debian.org/search?mode=exactfilename&suite=bullseye&section=all&arch=any&searchon=contents&keywords=stdole2.tlb
[^2]: https://packages.debian.org/search?suite=bookworm&arch=any&mode=exactfilename&searchon=contents&keywords=stdole2.tlb
[^3]: https://packages.debian.org/search?suite=trixie&arch=any&mode=exactfilename&searchon=contents&keywords=stdole2.tlb

> https://code.videolan.org/videolan/npapi-vlc/commit/a138c74d60d30fb17b2cdf02da1e4a87a2e7483a
---

 configure.ac | 27 +++++++++++++++++++++++++--
 1 file changed, 25 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 5f91c9e..1e21a6e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -129,6 +129,20 @@ AS_IF([test "${SYS}" = "mingw32"],[
             WIDLFLAGS=" -m32"
         ;;
     esac
+    case "${host_cpu}" in
+        i?86)
+            DEBIAN_WIN_CPU="i386"
+        ;;
+        x86_64)
+            DEBIAN_WIN_CPU="x86_64"
+        ;;
+        aarch64|arm64)
+            DEBIAN_WIN_CPU="aarch64"
+        ;;
+        arm|armv7)
+            DEBIAN_WIN_CPU="arm"
+        ;;
+    esac
     AC_LANG_PUSH(C++)
     AC_CHECK_HEADER(ole2.h,,[AC_MSG_ERROR([required OLE header ole2.h is missing from your system])])
     AC_CHECK_HEADER(olectl.h,,[AC_MSG_ERROR([required OLE header olectl.h is missing from your system])])
@@ -148,8 +162,17 @@ AS_IF([test "${SYS}" = "mingw32"],[
             HAS_WIDL_DASH_L=yes
 
             # path of stdole2.tlb in Debian libwine
-            AS_IF([test -d /usr/lib/${build_cpu}-${build_os}/wine/${host_cpu}-windows],[
-                WIDLFLAGS="${WIDLFLAGS} -L/usr/lib/${build_cpu}-${build_os}/wine/${host_cpu}-windows"
+            AC_MSG_CHECKING([for Debian wine library folder])
+            AS_IF([test -d /usr/lib/${DEBIAN_WIN_CPU}-${build_os}/wine/${DEBIAN_WIN_CPU}-windows],[
+                AC_MSG_RESULT([/usr/lib/${DEBIAN_WIN_CPU}-${build_os}/wine/${DEBIAN_WIN_CPU}-windows])
+                WIDLFLAGS="${WIDLFLAGS} -L/usr/lib/${DEBIAN_WIN_CPU}-${build_os}/wine/${DEBIAN_WIN_CPU}-windows"
+            ],[
+              AS_IF([test -d /usr/lib/${DEBIAN_WIN_CPU}-${build_os}/wine/fakedlls],[
+                  AC_MSG_RESULT([/usr/lib/${DEBIAN_WIN_CPU}-${build_os}/wine/fakedlls])
+                  WIDLFLAGS="${WIDLFLAGS} -L/usr/lib/${DEBIAN_WIN_CPU}-${build_os}/wine/fakedlls"
+              ],[
+                AC_MSG_RESULT([not found])
+              ])
             ])
         ],[
             AC_MSG_RESULT([no])



More information about the vlc-commits mailing list