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

ruby-changes:46401

From: usa <ko1@a...>
Date: Sun, 30 Apr 2017 22:35:39 +0900 (JST)
Subject: [ruby-changes:46401] usa:r58515 (ruby_2_3): merge revision(s) 57490: [Backport #13175]

usa	2017-04-30 22:35:33 +0900 (Sun, 30 Apr 2017)

  New Revision: 58515

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

  Log:
    merge revision(s) 57490: [Backport #13175]
    
    configure.in: use AC_SEARCH_LIBS
    
    * configure.in (--with-gmp, --with-jemalloc): use AC_SEARCH_LIBS
      to check if no library is required, instead of AC_CHECK_LIB.
      [ruby-core:79368] [Bug #13175]

  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/version.h
===================================================================
--- ruby_2_3/version.h	(revision 58514)
+++ ruby_2_3/version.h	(revision 58515)
@@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_3/version.h#L1
 #define RUBY_VERSION "2.3.5"
 #define RUBY_RELEASE_DATE "2017-04-30"
-#define RUBY_PATCHLEVEL 304
+#define RUBY_PATCHLEVEL 305
 
 #define RUBY_RELEASE_YEAR 2017
 #define RUBY_RELEASE_MONTH 4
Index: ruby_2_3/configure.in
===================================================================
--- ruby_2_3/configure.in	(revision 58514)
+++ ruby_2_3/configure.in	(revision 58515)
@@ -1319,15 +1319,13 @@ AC_ARG_WITH([gmp], https://github.com/ruby/ruby/blob/trunk/ruby_2_3/configure.in#L1319
 AS_IF([test "x$with_gmp" != xno],
   [AC_CHECK_HEADERS(gmp.h)
    AS_IF([test "x$ac_cv_header_gmp_h" != xno],
-     AC_CHECK_LIB([gmp], [__gmpz_init]))
-   with_gmp="$ac_cv_lib_gmp___gmpz_init"
-   AS_IF([test -z "$with_gmp"], [with_gmp=no])])
+     AC_SEARCH_LIBS([__gmpz_init], [gmp]))])
 
 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_CHECK_LIB([jemalloc], [malloc_conf], [], [with_jemalloc=no])
+  AC_SEARCH_LIBS([malloc_conf], [jemalloc], [], [with_jemalloc=no])
   AC_CHECK_HEADER(jemalloc/jemalloc.h, [
     AC_DEFINE(RUBY_ALTERNATIVE_MALLOC_HEADER, [<jemalloc/jemalloc.h>])
   ])
@@ -4045,12 +4043,6 @@ AS_CASE(["$target_os"], https://github.com/ruby/ruby/blob/trunk/ruby_2_3/configure.in#L4043
 	FIRSTMAKEFILE=GNUmakefile:nacl/GNUmakefile.in
 	])
 
-AS_CASE(["$with_gmp: $SOLIBS "], [no:* | *' -lgmp '*|*' $(LIBS) '*], [],
-	[SOLIBS="-lgmp $SOLIBS"])
-
-AS_CASE(["$with_jemalloc: $LIBS "], [no:* | *' -ljemalloc '*], [],
-	[LIBS="-ljemalloc $LIBS"])
-
 MINIOBJS="$MINIDLNOBJ"
 
 AS_CASE(["$THREAD_MODEL"],
Index: ruby_2_3/ChangeLog
===================================================================
--- ruby_2_3/ChangeLog	(revision 58514)
+++ ruby_2_3/ChangeLog	(revision 58515)
@@ -1,3 +1,11 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_3/ChangeLog#L1
+Sun Apr 30 22:35:10 2017  Nobuyoshi Nakada  <nobu@r...>
+
+	configure.in: use AC_SEARCH_LIBS
+
+	* configure.in (--with-gmp, --with-jemalloc): use AC_SEARCH_LIBS
+	  to check if no library is required, instead of AC_CHECK_LIB.
+	  [ruby-core:79368] [Bug #13175]
+
 Sun Apr 30 22:24:25 2017  Nobuyoshi Nakada  <nobu@r...>
 
 	* numeric.c (flo_round): [EXPERIMENTAL] adjust the case that the
Index: ruby_2_3
===================================================================
--- ruby_2_3	(revision 58514)
+++ ruby_2_3	(revision 58515)

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

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

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