ruby-changes:11518
From: nobu <ko1@a...>
Date: Tue, 7 Apr 2009 02:32:23 +0900 (JST)
Subject: [ruby-changes:11518] Ruby:r23146 (trunk): * configure.in (RUBY_DEFINT): should pass includes to
nobu 2009-04-07 02:27:50 +0900 (Tue, 07 Apr 2009) New Revision: 23146 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=23146 Log: * configure.in (RUBY_DEFINT): should pass includes to AC_CHECK_SIZEOF and RUBY_CHECK_SIZEOF. Modified files: trunk/ChangeLog trunk/configure.in Index: configure.in =================================================================== --- configure.in (revision 23145) +++ configure.in (revision 23146) @@ -938,8 +938,8 @@ ]) AC_TYPE_SIZE_T -RUBY_CHECK_SIZEOF(size_t, [int long void*]) -RUBY_CHECK_SIZEOF(ptrdiff_t, size_t) +RUBY_CHECK_SIZEOF(size_t, [int long void*], [], [@%:@include <sys/types.h>]) +RUBY_CHECK_SIZEOF(ptrdiff_t, size_t, [], [@%:@include <stddef.h>]) AC_STRUCT_ST_BLKSIZE AC_STRUCT_ST_BLOCKS AC_STRUCT_ST_RDEV @@ -981,7 +981,8 @@ if test "${rb_cv_type_$1}" != no; then AC_DEFINE([HAVE_]AS_TR_CPP($1), 1) if test "${rb_cv_type_$1}" = yes; then - m4_bmatch([$2], [^[1-9][0-9]*$], [AC_CHECK_SIZEOF($1)], [RUBY_CHECK_SIZEOF($1, $2)]) + m4_bmatch([$2], [^[1-9][0-9]*$], [AC_CHECK_SIZEOF([$1], 0, [$4])], + [RUBY_CHECK_SIZEOF([$1], [$2], [], [$4])]) else AC_DEFINE_UNQUOTED($1, [$rb_cv_type_$1]) AC_DEFINE_UNQUOTED([SIZEOF_]AS_TR_CPP($1), [SIZEOF_]AS_TR_CPP([$rb_cv_type_$1])) @@ -1001,7 +1002,7 @@ RUBY_DEFINT(uint128_t, 16, unsigned) RUBY_DEFINT(intptr_t, void*) RUBY_DEFINT(uintptr_t, void*, unsigned) -RUBY_DEFINT(ssize_t, size_t) dnl may differ from int, so not use AC_TYPE_SSIZE_T. +RUBY_DEFINT(ssize_t, size_t, [], [@%:@include <sys/types.h>]) dnl may differ from int, so not use AC_TYPE_SSIZE_T. AC_CACHE_CHECK(for stack end address, rb_cv_stack_end_address, [rb_cv_stack_end_address=no Index: ChangeLog =================================================================== --- ChangeLog (revision 23145) +++ ChangeLog (revision 23146) @@ -1,5 +1,8 @@ -Tue Apr 7 02:25:26 2009 Nobuyoshi Nakada <nobu@r...> +Tue Apr 7 02:27:49 2009 Nobuyoshi Nakada <nobu@r...> + * configure.in (RUBY_DEFINT): should pass includes to + AC_CHECK_SIZEOF and RUBY_CHECK_SIZEOF. + * configure.in (CFLAGS, CXXFLAGS): need ARCH_FLAG for universal binary. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/