buildsys: fix enabling C standards for older autoconf broken in 1bc8abd7

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
This commit is contained in:
Yury V. Zaytsev 2024-11-03 08:55:43 +01:00
parent ec66b0be04
commit fdc445ea8d
1 changed files with 5 additions and 0 deletions

View File

@ -42,6 +42,11 @@ AC_CHECK_TOOLS([AR], [ar gar])
AC_PROG_CC AC_PROG_CC
# AC_PROG_CC doesn't try enabling C99 in autoconf 2.69 and below, but
# AC_PROG_CC_C99 is deprecated in newer ones. In autoconf 2.70+ both
# will try enabling features up to C11.
m4_version_prereq([2.70], [AC_PROG_CC], [AC_PROG_CC_C99])
mc_CHECK_CFLAGS mc_CHECK_CFLAGS
CFLAGS_OPTS="" CFLAGS_OPTS=""