Fix the Android build

* configure.ac: Don't test for libgccjit.h if a preceding test
have already concluded that native compilation is unavailable.
This commit is contained in:
Po Lu 2026-06-06 11:38:04 +08:00
parent 3801c09ae2
commit 916572f6e0

View file

@ -5271,12 +5271,14 @@ if test "${with_native_compilation}" != "no"; then
else
libgccjit_not_found_err
fi])
AC_CHECK_HEADERS([libgccjit.h], [],
# `libgcc_not_found' may set `with_native_compilation' to `no'.
AS_IF([test "$with_native_compilation" != "no"],
[AC_CHECK_HEADERS([libgccjit.h], [],
[if test "${with_native_compilation}" = "default"; then
libgccjit_dev_not_found
else
libgccjit_dev_not_found_err
fi])
fi])])
if test "${with_native_compilation}" != "no"; then
# Check if libgccjit really works.
AC_RUN_IFELSE([libgccjit_smoke_test], [],