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

ruby-changes:37723

From: nobu <ko1@a...>
Date: Mon, 2 Mar 2015 15:36:25 +0900 (JST)
Subject: [ruby-changes:37723] nobu:r49804 (trunk): configure.in: _setjmp only if _longjmp is found

nobu	2015-03-02 15:36:12 +0900 (Mon, 02 Mar 2015)

  New Revision: 49804

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

  Log:
    configure.in: _setjmp only if _longjmp is found
    
    * configure.in: do not check _setjmp unless _longjmp is available,
      so that configure results will not be changed by cache.

  Modified files:
    trunk/ChangeLog
    trunk/configure.in
Index: configure.in
===================================================================
--- configure.in	(revision 49803)
+++ configure.in	(revision 49804)
@@ -2067,6 +2067,8 @@ AC_FUNC_FORK https://github.com/ruby/ruby/blob/trunk/configure.in#L2067
 
 AC_CHECK_FUNCS(__syscall)
 AC_CHECK_FUNCS(_longjmp)		# used for AC_ARG_WITH(setjmp-type)
+# we don't use _setjmp if _longjmp doesn't exist.
+test x$ac_cv_func__longjmp = xno && ac_cv_func__setjmp=no
 AC_CHECK_FUNCS(_setjmp)			# used for AC_ARG_WITH(setjmp-type)
 AC_CHECK_FUNCS(_setjmpex)		# used for AC_ARG_WITH(setjmp-type)
 AC_CHECK_FUNCS(atan2l atan2f)
@@ -2344,9 +2346,6 @@ AC_CACHE_CHECK(for __builtin_setjmp, ac_ https://github.com/ruby/ruby/blob/trunk/configure.in#L2346
     done])
 ])
 
-# we don't use _setjmp if _longjmp doesn't exist.
-test x$ac_cv_func__longjmp = xno && ac_cv_func__setjmp=no
-
 AC_DEFUN([RUBY_SETJMP_TYPE], [
 RUBY_CHECK_BUILTIN_SETJMP
 AC_MSG_CHECKING(for setjmp type)
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 49803)
+++ ChangeLog	(revision 49804)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Mon Mar  2 15:36:10 2015  Nobuyoshi Nakada  <nobu@r...>
+
+	* configure.in: do not check _setjmp unless _longjmp is available,
+	  so that configure results will not be changed by cache.
+
 Mon Mar  2 14:44:56 2015  Nobuyoshi Nakada  <nobu@r...>
 
 	* configure.in (RUBY_REPLACE_TYPE): restore unsigned type from

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

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