From e2749de1bb469894d3464468791c812c953db34e Mon Sep 17 00:00:00 2001
From: Nick Mathewson <nickm@torproject.org>
Date: Sat, 14 May 2005 00:14:12 +0000
Subject: [PATCH] Check the right variable for the right value in order to
 default netbsd threads to "off". Fixes bug 122.

svn:r4202
---
 configure.in | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/configure.in b/configure.in
index 0e3eb1f6da..e95cabbb0d 100644
--- a/configure.in
+++ b/configure.in
@@ -23,8 +23,10 @@ AC_ARG_ENABLE(threads,
      AC_HELP_STRING(--disable-threads, disable multi-threading support))
 
 if test x$enable_threads = x; then
-   case $ac_sys_system in
-    NetBSD*)
+   case $host in
+    *-*-netbsd*)
+     # Don't try multithreading on netbsd -- there is no threadsafe DNS
+     # lookup function there.
      enable_threads="no";;
     *)
      enable_threads="yes";;
-- 
GitLab