summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorAlexander Adolf <alexander.adolf@condition-alpha.com>2025-11-16 17:59:02 +0100
committerEli Zaretskii <eliz@gnu.org>2025-12-06 12:15:46 +0200
commit3e81d0573a7d7519cb58f065e1f7780bd3bb3bb1 (patch)
treef1392204e8b2f7a48215fb105b458d4c9e0607a1 /configure.ac
parentddcbab28092446bd28be6194b3393e952d194b03 (diff)
; 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)
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac11
1 files changed, 10 insertions, 1 deletions
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"