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

[tor-commits] [torsocks/osx] Build fix for BSD.



commit 17839f73a638d562c726ec5a808842256d0cdc14
Author: mwenge <robert@xxxxxxxxxxxxxxx>
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,



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