summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-06-18 13:40:46 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-06-18 13:40:46 +0900
commite7117115399981e1258ca6301e76cc3a24c509e7 (patch)
treedf0a7808a7c0059d55a93413805499ec92b95b6d
parente77d2c296e101a8c2d2d503b082214faa783b5d6 (diff)
Show gcc version if too old, and move to GCC block [ci skip]
-rw-r--r--configure.ac8
1 files changed, 4 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index fb6fd62664..cb9dea3c77 100644
--- a/configure.ac
+++ b/configure.ac
@@ -370,14 +370,14 @@ AS_IF([test "$GCC" = yes], [
icc_version=`echo =__ICC | $CC -E -xc - | sed '/^=/!d;s///;/^__ICC/d'`
test -n "$icc_version" || icc_version=0
# RUBY_APPEND_OPTIONS(XCFLAGS, ["-include ruby/config.h" "-include ruby/missing.h"])
+
+ AS_IF([test "$gcc_major" -lt 3], [
+ AC_MSG_ERROR([too old GCC: $gcc_major.$gcc_minor])
+ ])
], [
linker_flag=
])
-AS_IF([test "$GCC" = yes -a "$gcc_major" -lt 3 ], [
- AC_MSG_ERROR([too old GCC])
-])
-
RUBY_PROG_GNU_LD
RUBY_CPPOUTFILE