ruby-changes:11207
From: nobu <ko1@a...>
Date: Sat, 7 Mar 2009 22:06:29 +0900 (JST)
Subject: [ruby-changes:11207] Ruby:r22816 (trunk): * configure.in (universal_binary): checks if sizes are same on all
nobu 2009-03-07 22:06:05 +0900 (Sat, 07 Mar 2009) New Revision: 22816 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=22816 Log: * configure.in (universal_binary): checks if sizes are same on all architectures. Modified files: trunk/ChangeLog trunk/configure.in Index: configure.in =================================================================== --- configure.in (revision 22815) +++ configure.in (revision 22816) @@ -344,6 +344,20 @@ AC_CHECK_SIZEOF(double, 8) AC_CHECK_SIZEOF(time_t, 0) +if test "$universal_binary" = yes; then + for type in int long "long long" "void*" time_t; do + eval size='$ac_cv_sizeof_'AS_TR_SH($type) + if test $size = 0; then continue; fi + AC_COMPILE_IFELSE( + [AC_LANG_BOOL_COMPILE_TRY([AC_INCLUDES_DEFAULT], + [sizeof($type) == $size])], [], [size=0]) + if test $size = 0; then + dnl try with __LP64__ + AC_MSG_ERROR([size of $type is unknown]) + fi + done +fi + dnl RUBY_REPLACE_TYPE [typename] [default type] [macro type] [included] AC_DEFUN([RUBY_REPLACE_TYPE], [dnl AC_CHECK_TYPE([$1], [n=[$1]], [n=[$2]], [$4]) Index: ChangeLog =================================================================== --- ChangeLog (revision 22815) +++ ChangeLog (revision 22816) @@ -1,3 +1,8 @@ +Sat Mar 7 22:06:03 2009 Nobuyoshi Nakada <nobu@r...> + + * configure.in (universal_binary): checks if sizes are same on all + architectures. + Sat Mar 7 18:45:56 2009 Nobuyoshi Nakada <nobu@r...> * configure.in: checks if cd really succeeded. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/