mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Here is a patch, which adds support for tcc's alloca.
This commit is contained in:
parent
e9d4d3aef2
commit
37ce1ca658
10
configure.in
10
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 <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)
|
||||
# ===================================================================
|
||||
|
Loading…
Reference in New Issue
Block a user