From 3e81d0573a7d7519cb58f065e1f7780bd3bb3bb1 Mon Sep 17 00:00:00 2001 From: Alexander Adolf Date: Sun, 16 Nov 2025 17:59:02 +0100 Subject: [PATCH] ; xwidgets: pacify macOS compiler warnings * configure.ac: When the WebKit header files are not available in the hard-coded location, query for the location of the currently active SDK, and resort to the header files there. (Bug#79847) --- configure.ac | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index d17dbfa4358..1792464798c 100644 --- a/configure.ac +++ b/configure.ac @@ -4472,7 +4472,16 @@ if test "$with_xwidgets" != "no"; then dnl FIXME: Check framework WebKit2 dnl WEBKIT_REQUIRED=M.m.p WEBKIT_LIBS="-Wl,-framework -Wl,WebKit" - WEBKIT_CFLAGS="-I/System/Library/Frameworks/WebKit.framework/Headers" + WEBKIT_HEADERS="/System/Library/Frameworks/WebKit.framework/Headers" + if test -z "$xcsdkdir" -a -n "$XCRUN" -a ! -d "${WEBKIT_HEADERS}"; then + dnl WebKit headers not found. Try Xcode SDK dir if it is sane. + xcsdkdir=`$XCRUN --show-sdk-path 2>/dev/null` + case $xcsdkdir in + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) + xcsdkdir="" ;; + esac + fi + WEBKIT_CFLAGS="-I${xcsdkdir}${WEBKIT_HEADERS}" HAVE_WEBKIT="yes" HAVE_XWIDGETS=$HAVE_WEBKIT XWIDGETS_OBJ="xwidget.o"