File tree Expand file tree Collapse file tree 3 files changed +31
-6
lines changed Expand file tree Collapse file tree 3 files changed +31
-6
lines changed Original file line number Diff line number Diff line change @@ -8121,7 +8121,11 @@ else case e in #(
8121
8121
# error "Compiler does not advertise ISO C conformance"
8122
8122
#endif
8123
8123
8124
+ // Most new features have feature tests. but bool type is fundamental.
8125
+
8124
8126
int main(void) {
8127
+ bool x = true;
8128
+
8125
8129
return 0;
8126
8130
}
8127
8131
@@ -8169,7 +8173,11 @@ else case e in #(
8169
8173
# error "Compiler does not advertise ISO C conformance"
8170
8174
#endif
8171
8175
8176
+ // Most new features have feature tests. but bool type is fundamental.
8177
+
8172
8178
int main(void) {
8179
+ bool x = true;
8180
+
8173
8181
return 0;
8174
8182
}
8175
8183
@@ -8201,8 +8209,15 @@ fi
8201
8209
8202
8210
8203
8211
if test x$use_C23 = xyes; then
8204
- CC=${CC23}
8205
- CFLAGS=${C23FLAGS}
8212
+ if test x${r_cv_C23} = xyes; then
8213
+ CC=${CC23}
8214
+ CFLAGS=${C23FLAGS}
8215
+ else
8216
+ CC=${CC_save}
8217
+ CFLAGS=${CFLAGS_save}
8218
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: C23 support is unavailable" >&5
8219
+ printf "%s\n" "$as_me: WARNING: C23 support is unavailable" >&2;}
8220
+ fi
8206
8221
else
8207
8222
CC=${CC_save}
8208
8223
CFLAGS=${CFLAGS_save}
@@ -27514,7 +27529,7 @@ _ACEOF
27514
27529
# flags.
27515
27530
r_save_CFLAGS=$CFLAGS
27516
27531
CFLAGS="$CFLAGS $r_verb"
27517
- (eval echo $as_me:27517 : \"$ac_link\") >&5
27532
+ (eval echo $as_me:27532 : \"$ac_link\") >&5
27518
27533
r_c_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
27519
27534
echo "$r_c_v_output" >&5
27520
27535
CFLAGS=$r_save_CFLAGS
@@ -27592,7 +27607,7 @@ _ACEOF
27592
27607
# flags.
27593
27608
r_save_CFLAGS=$CFLAGS
27594
27609
CFLAGS="$CFLAGS $r_cv_prog_c_v"
27595
- (eval echo $as_me:27595 : \"$ac_link\") >&5
27610
+ (eval echo $as_me:27610 : \"$ac_link\") >&5
27596
27611
r_c_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
27597
27612
echo "$r_c_v_output" >&5
27598
27613
CFLAGS=$r_save_CFLAGS
Original file line number Diff line number Diff line change @@ -777,8 +777,14 @@ AC_SUBST(CC23)
777
777
AC_SUBST ( C23FLAGS )
778
778
779
779
if test x$use_C23 = xyes; then
780
- CC=${CC23}
781
- CFLAGS=${C23FLAGS}
780
+ if test x${r_cv_C23} = xyes; then
781
+ CC=${CC23}
782
+ CFLAGS=${C23FLAGS}
783
+ else
784
+ CC=${CC_save}
785
+ CFLAGS=${CFLAGS_save}
786
+ AC_MSG_WARN ( [ C23 support is unavailable] )
787
+ fi
782
788
else
783
789
CC=${CC_save}
784
790
CFLAGS=${CFLAGS_save}
Original file line number Diff line number Diff line change @@ -5370,7 +5370,11 @@ AC_DEFUN([R_C23],
5370
5370
# error "Compiler does not advertise ISO C conformance"
5371
5371
#endif
5372
5372
5373
+ // Most new features have feature tests. but bool type is fundamental.
5374
+
5373
5375
int main(void) {
5376
+ bool x = true;
5377
+
5374
5378
return 0;
5375
5379
}
5376
5380
You can’t perform that action at this time.
0 commit comments