Bug 849089: Remove ac_cv_prog_host_cc_works=1. That variable was not
authorWan-Teh Chang <wtc@google.com>
Fri, 08 Mar 2013 20:14:54 -0800
changeset 4448 0e2e5e09fbac778e52354b9bdf73a6b4678f934c
parent 4447 6572782a63023adc12b16e829d8678e482bbb5a0
child 4449 39cb7968bf9b302f60f813228d4752ef9c4acd12
push id2
push userwtc@google.com
push dateSat, 09 Mar 2013 04:15:05 +0000
bugs849089
Bug 849089: Remove ac_cv_prog_host_cc_works=1. That variable was not being used and was set incorrectly, missing a semicolon to separate it from AC_MSG_RESULT. r=ted.
configure
configure.in
--- a/configure
+++ b/configure
@@ -1444,22 +1444,22 @@ test -n "$HOST_CC" || HOST_CC=""""
 
     echo $ac_n "checking whether the $host compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works""... $ac_c" 1>&6
 echo "configure:1447: checking whether the $host compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works" >&5
     cat > conftest.$ac_ext <<EOF
 #line 1449 "configure"
 #include "confdefs.h"
 
 int main() {
-return(0);
+return 0;
 ; return 0; }
 EOF
 if { (eval echo configure:1456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
-  ac_cv_prog_host_cc_works=1 echo "$ac_t""yes" 1>&6
+  echo "$ac_t""yes" 1>&6
 else
   echo "configure: failed program was:" >&5
   cat conftest.$ac_ext >&5
   rm -rf conftest*
   { echo "configure: error: installation or configuration problem: $host compiler $HOST_CC cannot create executables." 1>&2; exit 1; } 
 fi
 rm -f conftest*
 
--- a/configure.in
+++ b/configure.in
@@ -588,19 +588,19 @@ if test "$target" != "$host" -o -n "$CRO
         HOST_LDFLAGS="$LDFLAGS"
     fi
 
     CC="$HOST_CC"
     CFLAGS="$HOST_CFLAGS"
     LDFLAGS="$HOST_LDFLAGS"
 
     AC_MSG_CHECKING([whether the $host compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works])
-    AC_TRY_COMPILE([], [return(0);], 
-        [ac_cv_prog_host_cc_works=1 AC_MSG_RESULT([yes])],
-        AC_MSG_ERROR([installation or configuration problem: $host compiler $HOST_CC cannot create executables.]) )
+    AC_TRY_COMPILE([], [return 0;],
+        [AC_MSG_RESULT([yes])],
+        [AC_MSG_ERROR([installation or configuration problem: $host compiler $HOST_CC cannot create executables.])] )
 
     CC=$_SAVE_CC
     CFLAGS=$_SAVE_CFLAGS
     LDFLAGS=$_SAVE_LDFLAGS
 
     case "$build:$target" in 
       powerpc-apple-darwin8*:i?86-apple-darwin*)
         dnl The Darwin cross compiler doesn't necessarily point itself at a