diff --git a/distrib/configure.ac.in b/distrib/configure.ac.in index 8a2016c1c8fa4304f065e4906bdc0543d0d95f25..ee096ce08568755c55021343b58ad60ed39a2cc2 100644 --- a/distrib/configure.ac.in +++ b/distrib/configure.ac.in @@ -206,6 +206,18 @@ dnl Identify C++ standard library flavour and location FP_FIND_CXX_STD_LIB AC_CONFIG_FILES([mk/system-cxx-std-lib-1.0.conf]) +dnl ** Which otool to use on macOS +dnl -------------------------------------------------------------- +AC_CHECK_TARGET_TOOL([OTOOL], [otool]) +OtoolCmd="$OTOOL" +AC_SUBST(OtoolCmd) + +dnl ** Which install_name_tool to use on macOS +dnl -------------------------------------------------------------- +AC_CHECK_TARGET_TOOL([INSTALL_NAME_TOOL], [install_name_tool]) +InstallNameToolCmd="$INSTALL_NAME_TOOL" +AC_SUBST(InstallNameToolCmd) + # Check that we have the same emsdk version as the one we were built with. ConfiguredEmsdkVersion=@ConfiguredEmsdkVersion@ EMSDK_VERSION("", "", ${ConfiguredEmsdkVersion})