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

ruby-changes:47794

From: usa <ko1@a...>
Date: Fri, 15 Sep 2017 05:41:56 +0900 (JST)
Subject: [ruby-changes:47794] usa:r59912 (ruby_2_3): merge revision(s) 58254: [Backport #13402]

usa	2017-09-15 05:41:49 +0900 (Fri, 15 Sep 2017)

  New Revision: 59912

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59912

  Log:
    merge revision(s) 58254: [Backport #13402]
    
    fix --with-gmp (broken by r57490)
    
    Looking at the generated shell script (also the autoconf manual), it
    seems AC_SEARCH_LIBS() m4 macro does not define HAVE_LIBsomething C
    preprocessor macros, unlike AC_CHECK_LIB() which does define them.
    This previous change effectively killed building with GMP because
    building that mode depends on existence of HAVE_LIBGMP. [Bug #13402]

  Modified directories:
    branches/ruby_2_3/
  Modified files:
    branches/ruby_2_3/ChangeLog
    branches/ruby_2_3/configure.in
    branches/ruby_2_3/version.h
Index: ruby_2_3/configure.in
===================================================================
--- ruby_2_3/configure.in	(revision 59911)
+++ ruby_2_3/configure.in	(revision 59912)
@@ -1337,13 +1337,15 @@ AC_ARG_WITH([gmp], https://github.com/ruby/ruby/blob/trunk/ruby_2_3/configure.in#L1337
 AS_IF([test "x$with_gmp" != xno],
   [AC_CHECK_HEADERS(gmp.h)
    AS_IF([test "x$ac_cv_header_gmp_h" != xno],
-     AC_SEARCH_LIBS([__gmpz_init], [gmp]))])
+     AC_SEARCH_LIBS([__gmpz_init], [gmp],
+       [AC_DEFINE(HAVE_LIBGMP, 1)]))])
 
 AC_ARG_WITH([jemalloc],
   [AS_HELP_STRING([--with-jemalloc],[use jemalloc allocator])],
   [with_jemalloc=$withval], [with_jemalloc=no])
 AS_IF([test "x$with_jemalloc" = xyes],[
-  AC_SEARCH_LIBS([malloc_conf], [jemalloc], [], [with_jemalloc=no])
+  AC_SEARCH_LIBS([malloc_conf], [jemalloc],
+    [AC_DEFINE(HAVE_LIBJEMALLOC, 1)], [with_jemalloc=no])
   AC_CHECK_HEADER(jemalloc/jemalloc.h, [
     AC_DEFINE(RUBY_ALTERNATIVE_MALLOC_HEADER, [<jemalloc/jemalloc.h>])
   ])
Index: ruby_2_3/version.h
===================================================================
--- ruby_2_3/version.h	(revision 59911)
+++ ruby_2_3/version.h	(revision 59912)
@@ -1,10 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_3/version.h#L1
 #define RUBY_VERSION "2.3.6"
-#define RUBY_RELEASE_DATE "2017-09-14"
-#define RUBY_PATCHLEVEL 377
+#define RUBY_RELEASE_DATE "2017-09-15"
+#define RUBY_PATCHLEVEL 378
 
 #define RUBY_RELEASE_YEAR 2017
 #define RUBY_RELEASE_MONTH 9
-#define RUBY_RELEASE_DAY 14
+#define RUBY_RELEASE_DAY 15
 
 #include "ruby/version.h"
 
Index: ruby_2_3/ChangeLog
===================================================================
--- ruby_2_3/ChangeLog	(revision 59911)
+++ ruby_2_3/ChangeLog	(revision 59912)
@@ -1,3 +1,13 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_3/ChangeLog#L1
+Fri Sep 15 05:40:40 2017  URABE Shyouhei  <shyouhei@r...>
+
+	fix --with-gmp (broken by r57490)
+
+	Looking at the generated shell script (also the autoconf manual), it
+	seems AC_SEARCH_LIBS() m4 macro does not define HAVE_LIBsomething C
+	preprocessor macros, unlike AC_CHECK_LIB() which does define them.
+	This previous change effectively killed building with GMP because
+	building that mode depends on existence of HAVE_LIBGMP. [Bug #13402]
+
 Thu Sep 14 20:25:55 2017  Yusuke Endoh  <mame@r...>
 
 	lib/webrick/log.rb: sanitize any type of logs
Index: ruby_2_3
===================================================================
--- ruby_2_3	(revision 59911)
+++ ruby_2_3	(revision 59912)

Property changes on: ruby_2_3
___________________________________________________________________
Modified: svn:mergeinfo
## -0,0 +0,1 ##
   Merged /trunk:r58254

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

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