Skip to content

Check if the macro AC_PROG_CC_C99 actually made the compiler accept C99 #6317

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,17 @@ else
BUILD_CC=$CC
fi

dnl The macro AC_PROG_CC_C99 sets the shell variable ac_cv_prog_cc_c99 to 'no'
dnl if the compiler does not support C99.i.e. does not support any of _Bool,
dnl flexible arrays, inline, long long int, mixed code and declarations,
dnl named initialization of structs, restrict, varargs macros, variable
dnl declarations in for loops and variable length arrays.
dnl
dnl https://www.gnu.org/software/autoconf/manual/autoconf-2.60/html_node/C-Compiler.html
if test "$ac_cv_prog_cc_c99" = no; then
AC_MSG_ERROR([C compiler would not accept C99 code])
fi

dnl Support systems with system libraries in e.g. /usr/lib64.
PHP_ARG_WITH([libdir],
[for system library directory],
Expand Down