comparison configure @ 31552:24c3ef20a1f2

Use cflag_check utility function in cross-compilation check.
author diego
date Fri, 02 Jul 2010 10:02:34 +0000
parents 61494fd9176c
children 6a5073938364
comparison
equal deleted inserted replaced
31551:61494fd9176c 31552:24c3ef20a1f2
1656 test "$_host_cc" || _host_cc=$_cc 1656 test "$_host_cc" || _host_cc=$_cc
1657 echores $_host_cc 1657 echores $_host_cc
1658 1658
1659 echocheck "cross compilation" 1659 echocheck "cross compilation"
1660 if test $_cross_compile = auto ; then 1660 if test $_cross_compile = auto ; then
1661 cat > $TMPC << EOF
1662 int main(void) { return 0; }
1663 EOF
1664 _cross_compile=yes 1661 _cross_compile=yes
1665 cc_check && "$TMPEXE" && _cross_compile=no 1662 cflag_check "" && "$TMPEXE" && _cross_compile=no
1666 fi 1663 fi
1667 echores $_cross_compile 1664 echores $_cross_compile
1668 1665
1669 if test $_cross_compile = yes; then 1666 if test $_cross_compile = yes; then
1670 tmp_run() { 1667 tmp_run() {