From 2e25b2fed5470df48d3a3623942a4dc2a037bcf0 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Mon, 22 Mar 2010 00:13:41 -0700 Subject: [PATCH] Detect whether C99 is supported. --- src/microcode/configure.ac | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/microcode/configure.ac b/src/microcode/configure.ac index 5b9054b8b..6d08886c0 100644 --- a/src/microcode/configure.ac +++ b/src/microcode/configure.ac @@ -204,6 +204,13 @@ SAVED_LDFLAGS=${LDFLAGS} dnl Checks for programs. AC_PROG_CC +AC_PROG_CC_STDC +if test "x${ac_cv_prog_cc_c99}" != xno; then + AC_DEFINE([HAVE_STDC_99], [1], [Does the compiler support C99?]) +fi +if test "x${ac_cv_prog_cc_c89}" != xno; then + AC_DEFINE([HAVE_STDC_89], [1], [Does the compiler support C89?]) +fi AC_C_BACKSLASH_A AC_C_BIGENDIAN AC_C_CONST -- 2.25.1