summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2017-05-15 20:26:56 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2017-05-15 22:02:33 -0400
commit6f75cddddaa8848b729569daab4059e180ce0eb1 (patch)
treec272430a52206471378c71b6548ae75a7c7028e3 /configure.ac
parent1e8147fc3aa278e5772836b08136034343809f19 (diff)
downloadlighttpd1.4-6f75cddddaa8848b729569daab4059e180ce0eb1.tar.gz
lighttpd1.4-6f75cddddaa8848b729569daab4059e180ce0eb1.zip
[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)
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 2e755f9f..57e7aa5c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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,