From: Mario Domenech Goulart <[email protected]>

Generates the libtool file prefixed by ${host_alias} when it is set.
This is required in cross compiling environments (such as OpenEmbedded).

Signed-off-by: Mario Domenech Goulart <[email protected]>
---
 dolt.m4 |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/dolt.m4 b/dolt.m4
index 8f94582..a958955 100644
--- a/dolt.m4
+++ b/dolt.m4
@@ -163,10 +163,16 @@ done
 if $modeok && $tagok ; then
     . ${top_builddir_slash}doltcompile "${args@<:@@@:>@}"
 else
-    exec ${top_builddir_slash}libtool "$[]@"
-fi
 __DOLTLIBTOOL__EOF__
 
+maybe_hyphen=
+if ! test x$host_alias = x; then
+    maybe_hyphen="-"
+fi
+
+echo '    exec ${top_builddir_slash}'${host_alias}${maybe_hyphen}'libtool 
"$[]@"' >>doltlibtool
+echo 'fi' >>doltlibtool
+
 dnl Done writing out doltlibtool; substitute it for libtool.
     chmod +x doltlibtool
     LIBTOOL='$(top_builddir)/doltlibtool'
-- 
1.5.6.5

_______________________________________________
xorg mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/xorg

Reply via email to