ruby-changes:54924
From: glass <ko1@a...>
Date: Sun, 24 Feb 2019 14:27:38 +0900 (JST)
Subject: [ruby-changes:54924] glass:r67129 (trunk): configure.ac: remove check for broken memmem
glass 2019-02-24 14:27:33 +0900 (Sun, 24 Feb 2019) New Revision: 67129 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=67129 Log: configure.ac: remove check for broken memmem the bug of memmem(3) was fixed in glibc 2.1 released in 1999. Modified files: trunk/configure.ac Index: configure.ac =================================================================== --- configure.ac (revision 67128) +++ configure.ac (revision 67129) @@ -1753,33 +1753,6 @@ AS_IF([test "$rb_cv_have_signbit" = yes] https://github.com/ruby/ruby/blob/trunk/configure.ac#L1753 AC_LIBOBJ([signbit]) ]) -AC_CACHE_CHECK(for broken memmem, rb_cv_broken_memmem, [ - AC_TRY_RUN([ -@%:@include <string.h> - -int -main(int argc, char **argv) -{ - const char *str = "hogefugafoobar"; - const char *rs = "foo"; - const char *empty = ""; - char *p; - - p = memmem(str, strlen(str), rs, strlen(rs)); - if (p == str+8) { - p = memmem(str, strlen(str), empty, strlen(empty)); - if (p == str) - return 0; - } - return 1; -} - ], - rb_cv_broken_memmem=no, - rb_cv_broken_memmem=yes, - rb_cv_broken_memmem=yes) -]) -test x"$rb_cv_broken_memmem" = xyes && ac_cv_func_memmem=no - AC_FUNC_FORK AC_CHECK_FUNCS(__syscall) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/