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

ruby-changes:21784

From: kosaki <ko1@a...>
Date: Fri, 25 Nov 2011 07:58:16 +0900 (JST)
Subject: [ruby-changes:21784] kosaki:r33833 (trunk): * configure.in: remove [read buffer ptr field in FILE structures] check.

kosaki	2011-11-25 07:58:00 +0900 (Fri, 25 Nov 2011)

  New Revision: 33833

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

  Log:
    * configure.in: remove [read buffer ptr field in FILE structures] check.
      ruby 1.9 or later doesn't use stdio at all.

  Modified files:
    trunk/ChangeLog
    trunk/configure.in

Index: configure.in
===================================================================
--- configure.in	(revision 33832)
+++ configure.in	(revision 33833)
@@ -1633,43 +1633,6 @@
   AC_DEFINE(RSHIFT(x,y), (((x)<0) ? ~((~(x))>>(int)(y)) : (x)>>(int)(y)))
 fi
 
-AC_CACHE_CHECK([read buffer ptr field in FILE structures], rb_cv_frptr,
-[for frptr in	dnl
-     _IO_read_ptr dnl
-     _ptr	dnl
-     __ptr	dnl
-     bufpos	dnl
-     _p	dnl
-     __bufpos	dnl
-; do
-    AC_TRY_COMPILE([#include <stdio.h>
-],
-	[FILE *f = stdin; char buf[256]; f->$frptr = buf;],
-	rb_cv_frptr="$frptr"; break,
-	rb_cv_frptr="not found")
-done])
-if test "$rb_cv_frptr" != "not found"; then
-  AC_DEFINE_UNQUOTED(FILE_READPTR, $rb_cv_frptr)
-
-  if test "$rb_cv_fcnt" = "not found"; then
-    AC_CACHE_CHECK([read buffer end field in FILE structures], rb_cv_frend,
-    [for frend in	dnl
-         _IO_read_end	dnl
-         bufread 	dnl
-         __bufread 	dnl
-    ; do
-        AC_TRY_COMPILE([#include <stdio.h>
-    ],
-	[FILE *f = stdin; char buf[256]; f->$frend = buf;],
-	rb_cv_frend="$frend"; break,
-	rb_cv_frend="not found")
-    done])
-    if test "$rb_cv_frend" != "not found"; then
-      AC_DEFINE_UNQUOTED(FILE_READEND, $rb_cv_frend)
-    fi
-  fi
-fi
-
 RUBY_CHECK_SIZEOF([struct stat.st_ino], [long "long long"], [], [@%:@include <sys/stat.h>])
 
 AC_CACHE_CHECK([whether struct dirent.d_name is too small], rb_cv_sizeof_struct_dirent_too_small,
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 33832)
+++ ChangeLog	(revision 33833)
@@ -1,3 +1,8 @@
+Fri Nov 25 07:56:49 2011  KOSAKI Motohiro  <kosaki.motohiro@g...>
+
+	* configure.in: remove [read buffer ptr field in FILE structures] check.
+	  ruby 1.9 or later doesn't use stdio at all.
+
 Fri Nov 25 07:52:46 2011  KOSAKI Motohiro  <kosaki.motohiro@g...>
 
 	* configure.in: remove [read count field in FILE] check.

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

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