From 5610e5dc70196d9dc6c884c4f977572b05db67e3 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 7 Feb 2009 09:02:50 +0000 Subject: * configure.in (--with-arch): added new option to support universal binary. replaced --enable-fat-binary option which didn't work actually. * configure.in (RUBY_FUNC_ATTRIBUTE): added conditional test. * configure.in (ac_cv_type_getgroups): decalared because getgroups() fills rest of the buffer with garbages on Rosetta. * configure.in (alloca): defines only for powerpc, but always create empty object to suppress ld warning. * configure.in (LIBRUBY_DLDFLAGS): set compatibility version with TEENY. * configure.in (CFLAGS, LDFLAGS): separates ARCH_FLAG. * configure.in (arch): renamed to "universal" from "fat". * Makefile.in (ARCH_FLAG): added. * include/ruby/defines.h (WORDS_BIGENDIAN): uses AC_APPLE_UNIVERSAL_BUILD. * missing/alloca.c (alloca): defines only if C_ALLOCA is defined. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- missing/alloca.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'missing/alloca.c') diff --git a/missing/alloca.c b/missing/alloca.c index 067f76b183..620eef12e5 100644 --- a/missing/alloca.c +++ b/missing/alloca.c @@ -30,6 +30,8 @@ static char SCCSid[] = "@(#)alloca.c 1.1"; /* for the "what" utility */ #endif #include "ruby/config.h" +#ifdef C_ALLOCA + #ifdef emacs #ifdef static /* actually, only want this if static is defined as "" @@ -192,3 +194,4 @@ alloca (size) /* returns pointer to storage */ } } +#endif -- cgit v1.2.3