]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
On NetBSD systems without pthreads, build without threads.
authorBrian Wellington <source@isc.org>
Thu, 25 Jan 2001 21:42:17 +0000 (21:42 +0000)
committerBrian Wellington <source@isc.org>
Thu, 25 Jan 2001 21:42:17 +0000 (21:42 +0000)
configure.in

index 7f5dd63b1ee43a666db7a7a741e4bfca73df0106..3df6143a3e2aa8d7d6305ebc917525309adee1f1 100644 (file)
@@ -18,7 +18,7 @@ AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)dnl
 esyscmd([sed "s/^/# /" COPYRIGHT])dnl
 AC_DIVERT_POP()dnl
 
-AC_REVISION($Revision: 1.220 $)
+AC_REVISION($Revision: 1.221 $)
 
 AC_INIT(lib/dns/name.c)
 AC_PREREQ(2.13)
@@ -415,22 +415,22 @@ then
 [linking with PTL2 is highly experimental and not expected to work])
                        CC=ptlgcc
                else
-                       AC_MSG_RESULT(mit-pthreads/unproven-pthreads)
-
                        if test ! -d $LOCALBASE/pthreads
                        then
-                               AC_MSG_ERROR([no thread library found.
-
-Please install the devel/unproven-pthreads package and rerun configure.
-])
+                               AC_MSG_RESULT(none)
+                               use_threads=false
                        fi
 
-                       pkg="$LOCALBASE/pthreads"
-                       lib1="-L$pkg/lib -Wl,-R$pkg/lib"
-                       lib2="-lpthread -lm -lgcc -lpthread"
-                       LIBS="$lib1 $lib2 $LIBS"
-                       CPPFLAGS="$CPPFLAGS -I$pkg/include"
-                       STD_CINCLUDES="$STD_CINCLUDES -I$pkg/include"
+                       if $use_threads
+                       then
+                               AC_MSG_RESULT(mit-pthreads/unproven-pthreads)
+                               pkg="$LOCALBASE/pthreads"
+                               lib1="-L$pkg/lib -Wl,-R$pkg/lib"
+                               lib2="-lpthread -lm -lgcc -lpthread"
+                               LIBS="$lib1 $lib2 $LIBS"
+                               CPPFLAGS="$CPPFLAGS -I$pkg/include"
+                               STD_CINCLUDES="$STD_CINCLUDES -I$pkg/include"
+                       fi
                fi
                ;;
                *)