aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-11-24 20:00:13 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-11-24 20:00:13 +0900
commit1cba1b3992dcc7476a24e00e4207cfd38e37d8d4 (patch)
tree665f480497f33bc9f92fafdbe728bacc46fd96d6 /configure.ac
parent0c0875fe6050a79e5525a71f6819168bd4947ff8 (diff)
downloadruby-1cba1b3992dcc7476a24e00e4207cfd38e37d8d4.tar.gz
Check `windres` message using the found `windres` only if needed
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 1 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index ec1d6adc49..0eb623e7f6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -506,13 +506,10 @@ AS_CASE(["$target_os"],
])
rb_cv_binary_elf=no
: ${enable_shared=yes}
+ AS_IF([$WINDRES --version | grep LLVM > /dev/null], [USE_LLVM_WINDRES=yes], [USE_LLVM_WINDRES=no])
],
[hiuxmpp*], [AC_DEFINE(__HIUX_MPP__)]) # by TOYODA Eizi <toyoda@npd.kishou.go.jp>
-USE_LLVM_WINDRES=no
-windres_version=`windres --version | grep LLVM`
-test -z "$windres_version" || USE_LLVM_WINDRES=yes
-
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_INSTALL