[前][次][番号順一覧][スレッド一覧]

ruby-changes:11438

From: nobu <ko1@a...>
Date: Tue, 24 Mar 2009 19:23:55 +0900 (JST)
Subject: [ruby-changes:11438] Ruby:r23063 (trunk): * configure.in (RUBY_CHECK_SIZEOF): need to include $4.

nobu	2009-03-24 19:23:45 +0900 (Tue, 24 Mar 2009)

  New Revision: 23063

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=23063

  Log:
    * configure.in (RUBY_CHECK_SIZEOF): need to include $4.

  Modified files:
    trunk/ChangeLog
    trunk/configure.in

Index: configure.in
===================================================================
--- configure.in	(revision 23062)
+++ configure.in	(revision 23063)
@@ -370,7 +370,8 @@
     m4_ifval([$2], [test -z "${AS_TR_SH(ac_cv_sizeof_$1)+set}" && {
     for t in $2; do
 	AC_COMPILE_IFELSE(
-	    [AC_LANG_BOOL_COMPILE_TRY(AC_INCLUDES_DEFAULT([$rbcv_var]),
+	    [AC_LANG_BOOL_COMPILE_TRY(AC_INCLUDES_DEFAULT([$4]
+		[$rbcv_var]),
 		[AS_TR_CPP(SIZEOF_$1) == sizeof($t)])], [
 		AS_TR_SH(ac_cv_sizeof_$1)=AS_TR_CPP([SIZEOF_]$t)
 		break])
@@ -382,7 +383,7 @@
 	for t in $3; do
 	    cond="${cond}
 @%:@${cond+el}if defined(__${t}${s}__) || defined(__${t}${s}) || defined(_${t}${s}) || defined(${t}${s})"
-	    hdr="AC_INCLUDES_DEFAULT([
+	    hdr="AC_INCLUDES_DEFAULT([$4
 @%:@if defined(__${t}${s}__) || defined(__${t}${s}) || defined(_${t}${s}) || defined(${t}${s})
 @%:@ define AS_TR_CPP(HAVE_$1) 1
 @%:@else
@@ -446,7 +447,7 @@
 RUBY_CHECK_SIZEOF(void*, [int long "long long"], [ILP LP LLP])
 RUBY_CHECK_SIZEOF(float)
 RUBY_CHECK_SIZEOF(double)
-RUBY_CHECK_SIZEOF(time_t, [long "long long"])
+RUBY_CHECK_SIZEOF(time_t, [long "long long"], [], [@%:@include <time.h>])
 
 dnl RUBY_REPLACE_TYPE [typename] [default type] [macro type] [included]
 AC_DEFUN([RUBY_REPLACE_TYPE], [dnl
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 23062)
+++ ChangeLog	(revision 23063)
@@ -1,3 +1,7 @@
+Tue Mar 24 19:23:44 2009  Nobuyoshi Nakada  <nobu@r...>
+
+	* configure.in (RUBY_CHECK_SIZEOF): need to include $4.
+
 Tue Mar 24 17:08:52 2009  Akinori MUSHA  <knu@i...>
 
 	* io.c (rb_io_inspect): Cannot access fptr->fd if fptr is NULL.

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]