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

ruby-changes:24560

From: nobu <ko1@a...>
Date: Fri, 3 Aug 2012 19:21:39 +0900 (JST)
Subject: [ruby-changes:24560] nobu:r36611 (trunk): configure.in: use default compilers for non-darwin

nobu	2012-08-03 19:21:22 +0900 (Fri, 03 Aug 2012)

  New Revision: 36611

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

  Log:
    configure.in: use default compilers for non-darwin
    
    * configure.in: use clang prior to gcc only when self-compiling on
      darwin.  search default compilers on other platforms.  [Bug #6816]

  Modified files:
    trunk/ChangeLog
    trunk/configure.in

Index: configure.in
===================================================================
--- configure.in	(revision 36610)
+++ configure.in	(revision 36611)
@@ -369,13 +369,14 @@
 fi
 
 RUBY_NACL
+AS_CASE(["$host_os:$build_os"],
+[darwin*:darwin*], [
+    AC_CHECK_TOOLS(CC, [clang gcc cc])
+])
 if test x"${build}" != x"${host}"; then
   AC_CHECK_TOOL(CC, gcc)
 fi
-AS_CASE(["$build_os"],
-[darwin*], [ cc_list="clang gcc cc" ],
-           [ cc_list="gcc cc" ])
-AC_PROG_CC([$cc_list])
+AC_PROG_CC
 AC_PROG_CXX
 RUBY_MINGW32
 AC_PROG_GCC_TRADITIONAL
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 36610)
+++ ChangeLog	(revision 36611)
@@ -1,3 +1,8 @@
+Fri Aug  3 19:21:19 2012  Nobuyoshi Nakada  <nobu@r...>
+
+	* configure.in: use clang prior to gcc only when self-compiling on
+	  darwin.  search default compilers on other platforms.  [Bug #6816]
+
 Fri Aug  3 17:25:49 2012  NARUSE, Yui  <naruse@r...>
 
 	* configure.in: move RUBY_MINGW32 after AC_PROG_CC.

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

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