blob: 8d205bde43101097aa4afa92a05d061e822d2d83 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
This macro breaks under autoconf 2.70. Since we don't worry abot darwin or
openbsd builds, simply remove it.
Upstream-Status: Pending
RP - 2021/1/28
Index: ruby-2.7.2/configure.ac
===================================================================
--- ruby-2.7.2.orig/configure.ac
+++ ruby-2.7.2/configure.ac
@@ -170,23 +170,6 @@ dnl orig_cxxflags="$cxxflags"
dnl cxxflags="$cxxflags "'${optflags} ${debugflags} ${warnflags}'
dnl ])
-AS_CASE(["$host_os:$build_os"],
-[darwin*:darwin*], [
- AC_CHECK_TOOLS(CC, [clang gcc cc])
- # Following Apple deployed clang are broken
- # clang version 1.0 (http://llvm.org/svn/llvm-project/cfe/tags/Apple/clang-23 exported)
- # Apple clang version 2.0 (tags/Apple/clang-137) (based on LLVM 2.9svn)
- # Apple clang version 2.1 (tags/Apple/clang-163.7.1) (based on LLVM 3.0svn)
- AS_IF([! $CC -E -xc - <<SRC >/dev/null], [
- @%:@if defined __APPLE_CC__ && defined __clang_major__ && __clang_major__ < 3
- @%:@error premature clang
- @%:@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)
])
|