summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2025-06-16 19:58:00 +0000
committermidipix <writeonce@midipix.org>2025-06-16 20:10:20 +0000
commit77e885a175cbf7323d6f4294adfe7a7b5efb4f0c (patch)
treec473e80813956b706550e6693a3b431ca907b263
parent6704d4790dfa6431cc6cbdbfd8b25bbb5996813f (diff)
downloadslibtool-77e885a175cbf7323d6f4294adfe7a7b5efb4f0c.tar.bz2
slibtool-77e885a175cbf7323d6f4294adfe7a7b5efb4f0c.tar.xz
m4/slibtool.m4: AR, NM, RANLIB: special-case identical ${build} and ${host}.
-rw-r--r--m4/slibtool.m46
1 files changed, 3 insertions, 3 deletions
diff --git a/m4/slibtool.m4 b/m4/slibtool.m4
index 0d7c458..2077f57 100644
--- a/m4/slibtool.m4
+++ b/m4/slibtool.m4
@@ -347,7 +347,7 @@ if [[ -n "${host}" ]] && [[ -z "${AR}" ]]; then
AC_CHECK_PROG([AR],[llvm-ar],[llvm-ar])
fi
-if [[ -z "${host}" ]]; then
+if [[ "${host:-x}" = "${build:-x}" ]]; then
AC_CHECK_PROG([AR],[ar],[ar])
fi
])
@@ -371,7 +371,7 @@ if [[ -n "${host}" ]] && [[ -z "${RANLIB}" ]]; then
AC_CHECK_PROG([RANLIB],[llvm-ranlib],[llvm-ranlib])
fi
-if [[ -z "${host}" ]]; then
+if [[ "${host:-x}" = "${build:-x}" ]]; then
AC_CHECK_PROG([RANLIB],[ranlib],[ranlib])
fi
])
@@ -395,7 +395,7 @@ if [[ -n "${host}" ]] && [[ -z "${NM}" ]]; then
AC_CHECK_PROG([NM],[llvm-nm],[llvm-nm])
fi
-if [[ -z "${host}" ]]; then
+if [[ "${host:-x}" = "${build:-x}" ]]; then
AC_CHECK_PROG([NM],[nm],[nm])
fi
])