Commit 534d0cc0 by Alan Modra Committed by Alan Modra

configure.in (auto-build.h): Use target_alias and build_alias when running configure.

	* configure.in (auto-build.h): Use target_alias and build_alias
	when running configure.
	(gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
	(gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
	* configure: Regenerate.

From-SVN: r52020
parent 3f7fe9b9
2002-04-08 Alan Modra <amodra@bigpond.net.au>
* configure.in (auto-build.h): Use target_alias and build_alias
when running configure.
(gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
(gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
* configure: Regenerate.
2002-04-07 David S. Miller <davem@redhat.com> 2002-04-07 David S. Miller <davem@redhat.com>
* config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file. * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
......
...@@ -882,7 +882,7 @@ else ...@@ -882,7 +882,7 @@ else
saved_CFLAGS="${CFLAGS}" saved_CFLAGS="${CFLAGS}"
CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \ CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
${realsrcdir}/configure \ ${realsrcdir}/configure \
--target=$target --host=$build --build=$build --target=$target_alias --host=$build_alias --build=$build_alias
CFLAGS="${saved_CFLAGS}" CFLAGS="${saved_CFLAGS}"
# We just finished tests for the build machine, so rename # We just finished tests for the build machine, so rename
...@@ -1222,7 +1222,7 @@ changequote(,)dnl ...@@ -1222,7 +1222,7 @@ changequote(,)dnl
changequote([,])dnl changequote([,])dnl
fi fi
if test "x$gcc_cv_as" = x -a x$build = x$host; then if test "x$gcc_cv_as" = x; then
# Search the same directories that the installed compiler will # Search the same directories that the installed compiler will
# search. Else we may find the wrong assembler and lose. If we # search. Else we may find the wrong assembler and lose. If we
# do not find a suitable assembler binary, then try the user's # do not find a suitable assembler binary, then try the user's
...@@ -1318,7 +1318,7 @@ changequote(,)dnl ...@@ -1318,7 +1318,7 @@ changequote(,)dnl
changequote([,])dnl changequote([,])dnl
fi fi
if test "x$gcc_cv_ld" = x -a x$build = x$host; then if test "x$gcc_cv_ld" = x; then
# Search the same directories that the installed compiler will # Search the same directories that the installed compiler will
# search. Else we may find the wrong linker and lose. If we # search. Else we may find the wrong linker and lose. If we
# do not find a suitable linker binary, then try the user's # do not find a suitable linker binary, then try the user's
...@@ -1387,12 +1387,10 @@ fi ...@@ -1387,12 +1387,10 @@ fi
AC_MSG_CHECKING(what nm to use) AC_MSG_CHECKING(what nm to use)
if test -x nm$host_exeext; then if test -x nm$host_exeext; then
gcc_cv_nm=./nm$host_exeext gcc_cv_nm=./nm$host_exeext
elif test x$build = x$host; then elif test "x$program_prefix" != xNONE; then
if test "x$program_prefix" != xNONE; then gcc_cv_nm=${program_prefix}nm$host_exeext
gcc_cv_nm=${program_prefix}nm$host_exeext else
else gcc_cv_nm=`echo nm | sed ${program_transform_name}`$host_exeext
gcc_cv_nm=`echo nm | sed ${program_transform_name}`$host_exeext
fi
fi fi
AC_MSG_RESULT($gcc_cv_nm) AC_MSG_RESULT($gcc_cv_nm)
...@@ -1400,12 +1398,10 @@ AC_MSG_RESULT($gcc_cv_nm) ...@@ -1400,12 +1398,10 @@ AC_MSG_RESULT($gcc_cv_nm)
AC_MSG_CHECKING(what objdump to use) AC_MSG_CHECKING(what objdump to use)
if test -x objdump$host_exeext; then if test -x objdump$host_exeext; then
gcc_cv_objdump=./objdump$host_exeext gcc_cv_objdump=./objdump$host_exeext
elif test x$build = x$host; then elif test "x$program_prefix" != xNONE; then
if test "x$program_prefix" != xNONE; then gcc_cv_objdump=${program_prefix}objdump$host_exeext
gcc_cv_objdump=${program_prefix}objdump$host_exeext else
else gcc_cv_objdump=`echo objdump | sed ${program_transform_name}`$host_exeext
gcc_cv_objdump=`echo objdump | sed ${program_transform_name}`$host_exeext
fi
fi fi
AC_MSG_RESULT($gcc_cv_objdump) AC_MSG_RESULT($gcc_cv_objdump)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment