From f7d8be0478cb9fa802305dbcf5afb82f23539ed7 Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Sat, 7 Feb 2026 22:29:42 -0800 Subject: Add a test to configure to check for a working compiler. --- configure | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'configure') diff --git a/configure b/configure index e183abb7..daa4aa73 100755 --- a/configure +++ b/configure @@ -476,6 +476,13 @@ tryboth() cat > $test.c << EOF int foo() { return 0; } EOF +echo "Checking for compiler..." >> configure.log +if try $CC -c $test.c; then + : +else + echo "Missing or broken C compiler." | tee -a configure.log + leave 1 +fi echo "Checking for obsessive-compulsive compiler options..." >> configure.log if try $CC -c $CFLAGS $test.c; then : -- cgit v1.2.3-55-g6feb