From: Richard Kettlewell Date: Sun, 8 Jun 2008 19:51:50 +0000 (+0100) Subject: Force -std=gnu99. If we're going to require GCC anyway we might as X-Git-Tag: 5.0.3~7^2~15^2~74 X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/commitdiff_plain/439c12ca8967200d8762a83c02434ea0c319c5ed?hp=1f868ca317a161c7b754dc2d80b3be49eddafb23 Force -std=gnu99. If we're going to require GCC anyway we might as well get the full benefit. --- 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=""