configure: Restore warning for missing PE compiler.

It was dropped in cda2886fd3.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56665
This commit is contained in:
Alexandre Julliard 2024-05-14 09:46:58 +02:00
parent e6e1bbb410
commit 4f68f67cb5
2 changed files with 14 additions and 0 deletions

11
configure vendored
View file

@ -12027,6 +12027,17 @@ case $HOST_ARCH in
arm|aarch64)
test "x$PE_ARCHS" != x || as_fn_error $? "PE cross-compilation is required for $HOST_ARCH, please install clang/llvm-dlltool/lld, or llvm-mingw." "$LINENO" 5
DLLEXT="" ;;
*)
if test "x$PE_ARCHS" = "x"
then :
case "x$with_mingw" in
x) as_fn_append wine_notices "|Suitable PE cross-compiler not found, PE files won't be built." ;;
xno) ;;
*) as_fn_error $? "Suitable PE cross-compiler not found, PE files won't be built.
This is an error since --with-mingw was requested." "$LINENO" 5 ;;
esac
fi ;;
esac

View file

@ -1016,6 +1016,9 @@ case $HOST_ARCH in
arm|aarch64)
test "x$PE_ARCHS" != x || AC_MSG_ERROR([PE cross-compilation is required for $HOST_ARCH, please install clang/llvm-dlltool/lld, or llvm-mingw.])
DLLEXT="" ;;
*)
WINE_NOTICE_WITH(mingw,[test "x$PE_ARCHS" = "x"],
[Suitable PE cross-compiler not found, PE files won't be built.]) ;;
esac
dnl **** External libraries ****