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

ruby-changes:28744

From: akr <ko1@a...>
Date: Fri, 17 May 2013 18:10:27 +0900 (JST)
Subject: [ruby-changes:28744] akr:r40796 (trunk): * configure.in: Consider error messages to find out version option of

akr	2013-05-17 18:10:16 +0900 (Fri, 17 May 2013)

  New Revision: 40796

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

  Log:
    * configure.in: Consider error messages to find out version option of
      C compiler.
      The C compiler of Sun Studio C emits "Warning: Option -qversion
      passed to ld, if ld is invoked, ignored otherwise" and exit
      successfully.

  Modified files:
    trunk/ChangeLog
    trunk/configure.in

Index: configure.in
===================================================================
--- configure.in	(revision 40795)
+++ configure.in	(revision 40796)
@@ -439,7 +439,10 @@ AC_SUBST(COUTFLAG) https://github.com/ruby/ruby/blob/trunk/configure.in#L439
 
 cc_version=
 for option in --version -v -V -qversion; do
-    $CC $option > /dev/null 2>&1 || continue
+    cc_version_message=`$CC $option 2>&1`
+    cc_version_status=$?
+    AS_CASE($cc_version_status, [0], [:], [continue])
+    AS_CASE($cc_version_message, [*Warning*], [continue])
     cc_version='$(CC) '$option
 done
 AC_SUBST(CC_VERSION, $cc_version)
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 40795)
+++ ChangeLog	(revision 40796)
@@ -1,3 +1,11 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri May 17 18:06:15 2013  Tanaka Akira  <akr@f...>
+
+	* configure.in: Consider error messages to find out version option of
+	  C compiler.
+	  The C compiler of Sun Studio C emits "Warning: Option -qversion
+	  passed to ld, if ld is invoked, ignored otherwise" and exit
+	  successfully.
+
 Fri May 17 17:34:48 2013  Nobuyoshi Nakada  <nobu@r...>
 
 	* gc.c (rb_gc_guarded_ptr): unoptimize on other compilers than gcc and

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

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