From e59f00fb43c2b83bdadb17fa35c3018f817a3806 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Sun, 5 Apr 2015 16:40:11 +0100 Subject: configure: request/set the compiler in C99 mode Required by intel and drmstat at least. Considering that every compiler used to build libdrm is C99 compatible, just enable it for the whole build. Signed-off-by: Emil Velikov --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index e7152623..320e482e 100644 --- a/configure.ac +++ b/configure.ac @@ -36,6 +36,11 @@ m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) # Check for programs AC_PROG_CC +AC_PROG_CC_C99 + +if test "x$ac_cv_prog_cc_c99" = xno; then + AC_MSG_ERROR([Building libdrm requires C99 enabled compiler]) +fi AC_USE_SYSTEM_EXTENSIONS AC_SYS_LARGEFILE -- cgit v1.2.3