From c9f5d9de49cbd392516fab9b8a4fdf02692a8b8d Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Sun, 27 May 2007 07:25:48 +0000 Subject: [PATCH] Check for alloca.h. --- stepmania/configure.ac | 2 +- stepmania/src/archutils/Unix/arch_setup.h | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/stepmania/configure.ac b/stepmania/configure.ac index 63108ef8c9..b067f34dbd 100644 --- a/stepmania/configure.ac +++ b/stepmania/configure.ac @@ -198,7 +198,7 @@ AC_CHECK_HEADER(sys/soundcard.h, [AC_DEFINE(HAVE_OSS, 1, [OSS support available] AC_CHECK_DECL(OSS_GETVERSION, AC_DEFINE([HAVE_OSS_GETVERSION],1,[OSS_GETVERSION is defined]), , [#include ]) AC_ARG_ENABLE(force-oss, AS_HELP_STRING([--enable-force-oss],[Force OSS]), force_oss=$enableval, force_oss=no) AC_CHECK_HEADER(stdint.h, , [AC_DEFINE(MISSING_STDINT_H, 1, [stdint.h is missing])]) -AC_CHECK_HEADERS([inttypes.h endian.h machine/endian.h]) +AC_CHECK_HEADERS([inttypes.h endian.h machine/endian.h alloca.h]) AC_MSG_CHECKING(if cstdlib breaks llabs) AC_LANG_PUSH(C++) diff --git a/stepmania/src/archutils/Unix/arch_setup.h b/stepmania/src/archutils/Unix/arch_setup.h index cafbedf07c..e741a2f68d 100644 --- a/stepmania/src/archutils/Unix/arch_setup.h +++ b/stepmania/src/archutils/Unix/arch_setup.h @@ -5,12 +5,14 @@ #define __C99FEATURES__ #endif +#ifdef HAVE_ALLOCA_H +#include +#endif + #if !defined(MISSING_STDINT_H) /* need to define int64_t if so */ #include #endif -#include - #ifdef HAVE_SYS_PARAM_H #include #endif