[tor-commits] [torsocks/osx] Build fix for BSD.
hoganrobert at torproject.org
hoganrobert at torproject.org
Sun Oct 23 18:27:12 UTC 2011
commit 17839f73a638d562c726ec5a808842256d0cdc14
Author: mwenge <robert at roberthogan.net>
Date: Mon Dec 14 22:04:07 2009 +0000
Build fix for BSD.
Support presence of res_query in libc rather than libresolve.
---
configure.in | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/configure.in b/configure.in
index 390d08e..f7b1af9 100644
--- a/configure.in
+++ b/configure.in
@@ -129,11 +129,14 @@ if test "$tempdso" = "no"; then
"Check your system for libc.so and/or libdl.so."))
fi
-AC_CHECK_LIB(resolv, res_query, [ tempres="no" ],tempres="yes")
+AC_CHECK_LIB(resolv, res_query, [ tempres="yes" ],tempres="no")
if test "$tempres" = "no"; then
- AC_DEFINE([SUPPORT_RES_API],[],[Support the res_query family of calls])
+ AC_CHECK_LIB(c, res_query,,AC_MSG_ERROR("res_query() not found in libc or libresolve." \
+ "Check your system for libc.so and/or libresolve.so."))
fi
+AC_DEFINE([SUPPORT_RES_API],[],[Support the res_query family of calls])
+
dnl If we're using gcc here define _GNU_SOURCE
AC_MSG_CHECKING(for RTLD_NEXT from dlfcn.h)
AC_EGREP_CPP(yes,
More information about the tor-commits
mailing list