[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tlsdate/master] we now build for x86_64-unknown-kfreebsd8.2-gnu



commit ae4be31358a96f6a4813be374c49148fa5b7a069
Author: Jacob Appelbaum <jacob@xxxxxxxxxxxxx>
Date:   Thu Apr 25 09:28:40 2013 -0700

    we now build for x86_64-unknown-kfreebsd8.2-gnu
---
 configure.ac |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 14aead5..92915fd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -187,8 +187,13 @@ case "$host" in
   *kfreebsd*-gnu*)
     dnl This is for Debian GNU/kFreeBSD
     dnl clock_gettime is either part of libc or unavailable.
-    AC_CHECK_FUNC([clock_gettime], ,
-                  [AC_MSG_ERROR([Your system lacks clock_gettime])])
+    dnl Check for clock_gettime.  Some systems put it into -lc, while
+    dnl others use -lrt.  Try the first and fallback to the latter.
+    RT_LIB=
+    AC_CHECK_FUNC([clock_gettime], [:],
+                  [AC_CHECK_LIB([rt], [clock_gettime], [RT_LIB="-lrt"],
+                  [AC_MSG_ERROR([Your system lacks clock_gettime])])])
+    AC_SUBST(RT_LIB)
     dnl If the autoconf goo picks up a compiler that runs in pre-POSIX mode,
     dnl the fmemopen prototype is hidden causing the unit tests to segfault.
     dnl This can happen if gcc is a symlink to gcc46 and is preferred to clang.



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits