[build] autotools use AC_PROG_CC_STDC macro

autotools now use AC_PROG_CC_STDC macro instead of -std=gnu99.
The default in current modern gcc compilers is -std=gnu11

(Note: src/CMakeLists.txt and SConstruct still specify -std=gnu99)
This commit is contained in:
Glenn Strauss 2017-05-15 20:26:56 -04:00
parent 1e8147fc3a
commit 6f75cdddda
1 changed files with 1 additions and 1 deletions

View File

@ -62,6 +62,7 @@ AC_DEFUN([TRY_LDFLAGS],
dnl Checks for programs.
AC_PROG_CC
AC_PROG_CC_STDC
AX_PROG_CC_FOR_BUILD
AM_PROG_CC_C_O
AC_PROG_LD
@ -965,7 +966,6 @@ AM_CONDITIONAL(CHECK_WITH_FASTCGI, test "x$fastcgi_found" = xyes)
dnl check for extra compiler options (warning options)
if test "${GCC}" = "yes"; then
TRY_CFLAGS([-Wall -W -Wshadow -pedantic])
TRY_CFLAGS([-std=gnu99])
fi
AC_ARG_ENABLE(extra-warnings,