diff options
Diffstat (limited to 'gcc-4.8')
-rwxr-xr-x | gcc-4.8/gcc/configure | 6 | ||||
-rw-r--r-- | gcc-4.8/gcc/configure.ac | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/gcc-4.8/gcc/configure b/gcc-4.8/gcc/configure index e12a18031..53fac56c1 100755 --- a/gcc-4.8/gcc/configure +++ b/gcc-4.8/gcc/configure @@ -21629,9 +21629,11 @@ if test -f $gcc_cv_binutils_srcdir/configure.in \ gcc_cv_readelf=../binutils/readelf$build_exeext elif test -x readelf$build_exeext; then gcc_cv_readelf=./readelf$build_exeext +elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then + gcc_cv_readelf="$READELF_FOR_TARGET" else - # Extract the first word of "readelf", so it can be a program name with args. -set dummy readelf; ac_word=$2 + # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args. +set dummy $READELF_FOR_TARGET; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then : diff --git a/gcc-4.8/gcc/configure.ac b/gcc-4.8/gcc/configure.ac index eba357746..6e3cf3f4d 100644 --- a/gcc-4.8/gcc/configure.ac +++ b/gcc-4.8/gcc/configure.ac @@ -2171,8 +2171,10 @@ if test -f $gcc_cv_binutils_srcdir/configure.in \ gcc_cv_readelf=../binutils/readelf$build_exeext elif test -x readelf$build_exeext; then gcc_cv_readelf=./readelf$build_exeext +elif ( set dummy $READELF_FOR_TARGET; test -x $[2] ); then + gcc_cv_readelf="$READELF_FOR_TARGET" else - AC_PATH_PROG(gcc_cv_readelf, readelf) + AC_PATH_PROG(gcc_cv_readelf, $READELF_FOR_TARGET) fi]) AC_MSG_CHECKING(what readelf to use) |