From 452eaaa7958b768b200b06feffeb43021f8d3112 Mon Sep 17 00:00:00 2001 From: brarcher Date: Mon, 26 May 2014 21:03:09 +0000 Subject: [PATCH] autoconf: add cflag for Solaris to enable c99 features Without this flag, Solaris will fail to compile in check.h when it hits the variable macros. git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1137 64e312b2-a51f-0410-8e61-82d0ca0eb02a --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index 7ea71c1..1df5223 100644 --- a/configure.ac +++ b/configure.ac @@ -161,6 +161,9 @@ AX_CFLAGS_ADD([-Winit-self]) AX_CFLAGS_ADD([-Wmissing-include-dirs]) AX_CFLAGS_ADD([-Wswitch-default]) AX_CFLAGS_ADD([-Wunknown-pragmas]) +# The following flag is to enable C99 support on Solaris, which is +# necessary for variable macros in check.h +AX_CFLAGS_ADD([-qlanglvl=stdc99]) AC_CHECK_PROGS(GCOV, gcov, false) AC_CHECK_PROGS(LCOV, lcov, false) -- 2.49.0