From 281a16d15fad5b05d88d03e2f4c9718c81657840 Mon Sep 17 00:00:00 2001
From: Andrea Corallo <acorallo@gnu.org>
Date: Wed, 13 Dec 2023 12:22:39 +0100
Subject: [PATCH] * configure.ac: Fix '--without-all' if libgccjit installed
 (bug#67799)

---
 configure.ac | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/configure.ac b/configure.ac
index a279f78a0ea..0224c9c32eb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5149,6 +5149,11 @@ source on this site:
 
   with_native_compilation=no])
 
+if test "$with_features" = "no" \
+   && test "${with_native_compilation}" = "default"; then
+  with_native_compilation=no
+fi
+
 if test "${with_native_compilation}" = "default"; then
     # Check if libgccjit is available.
     AC_CHECK_LIB([gccjit], [gcc_jit_context_acquire],
-- 
2.39.5