[Spice-devel] [PATCH 1/8] build: require c99

Marc-André Lureau marcandre.lureau at redhat.com
Tue May 3 07:37:38 PDT 2011


Because we use c99: stdbool.h, inttypes.h, bool, variadic macros, // comments, ...
---
 configure.ac       |    5 +++++
 server/Makefile.am |    1 -
 2 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index 430bf83..9a303c9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -14,6 +14,11 @@ 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
+AS_IF([test "$CXXFLAGS" = ""], [], [_cxxflags_is_set=yes])
 AC_PROG_CXX
 AC_PROG_INSTALL
 AC_CANONICAL_HOST
diff --git a/server/Makefile.am b/server/Makefile.am
index 81649a4..601840a 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
-- 
1.7.4



More information about the Spice-devel mailing list