diff options
Diffstat (limited to 'gcc/configure.ac')
-rw-r--r-- | gcc/configure.ac | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/configure.ac b/gcc/configure.ac index 2673f80af96..7fce52a319c 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -2514,6 +2514,23 @@ else AC_MSG_RESULT($gcc_cv_readelf) fi +# Figure out what otool we will be using. +AS_VAR_SET_IF(gcc_cv_otool,, [ +if test -x otool$build_exeext; then + gcc_cv_otool=./otool$build_exeext +elif ( set dummy $OTOOL_FOR_TARGET; test -x $[2] ); then + gcc_cv_otool="$OTOOL_FOR_TARGET" +else + AC_PATH_PROG(gcc_cv_otool, $OTOOL_FOR_TARGET) +fi]) + +AC_MSG_CHECKING(what otool to use) +if test x$gcc_cv_otool = x; then + AC_MSG_RESULT(not found) +else + AC_MSG_RESULT($gcc_cv_otool) +fi + # Figure out what assembler alignment features are present. gcc_GAS_CHECK_FEATURE([.balign and .p2align], gcc_cv_as_balign_and_p2align, [2,6,0],, |