[vlc-commits] configure: detect WINE_SDK_PATH in configure.ac

Steve Lhomme git at videolan.org
Mon Sep 8 07:39:27 UTC 2025


npapi-vlc | branch: 3.0.x | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Jul 26 10:03:01 2024 +0200| [c35237025e2cc54f41ad3ce4680b26546e4322d8] | committer: Steve Lhomme

configure: detect WINE_SDK_PATH in configure.ac

It may be needed for the stdole2.tld detection

(cherry picked from commit 4ea810234e4be1d85404bf7e4d5c2d66e392d8b7)

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

 activex/Makefile.am | 10 ++++------
 configure.ac        |  6 ++++++
 2 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/activex/Makefile.am b/activex/Makefile.am
index d2fa804..3e8c1a9 100644
--- a/activex/Makefile.am
+++ b/activex/Makefile.am
@@ -102,20 +102,18 @@ clean-tlb:
 else
 if HAS_WIDL_COMPILER
 
-WINE_SDK_PATH ?= /usr/include/wine/windows
-
 stdole2.tlb stdole2_idl.c stdole2_idl.h: $(WINE_SDK_PATH)/stdole2.idl
-	$(WIDL) $(WIDLFLAGS) -I$(WINE_SDK_PATH) -t -u -h -T stdole2.tlb -U stdole2_idl.c -H stdole2_idl.h $<
+	$(WIDL) $(WIDLFLAGS) -t -u -h -T stdole2.tlb -U stdole2_idl.c -H stdole2_idl.h $<
 
 if HAS_STDOLE2_TLB
 axvlc.tlb axvlc_idl.c axvlc_idl.h: axvlc.idl
-	$(WIDL) $(WIDLFLAGS) -I$(WINE_SDK_PATH) -I. -t -u -h -T axvlc.tlb -U axvlc_idl.c -H axvlc_idl.h $<
+	$(WIDL) $(WIDLFLAGS) -I. -t -u -h -T axvlc.tlb -U axvlc_idl.c -H axvlc_idl.h $<
 else
 axvlc.tlb axvlc_idl.c axvlc_idl.h: axvlc.idl stdole2.tlb
 if HAS_WIDL_DASH_L
-	$(WIDL) $(WIDLFLAGS) -I$(WINE_SDK_PATH) -I. -L. -t -u -h -T axvlc.tlb -U axvlc_idl.c -H axvlc_idl.h $<
+	$(WIDL) $(WIDLFLAGS) -I. -L. -t -u -h -T axvlc.tlb -U axvlc_idl.c -H axvlc_idl.h $<
 else
-	$(WIDL) $(WIDLFLAGS) -I$(WINE_SDK_PATH) -I. -t -u -h -T axvlc.tlb -U axvlc_idl.c -H axvlc_idl.h $<
+	$(WIDL) $(WIDLFLAGS) -I. -t -u -h -T axvlc.tlb -U axvlc_idl.c -H axvlc_idl.h $<
 endif
 endif
 
diff --git a/configure.ac b/configure.ac
index d02636f..3a3b17d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -137,6 +137,12 @@ AS_IF([test "${SYS}" = "mingw32"],[
 
     HAS_WIDL_DASH_L=no
     AS_IF([test "${WIDL}" != "no"],[
+        AS_IF([test -z ${WINE_SDK_PATH}],[
+            WINE_SDK_PATH=l
+        ])
+        AC_SUBST([WINE_SDK_PATH])
+        WIDLFLAGS="${WIDLFLAGS} -I${WINE_SDK_PATH}"
+
         AC_MSG_CHECKING([widl uses -L])
         AS_IF([$WIDL $WIDLFLAGS -L. -t /dev/null 2>/dev/null],[
             AC_MSG_RESULT([yes])



More information about the vlc-commits mailing list