From 37ce1ca65896e12d53434def836cbbaeddf4ab16 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Sat, 12 Jul 2008 18:04:40 +0200 Subject: [PATCH] Here is a patch, which adds support for tcc's alloca. --- configure.in | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/configure.in b/configure.in index c4bc8198..880c1680 100644 --- a/configure.in +++ b/configure.in @@ -1402,6 +1402,16 @@ AC_SUBST(LIBDIR) EL_LOG_CONFIG(CONFDIR, [System configuration directory], []) EL_LOG_CONFIG(LOCALEDIR, [Locale catalogs directory], []) + +AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include +]], [[#if !defined(__TINYC__) || !defined(alloca) + #error not tcc + #endif ]])],[cf_result=yes],[cf_result=no]) + +if test "$cf_result" = "yes"; then + AC_DEFINE([HAVE_ALLOCA]) + AC_DEFINE([_ALLOCA_H], [1], [alloca of tcc]) +fi # =================================================================== # A little fine tuning of gcc specific options (continued) # =================================================================== -- 2.11.4.GIT