summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-10-22 19:28:46 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-10-22 19:28:46 +0000
commit60d97dc4c7942346e3a7cf6169fb23e0c9e6f380 (patch)
treea9d234ddec21e2e09acfe7054ac8933528b81500 /configure.in
parent0931ed26641624540ec5b53d4ec86fa88016bb29 (diff)
* configure.in: alloca is broken; use C_ALLOCA instead.
[ruby-dev:29416] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in12
1 files changed, 11 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 0c9fb87..b8bb3b0 100644
--- a/configure.in
+++ b/configure.in
@@ -502,7 +502,17 @@ AC_STRUCT_ST_RDEV
dnl Checks for library functions.
AC_TYPE_GETGROUPS
AC_TYPE_SIGNAL
-AC_FUNC_ALLOCA
+case "${target_cpu}-${target_os}" in
+powerpc-darwin*)
+ AC_LIBSOURCES(alloca.c)
+ AC_SUBST([ALLOCA], [\${LIBOBJDIR}alloca.${ac_objext}])
+ AC_DEFINE(C_ALLOCA)
+ AC_DEFINE_UNQUOTED(alloca, alloca)
+ ;;
+*)
+ AC_FUNC_ALLOCA
+ ;;
+esac
AC_FUNC_MEMCMP
AC_FUNC_FSEEKO
AC_CHECK_FUNCS(ftello)