Skip to content

Commit bf5fdbd

Browse files
authored
AC_PROG_CC_C99 is obsolete with autoconf >= 2.70 (#10383)
To make sure that compiler supports C99 before Autoconf 2.69, this was needed. But with Autoconf 2.70 and later the macro is obsolete because the checks are done in AC_PROG_CC and warnings are emitted when building configure script. Fixes part of GH-9483
1 parent 2b55dee commit bf5fdbd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

configure.ac

+3-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,9 @@ PKG_PROG_PKG_CONFIG
128128
AC_PROG_CC([cc gcc])
129129
PHP_DETECT_ICC
130130
PHP_DETECT_SUNCC
131-
AC_PROG_CC_C99
131+
132+
dnl AC_PROG_CC_C99 is obsolete with autoconf >= 2.70 yet necessary for <= 2.69.
133+
m4_version_prereq([2.70],,[AC_PROG_CC_C99])
132134
AC_PROG_CPP
133135
AC_USE_SYSTEM_EXTENSIONS
134136
AC_PROG_LN_S

0 commit comments

Comments
 (0)