[or-cvs] [tor/release-0.2.2 064/162] Fix MIPSpro and time_t signedness detection

arma at torproject.org arma at torproject.org
Mon Dec 20 03:06:33 UTC 2010


Author: Sebastian Hahn <sebastian at torproject.org>
Date: Mon, 11 Oct 2010 19:00:43 +0200
Subject: Fix MIPSpro and time_t signedness detection
Commit: f3d000f49662f7b3d94340f30fd745c58712ea2b

3d6e2830876 silenced the autogen.sh warnings as it was supposed to, but
introduced two bugs. Fix them.
---
 changes/bug2020 |    5 +++++
 configure.in    |    8 ++++----
 2 files changed, 9 insertions(+), 4 deletions(-)
 create mode 100644 changes/bug2020

diff --git a/changes/bug2020 b/changes/bug2020
new file mode 100644
index 0000000..51c4d06
--- /dev/null
+++ b/changes/bug2020
@@ -0,0 +1,5 @@
+  o Minor bugfixes:
+    - Fix warnings that newer versions of autoconf produced during
+      ./autogen.sh. From what I can tell these were harmless in our case,
+      but they were extremely verbose.  Fixes bug 2020.
+
diff --git a/configure.in b/configure.in
index 5198ab7..891daa8 100644
--- a/configure.in
+++ b/configure.in
@@ -199,9 +199,9 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM(, [
 #error
   return x(y);
 #endif
-]),
+])],
 bmipspro=false; AC_MSG_RESULT(no),
-bmipspro=true; AC_MSG_RESULT(yes)])
+bmipspro=true; AC_MSG_RESULT(yes))
 
 if test "$bmipspro" = true; then
   CFLAGS="$CFLAGS -c99"
@@ -575,8 +575,8 @@ AC_RUN_IFELSE([AC_LANG_SOURCE([
 #ifdef HAVE_TIME_H
 #include <time.h>
 #endif
-int main(int c, char**v) { if (((time_t)-1)<0) return 1; else return 0; }]),
-  tor_cv_time_t_signed=no, tor_cv_time_t_signed=yes, tor_cv_time_t_signed=cross])
+int main(int c, char**v) { if (((time_t)-1)<0) return 1; else return 0; }])],
+  tor_cv_time_t_signed=no, tor_cv_time_t_signed=yes, tor_cv_time_t_signed=cross)
 ])
 
 if test "$tor_cv_time_t_signed" = cross; then
-- 
1.7.1




More information about the tor-commits mailing list