diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-09 19:43:24 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-09 19:43:24 +0000 |
commit | 99bb6a3f768c7981d99991905e61883b663e5fbb (patch) | |
tree | c56141281edd4b97f7ed5e26c49c13ee04f6574c | |
parent | 53f011e662e74a846abf2c53ad2d1b096811f4f7 (diff) | |
download | ruby-99bb6a3f768c7981d99991905e61883b663e5fbb.tar.gz |
* configure.in (RUBY_CHECK_SIZEOF): fix for fallback.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22864 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | configure.in | 12 |
2 files changed, 11 insertions, 5 deletions
@@ -1,3 +1,7 @@ +Tue Mar 10 04:43:19 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * configure.in (RUBY_CHECK_SIZEOF): fix for fallback. + Tue Mar 10 03:48:27 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> * ext/dl/callback/depend: fix for parallel build. diff --git a/configure.in b/configure.in index 5b01e0fa69..c183b08212 100644 --- a/configure.in +++ b/configure.in @@ -341,6 +341,7 @@ AC_CACHE_CHECK([char bit], [rb_cv_char_bit], [_AC_COMPUTE_INT_COMPILE([CHAR_BIT], [rb_cv_char_bit], [AC_INCLUDES_DEFAULT([@%:@include <limits.h>])], [rb_cv_char_bit=8])]) +dnl RUBY_CHECK_SIZEOF [typename], [maybe same size types], [macros], [include] AC_DEFUN([RUBY_CHECK_SIZEOF], [if test "$universal_binary" = yes; then AC_CACHE_CHECK([size of $1], [AS_TR_SH([ac_cv_sizeof_$1])], [dnl @@ -373,18 +374,19 @@ AC_CACHE_CHECK([size of $1], [AS_TR_SH([ac_cv_sizeof_$1])], [dnl done done }]) - _AC_COMPUTE_INT_COMPILE(AS_TR_CPP(SIZEOF_$1), [t], [AC_INCLUDES_DEFAULT([ -$cond -@%:@else + _AC_COMPUTE_INT_COMPILE(AS_TR_CPP(SIZEOF_$1), [t], [AC_INCLUDES_DEFAULT([$4])] +[${cond+$cond +@%:@else} typedef $1 ac__type_sizeof_; @%:@define AS_TR_CPP(SIZEOF_$1) sizeof(ac__type_sizeof_) -@%:@endif +${cond+@%:@endif} @%:@ifndef AS_TR_CPP(SIZEOF_$1) @%:@define AS_TR_CPP(SIZEOF_$1) 0 -@%:@endif])], [unset t]) +@%:@endif], [unset t]) if test ${t-0} != 0; then AS_TR_SH(ac_cv_sizeof_$1)="${AS_TR_SH(ac_cv_sizeof_$1)+${AS_TR_SH(ac_cv_sizeof_$1)-} }${t}" fi + : ${AS_TR_SH(ac_cv_sizeof_$1)=0} ]) { unset cond |