summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWan-Teh Chang <wtc@google.com>2013-03-08 20:14:54 -0800
committerWan-Teh Chang <wtc@google.com>2013-03-08 20:14:54 -0800
commit59bb14574be21e14c32d94e74a4b1928ca45bc76 (patch)
tree9577c210250a146a77929164c4c92be6dec0f014
parente2c5cdcf1a6aa66744dd698ce9c47ce16757181a (diff)
downloadnspr-hg-59bb14574be21e14c32d94e74a4b1928ca45bc76.tar.gz
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.
-rwxr-xr-xconfigure4
-rw-r--r--configure.in6
2 files changed, 5 insertions, 5 deletions
diff --git a/configure b/configure
index 29c861a0..047c5821 100755
--- a/configure
+++ b/configure
@@ -1449,12 +1449,12 @@ echo "configure:1447: checking whether the $host compiler ($HOST_CC $HOST_CFLAGS
#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
diff --git a/configure.in b/configure.in
index f6992ea8..4d28db75 100644
--- a/configure.in
+++ b/configure.in
@@ -593,9 +593,9 @@ if test "$target" != "$host" -o -n "$CROSS_COMPILE"; then
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