configure.ac: also try -std=c99

If -std=c17 and -std=c11 don't work, try -std=c99 as well.
-std=c90 is unlikely to work because of the requirement for "long
long" on L32 platforms, which isn't likely to be supported on a pure
C90 compiler.

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
This commit is contained in:
H. Peter Anvin (Intel) 2020-07-09 19:33:26 -07:00
parent 1b9c8ec434
commit e1f0b35af0

View file

@ -29,7 +29,8 @@ AC_SYS_LARGEFILE
AC_PROG_CC AC_PROG_CC
AC_PROG_CC_STDC AC_PROG_CC_STDC
PA_ADD_CFLAGS([-std=c17], [], [], PA_ADD_CFLAGS([-std=c17], [], [],
[PA_ADD_CFLAGS([-std=c11])]) [PA_ADD_CFLAGS([-std=c11], [], [],
[PA_ADD_CFLAGS([-std=c99])])])
dnl If the user did not specify a CFLAGS default, change default dnl If the user did not specify a CFLAGS default, change default
dnl to -O0 for debugging dnl to -O0 for debugging