diff --git a/wscript b/wscript index 07ee9547..83133321 100644 --- a/wscript +++ b/wscript @@ -378,6 +378,9 @@ def configure(conf): conf.define('ALLOCA_H', 'alloca.h') elif conf.check_cc(header_name='malloc.h', mandatory=False): conf.define('ALLOCA_H', 'malloc.h') + elif conf.check_cc(fragment = '''#include + int main(void) { alloca(1); }''', msg = 'Checking for alloca in stdlib.h'): + conf.define('ALLOCA_H', 'stdlib.h') if conf.env.DEST_OS == 'nswitch': conf.check_cfg(package='solder', args='--cflags --libs', uselib_store='SOLDER')