[PATCH 3/5] configure: Don't use a bundled include path if external linker flags are specified.

Zebediah Figura zfigura at codeweavers.com
Mon Nov 29 16:43:07 CST 2021


The external include path might be empty e.g. if the relevant headers are to be
found directly in the MinGW sysroot, but we still don't want to use the bundled
library's include path in that case.

Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
---
 aclocal.m4 | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/aclocal.m4 b/aclocal.m4
index a261105d44d..07a0359a3f1 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -133,8 +133,10 @@ AC_DEFUN([WINE_EXTLIB_FLAGS],
 AS_VAR_PUSHDEF([ac_libs],[[$1]_PE_LIBS])dnl
 AC_ARG_VAR(ac_cflags, [C compiler flags for the PE $2, overriding the bundled version])dnl
 AC_ARG_VAR(ac_libs, [Linker flags for the PE $2, overriding the bundled version])dnl
-AS_VAR_IF([ac_cflags],[],[ac_cflags=$4],[enable_$2=no])
-AS_VAR_IF([ac_libs],[],[ac_libs=$3],[enable_$2=no])
+AS_VAR_IF([ac_libs],[],
+  [ac_libs=$3
+   AS_VAR_IF([ac_cflags],[],[ac_cflags=$4],[enable_$2=no])],
+  [enable_$2=no])
 AS_ECHO(["$as_me:${as_lineno-$LINENO}: $2 cflags: $ac_cflags"]) >&AS_MESSAGE_LOG_FD
 AS_ECHO(["$as_me:${as_lineno-$LINENO}: $2 libs: $ac_libs"]) >&AS_MESSAGE_LOG_FD
 AS_VAR_POPDEF([ac_libs])dnl
-- 
2.34.0




More information about the wine-devel mailing list