1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-20 00:15:31 +00:00

Here is a patch, which adds support for tcc's alloca.

This commit is contained in:
Witold Filipczyk 2008-07-12 18:04:40 +02:00 committed by Kalle Olavi Niemitalo
parent e9d4d3aef2
commit 37ce1ca658

View File

@ -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 <stddef.h>
]], [[#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)
# ===================================================================