From: Ruben Kerkhof Date: Wed, 3 Aug 2016 12:28:29 +0000 (+0200) Subject: Require a compiler that understands C99 X-Git-Tag: collectd-5.6.0~124^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1832%2Fhead;p=thirdparty%2Fcollectd.git Require a compiler that understands C99 Upcoming changes will requires C99 support. For newer compilers this is the default, but older compilers needs a flag like -std=gnu99 or -std=c99. --- diff --git a/configure.ac b/configure.ac index 15b42d594..b1c83013b 100644 --- a/configure.ac +++ b/configure.ac @@ -42,7 +42,9 @@ AC_SYS_LARGEFILE # # Checks for programs. # -AC_PROG_CC +AC_PROG_CC_C99([], + [AC_MSG_ERROR([No compiler found that supports C99])] +) AC_PROG_CXX AC_PROG_CPP AC_PROG_EGREP