Revision: 2086
http://svn.sv.gnu.org/viewvc/?view=rev&root=grub&revision=2086
Author: proski
Date: 2009-04-12 04:33:18 +0000 (Sun, 12 Apr 2009)
Log Message:
-----------
2009-04-12 Pavel Roskin <[email protected]>
* 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.
Modified Paths:
--------------
trunk/grub2/ChangeLog
trunk/grub2/configure
trunk/grub2/configure.ac
Modified: trunk/grub2/ChangeLog
===================================================================
--- trunk/grub2/ChangeLog 2009-04-12 03:37:35 UTC (rev 2085)
+++ trunk/grub2/ChangeLog 2009-04-12 04:33:18 UTC (rev 2086)
@@ -1,3 +1,9 @@
+2009-04-12 Pavel Roskin <[email protected]>
+
+ * 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 <[email protected]>
* util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
Modified: trunk/grub2/configure
===================================================================
--- trunk/grub2/configure 2009-04-12 03:37:35 UTC (rev 2085)
+++ trunk/grub2/configure 2009-04-12 04:33:18 UTC (rev 2086)
@@ -5942,9 +5942,8 @@
{ 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-
Modified: trunk/grub2/configure.ac
===================================================================
--- trunk/grub2/configure.ac 2009-04-12 03:37:35 UTC (rev 2085)
+++ trunk/grub2/configure.ac 2009-04-12 04:33:18 UTC (rev 2086)
@@ -231,9 +231,8 @@
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-