X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/1bce463aca30f9a111ed8f0e8ec0605e01311f89..33e95f039e696d2cfe6b673166a064e48ed1e341:/configure.ac diff --git a/configure.ac b/configure.ac index 03ba384..2522f45 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=""