* configure.ac: Change the logic when we check for target tools.
Do it when the target is specified and it's different from the
specified value of the host.
+2009-04-12 Pavel Roskin <proski@gnu.org>
+
+ * configure.ac: Change the logic when we check for target tools.
+ Do it when the target is specified and it's different from the
+ specified value of the host.
+
2009-04-11 Felix Zielcke <fzielcke@z-51.de>
* util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
{ echo "$as_me:$LINENO: result: $TARGET_OBJ2ELF" >&5
echo "${ECHO_T}$TARGET_OBJ2ELF" >&6; }
-# For cross-compiling.
-if test "x$build" != "x$host"; then
- # XXX this depends on the implementation of autoconf!
+# Find tools for the target.
+if test "x$target_alias" != x && test "x$host_alias" != "x$target_alias"; then
tmp_ac_tool_prefix="$ac_tool_prefix"
ac_tool_prefix=$target_alias-
AC_SUBST(TARGET_OBJ2ELF)
AC_MSG_RESULT([$TARGET_OBJ2ELF])
-# For cross-compiling.
-if test "x$build" != "x$host"; then
- # XXX this depends on the implementation of autoconf!
+# Find tools for the target.
+if test "x$target_alias" != x && test "x$host_alias" != "x$target_alias"; then
tmp_ac_tool_prefix="$ac_tool_prefix"
ac_tool_prefix=$target_alias-