ruby-changes:57703
From: Jeremy <ko1@a...>
Date: Tue, 10 Sep 2019 10:12:07 +0900 (JST)
Subject: [ruby-changes:57703] 8d3db4f26c (master): Default to cc/c++ instead of gcc/g++ on OpenBSD
https://git.ruby-lang.org/ruby.git/commit/?id=8d3db4f26c From 8d3db4f26cbbc920c717dfa2784a467014b954a6 Mon Sep 17 00:00:00 2001 From: Jeremy Evans <code@j...> Date: Mon, 9 Sep 2019 16:19:26 -0700 Subject: Default to cc/c++ instead of gcc/g++ on OpenBSD diff --git a/configure.ac b/configure.ac index 90b5a40..94e07e7 100644 --- a/configure.ac +++ b/configure.ac @@ -181,7 +181,9 @@ AS_CASE(["$host_os:$build_os"], https://github.com/ruby/ruby/blob/trunk/configure.ac#L181 @%:@endif SRC AC_MSG_ERROR([clang version 3.0 or later is required]) - ]) + ])], +[openbsd*:openbsd*], [ + AC_CHECK_TOOLS(CC, [cc]) ]) AS_IF([test x"${build}" != x"${host}"], [ AC_CHECK_TOOL(CC, gcc) @@ -210,7 +212,9 @@ AS_CASE(["$build_os:${CXX}"], https://github.com/ruby/ruby/blob/trunk/configure.ac#L212 AS_IF([test "${CXX}"], [ CXX=`echo "/$CC " | sed ["s:\([ /]\)${pat}:\1$CXX:; s:^/::; s: *$::"]` ]) - AC_MSG_RESULT([$CXX]) + AC_MSG_RESULT([$CXX])], + [openbsd*:*], [ + AC_CHECK_TOOLS(CXX, [c++]) ]) test -z "$CXX" || ac_cv_prog_CXX="$CXX" -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/