mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-06-14 12:31:25 +00:00
; 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)
This commit is contained in:
parent
ddcbab2809
commit
3e81d0573a
1 changed files with 10 additions and 1 deletions
11
configure.ac
11
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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue