Browse Source

Check the right variable for the right value in order to default netbsd threads to "off". Fixes bug 122.

svn:r4202
Nick Mathewson 20 years ago
parent
commit
e2749de1bb
1 changed files with 4 additions and 2 deletions
  1. 4 2
      configure.in

+ 4 - 2
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";;