[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tlsdate/master] Add DragonFly BSD in configure.ac
commit bddd9e8a2a0b8e9bbe701d258c329320e02f9a6a
Author: Jacob Appelbaum <jacob@xxxxxxxxxxxxx>
Date: Thu Apr 18 20:03:37 2013 -0700
Add DragonFly BSD in configure.ac
---
configure.ac | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/configure.ac b/configure.ac
index d1649da..1ccaa5a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -213,6 +213,24 @@ case "$host" in
[*], [UNPRIV_GROUP=$with_unpriv_group])
AC_DEFINE_UNQUOTED([UNPRIV_GROUP], ["${UNPRIV_GROUP}"], [Unprivileged group])
;;
+ *dragonfly*)
+ dnl This is for DragonFly BSD
+ dnl clock_gettime is either part of libc or unavailable.
+ AC_CHECK_FUNC([clock_gettime], ,
+ [AC_MSG_ERROR([Your system lacks clock_gettime])])
+ 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.
+ AC_CHECK_FUNC([fmemopen], ,
+ [AC_MSG_WARN([Missing fmemopen, unit tests are likely to segfault. Try CC=clang.])])
+ AC_ARG_WITH([unpriv-group],
+ [AS_HELP_STRING([--with-unpriv-group=<group>],
+ [Group to drop privs to @<:@default: nobody@:>@])])
+ AS_CASE([$with_unpriv_group],
+ [""|yes|no], [UNPRIV_GROUP="nobody"],
+ [*], [UNPRIV_GROUP=$with_unpriv_group])
+ AC_DEFINE_UNQUOTED([UNPRIV_GROUP], ["${UNPRIV_GROUP}"], [Unprivileged group])
+ ;;
*-bsd*)
dnl This is a generic catch for BSD variants
dnl This likely needs to be tuned to catch all
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits