[minicoredumper] [PATCH 3/8] buildsystem: let the autotools enable C99 standard

Juergen Borleis jbe at pengutronix.de
Mon Mar 11 11:23:13 CET 2019


>From the autoconf doc:

"If the C compiler is not in C99 mode by default, try to add an option to
output variable CC to make it so."

Signed-off-by: Juergen Borleis <jbe at pengutronix.de>
---
 configure.ac | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/configure.ac b/configure.ac
index 8048fec..d79fbec 100644
--- a/configure.ac
+++ b/configure.ac
@@ -21,7 +21,7 @@ AC_CANONICAL_HOST
 AC_CANONICAL_BUILD
 AC_LANG([C])
 
-AC_PROG_CC
+AC_PROG_CC_C99
 AM_PROG_CC_C_O
 AC_PROG_INSTALL
 AC_PROG_LIBTOOL
@@ -152,9 +152,6 @@ AS_IF([test "x$MCD_REGD_USER_GROUP" = x],
 MCD_CPPFLAGS="-Wall -D_GNU_SOURCE $MCD_WERROR"
 AC_SUBST([MCD_CPPFLAGS])
 
-MCD_CFLAGS="-std=c99"
-AC_SUBST([MCD_CFLAGS])
-
 init_ddir="${sysconfdir}/init.d"
 initdefaultsdir="${sysconfdir}/default"
 AS_IF([test "x$runstatedir" = x], [runstatedir="${localstatedir}/run"], [])
-- 
2.11.0




More information about the minicoredumper mailing list