From 439c12ca8967200d8762a83c02434ea0c319c5ed Mon Sep 17 00:00:00 2001 Message-Id: <439c12ca8967200d8762a83c02434ea0c319c5ed.1715627633.git.mdw@distorted.org.uk> From: Mark Wooding Date: Sun, 8 Jun 2008 20:51:50 +0100 Subject: [PATCH] Force -std=gnu99. If we're going to require GCC anyway we might as well get the full benefit. Organization: Straylight/Edgeware From: Richard Kettlewell --- configure.ac | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configure.ac b/configure.ac index f7956fd..44ca4b2 100644 --- a/configure.ac +++ b/configure.ac @@ -46,6 +46,13 @@ AC_PROG_CC AC_SET_MAKE if test "x$GCC" = xyes; then gcc_werror=-Werror + case "$CC" in + *-std=* ) + ;; + * ) + CC="${CC} -std=gnu99" + ;; + esac else AC_MSG_ERROR([GNU C is required to build this program]) gcc_werror="" -- [mdw]