# HG changeset patch # User reimar # Date 1307804099 0 # Node ID 60b84f05d86560b0e7e1e64428abb28df11b0903 # Parent 52545582f44dca37d1ffcb5cdbf09b8b811fb439 Set host_cc after cross-compile check. This allows to set "cc" as a more sensible, almost always working default when cross-compiling instead of using the cross-compiler as host-cc which is just nonsense. diff -r 52545582f44d -r 60b84f05d865 configure --- a/configure Sat Jun 11 13:52:11 2011 +0000 +++ b/configure Sat Jun 11 14:54:59 2011 +0000 @@ -1696,10 +1696,6 @@ echo "Detected operating system: $system_name" echo "Detected host architecture: $host_arch" -echocheck "host cc" -test "$_host_cc" || _host_cc=$_cc -echores $_host_cc - echocheck "cross compilation" if test $_cross_compile = auto ; then _cross_compile=yes @@ -1711,7 +1707,12 @@ tmp_run() { return 0 } -fi + test "$_host_cc" || _host_cc=cc +fi + +echocheck "host cc" +test "$_host_cc" || _host_cc=$_cc +echores $_host_cc # ---