[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [torsocks/master] Fix build on systems that export res_query a strange way
commit 638e9bed2ce080ac081cc0a68778720ecd767a1b
Author: Robert Hogan <robert@xxxxxxxxxxxxxxx>
Date: Tue Feb 22 20:29:16 2011 +0000
Fix build on systems that export res_query a strange way
Reported by starslights.
---
configure.in | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/configure.in b/configure.in
index 69d2efb..113b09b 100644
--- a/configure.in
+++ b/configure.in
@@ -519,7 +519,9 @@ AC_SUBST(SPECIALLIBS)
LIBS=${SIMPLELIBS}
AC_SEARCH_LIBS(dlopen, [dl])
-AC_SEARCH_LIBS(res_query, [resolv])
+# Required to compile on machines that export res_query with a double underscore.
+# Sourced from gnupg configure via cvsnt.
+AC_SEARCH_LIBS(res_query,resolv bind,,AC_SEARCH_LIBS(__res_query,resolv bind))
TESTLDFLAGS="$LDFLAGS"
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits