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

ruby-changes:37722

From: nobu <ko1@a...>
Date: Mon, 2 Mar 2015 14:45:13 +0900 (JST)
Subject: [ruby-changes:37722] nobu:r49803 (trunk): configure.in: remove extra unsigned

nobu	2015-03-02 14:44:59 +0900 (Mon, 02 Mar 2015)

  New Revision: 49803

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

  Log:
    configure.in: remove extra unsigned
    
    * configure.in (RUBY_REPLACE_TYPE): restore unsigned type from
      cached variable only if the target type is not available.

  Modified files:
    trunk/ChangeLog
    trunk/configure.in
Index: configure.in
===================================================================
--- configure.in	(revision 49802)
+++ configure.in	(revision 49803)
@@ -1475,11 +1475,17 @@ AC_DEFUN([RUBY_REPLACE_TYPE], [dnl https://github.com/ruby/ruby/blob/trunk/configure.in#L1475
 	  [
 	    t=INT])
 	rb_cv_[$1]_convertible=${u}${t}])
-    AS_CASE(["${rb_cv_[$1]_convertible}"],
-	    [*LL], [n="long long"],
-	    [*LONG], [n="long"],
-	    [n="int"])
-    AS_CASE("${rb_cv_[$1]_convertible}", [U*], [u=+1 n="unsigned $n"], [u=-1])
+    if test "${AS_TR_SH(ac_cv_type_[$1])}" = "yes"; then
+	n="$1"
+    else
+	AS_CASE(["${rb_cv_[$1]_convertible}"],
+		[*LL], [n="long long"],
+		[*LONG], [n="long"],
+		[n="int"])
+	AS_CASE(["${rb_cv_[$1]_convertible}"],
+		[U*], [n="unsigned $n"])
+    fi
+    AS_CASE("${rb_cv_[$1]_convertible}", [U*], [u=+1], [u=-1])
     AC_DEFINE_UNQUOTED(rb_[$1], $n)
     AC_DEFINE_UNQUOTED([SIGNEDNESS_OF_]AS_TR_CPP($1), $u)
     AC_DEFINE_UNQUOTED([$3]2NUM[(v)], [${rb_cv_[$1]_convertible}2NUM(v)])
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 49802)
+++ ChangeLog	(revision 49803)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Mon Mar  2 14:44:56 2015  Nobuyoshi Nakada  <nobu@r...>
+
+	* configure.in (RUBY_REPLACE_TYPE): restore unsigned type from
+	  cached variable only if the target type is not available.
+
 Mon Mar  2 13:04:27 2015  Nobuyoshi Nakada  <nobu@r...>
 
 	* signal.c (sig_signame): return nil if the argument is a valid

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

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