From d256f069a5aa30bf5ffcfc4b73047ce0f372ea10 Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Thu, 15 Oct 2020 04:28:42 +1100 Subject: -3rdparty/expat: Update to 2.2.10." -Fixed tiny build (missing s11c_bg_device) and unused lambda capture in emu/rendlay.cpp. --- .../expat/conftools/ax-append-compile-flags.m4 | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 3rdparty/expat/conftools/ax-append-compile-flags.m4 (limited to '3rdparty/expat/conftools/ax-append-compile-flags.m4') diff --git a/3rdparty/expat/conftools/ax-append-compile-flags.m4 b/3rdparty/expat/conftools/ax-append-compile-flags.m4 new file mode 100644 index 00000000000..9c856356c0c --- /dev/null +++ b/3rdparty/expat/conftools/ax-append-compile-flags.m4 @@ -0,0 +1,46 @@ +# ============================================================================ +# https://www.gnu.org/software/autoconf-archive/ax_append_compile_flags.html +# ============================================================================ +# +# SYNOPSIS +# +# AX_APPEND_COMPILE_FLAGS([FLAG1 FLAG2 ...], [FLAGS-VARIABLE], [EXTRA-FLAGS], [INPUT]) +# +# DESCRIPTION +# +# For every FLAG1, FLAG2 it is checked whether the compiler works with the +# flag. If it does, the flag is added FLAGS-VARIABLE +# +# If FLAGS-VARIABLE is not specified, the current language's flags (e.g. +# CFLAGS) is used. During the check the flag is always added to the +# current language's flags. +# +# If EXTRA-FLAGS is defined, it is added to the current language's default +# flags (e.g. CFLAGS) when the check is done. The check is thus made with +# the flags: "CFLAGS EXTRA-FLAGS FLAG". This can for example be used to +# force the compiler to issue an error when a bad flag is given. +# +# INPUT gives an alternative input source to AC_COMPILE_IFELSE. +# +# NOTE: This macro depends on the AX_APPEND_FLAG and +# AX_CHECK_COMPILE_FLAG. Please keep this macro in sync with +# AX_APPEND_LINK_FLAGS. +# +# LICENSE +# +# Copyright (c) 2011 Maarten Bosmans +# +# Copying and distribution of this file, with or without modification, are +# permitted in any medium without royalty provided the copyright notice +# and this notice are preserved. This file is offered as-is, without any +# warranty. + +#serial 7 + +AC_DEFUN([AX_APPEND_COMPILE_FLAGS], +[AX_REQUIRE_DEFINED([AX_CHECK_COMPILE_FLAG]) +AX_REQUIRE_DEFINED([AX_APPEND_FLAG]) +for flag in $1; do + AX_CHECK_COMPILE_FLAG([$flag], [AX_APPEND_FLAG([$flag], [$2])], [], [$3], [$4]) +done +])dnl AX_APPEND_COMPILE_FLAGS -- cgit v1.2.3-70-g09d2