From: Chris Hanson Date: Mon, 22 Mar 2010 07:13:41 +0000 (-0700) Subject: Detect whether C99 is supported. X-Git-Tag: 20100708-Gtk~78 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=2e25b2fed5470df48d3a3623942a4dc2a037bcf0;p=mit-scheme.git Detect whether C99 is supported. --- 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