diff options
author | midipix <writeonce@midipix.org> | 2024-03-26 23:14:30 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2024-03-26 23:14:30 +0000 |
commit | c424f48d54b3f36e825dbe6e439f0026a59c3255 (patch) | |
tree | e74369d94e191f7739997d9169667dafdad8dce0 | |
parent | 904d480211d8b0d6b721bdeafb5279a41264f878 (diff) | |
download | slibtool-c424f48d54b3f36e825dbe6e439f0026a59c3255.tar.bz2 slibtool-c424f48d54b3f36e825dbe6e439f0026a59c3255.tar.xz |
slibtool: added SLIBTOOL_PROG_RANLIB.
-rw-r--r-- | m4/slibtool.m4 | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/m4/slibtool.m4 b/m4/slibtool.m4 index 6d9438c..670f1af 100644 --- a/m4/slibtool.m4 +++ b/m4/slibtool.m4 @@ -290,6 +290,30 @@ fi ]) +# SLIBTOOL_PROG_RANLIB +# -------------------- +AC_DEFUN([SLIBTOOL_PROG_RANLIB],[ + +# slibtool: SLIBTOOL_PROG_RANLIB +# ------------------------------ +if [[ -n "${host_alias}" ]]; then + AC_CHECK_PROG([RANLIB],"${host_alias}-"[ranlib],"${host_alias}-"[ranlib]) +fi + +if [[ -n "${host}" ]] && [[ "${host}" != "${host_alias:-}" ]] && [[ -z "${RANLIB}" ]]; then + AC_CHECK_PROG([RANLIB],"${host}-"[ranlib],"${host}-"[ranlib]) +fi + +if [[ -n "${host}" ]] && [[ -z "${RANLIB}" ]]; then + AC_CHECK_PROG([RANLIB],[llvm-ranlib],[llvm-ranlib]) +fi + +if [[ -z "${host}" ]]; then + AC_CHECK_PROG([RANLIB],[ranlib],[ranlib]) +fi +]) + + # SLIBTOOL_PROG_NM # ---------------- AC_DEFUN([SLIBTOOL_PROG_NM],[ |