From aae03570230d37a74b03892021e5dbe24b7739d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Wed, 19 Jan 2011 14:57:48 +0100 Subject: [PATCH] build: require c99 Because we use c99: stdbool.h, inttypes.h, bool, variadic macros, // comments, ... --- configure.ac | 4 ++++ server/Makefile.am | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 430bf839..4b3d59fe 100644 --- a/configure.ac +++ b/configure.ac @@ -14,6 +14,10 @@ AM_INIT_AUTOMAKE([dist-bzip2 no-dist-gzip subdir-objects]) AM_MAINTAINER_MODE AC_PROG_CC +AC_PROG_CC_C99 +if test x"$ac_cv_prog_cc_c99" = xno; then + AC_MSG_ERROR([C99 compiler is required.]) +fi AC_PROG_CXX AC_PROG_INSTALL AC_CANONICAL_HOST diff --git a/server/Makefile.am b/server/Makefile.am index 81649a4f..601840ab 100644 --- a/server/Makefile.am +++ b/server/Makefile.am @@ -16,7 +16,6 @@ INCLUDES = \ $(SSL_CFLAGS) \ $(VISIBILITY_HIDDEN_CFLAGS) \ $(WARN_CFLAGS) \ - -std=gnu99 \ $(NULL) spice_built_sources = generated_marshallers.c generated_marshallers.h generated_demarshallers.c