@@ -600,6 +600,8 @@ jobs:
600
600
# Set correct preprocessor for macOS (prevent /lib/cpp fallback)
601
601
export CPP="clang -E"
602
602
export ac_cv_prog_CPP="clang -E"
603
+ # Bypass preprocessor sanity check entirely (problematic with complex CPPFLAGS)
604
+ export ac_cv_prog_CPP_works=yes
603
605
# Help iconv/gettext tests link/run cleanly (ensure -liconv seen first)
604
606
export LIBS="-liconv -lintl $LIBS"
605
607
# Ensure we link against libc++ (replace any libstdc++)
@@ -872,6 +874,7 @@ jobs:
872
874
ac_cv_prog_cc_c99= \
873
875
ac_cv_prog_cc_stdc= \
874
876
ac_cv_prog_CPP="clang -E" \
877
+ ac_cv_prog_CPP_works=yes \
875
878
ac_cv_header_stdc=yes \
876
879
ac_cv_header_sys_types_h=yes \
877
880
ac_cv_header_sys_stat_h=yes \
@@ -936,13 +939,10 @@ jobs:
936
939
export ac_cv_prog_CPP="gcc -E"
937
940
export CPP="gcc -E"
938
941
939
- # Test preprocessor before configure to ensure it works
940
- echo "🔍 Testing preprocessor sanity..."
941
- echo '#include <stdio.h>' | gcc -E - > /dev/null 2>&1 || {
942
- echo "❌ Preprocessor test failed, trying alternative"
943
- export CPP="/usr/bin/cpp"
944
- export ac_cv_prog_CPP="/usr/bin/cpp"
945
- }
942
+ # Bypass preprocessor sanity check entirely (it's problematic with fake_headers)
943
+ echo "🔍 Bypassing preprocessor sanity check..."
944
+ export ac_cv_prog_CPP_works=yes
945
+ export ac_cv_prog_CPP="gcc -E"
946
946
947
947
# Clear any existing autoconf cache that might cause issues
948
948
rm -rf autom4te.cache config.cache
@@ -973,6 +973,7 @@ jobs:
973
973
ac_cv_prog_cc_c99= \
974
974
ac_cv_prog_cc_stdc= \
975
975
ac_cv_prog_CPP="$CPP" \
976
+ ac_cv_prog_CPP_works=yes \
976
977
ac_cv_header_stdc=yes \
977
978
ac_cv_header_sys_types_h=yes \
978
979
ac_cv_header_sys_stat_h=yes \
0 commit comments