]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
enable threads by default on openbsd 6.2 and higher
authorEvan Hunt <each@isc.org>
Wed, 20 Feb 2019 22:02:19 +0000 (14:02 -0800)
committerEvan Hunt <each@isc.org>
Thu, 21 Feb 2019 02:29:53 +0000 (18:29 -0800)
config.threads.in
configure

index 30cf7cda523475e2e1e5924c65cd65e3ea05d3d9..3240303e20b72d353ac59c56f0e3d4061b468b48 100644 (file)
@@ -39,10 +39,12 @@ case $host in
        use_threads=false ;;
 *-netbsd*)
        use_threads=true ;;
-*-openbsd*)
-       # OpenBSD users have reported that named dumps core on
+[*-openbsd[12345].*]|[*-openbsd6.[01]])
+       # OpenBSD users reported that named dumps core on
        # startup when built with threads.
        use_threads=false ;;
+*-openbsd*)
+       use_threads=true ;;
 [*-freebsd[1234567].*])
        # Threads are broken at least up to FreeBSD 4.11.
        # FreeBSD 5, 6 and 7 we have never officially supported threads
index 5bdcd3dcca2cf52b0e3afa5efe9e01127c65fad5..10a774ae36a3548b2c4bd4b3b4fecd587d1f48a0 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
 #! /bin/sh
-# Copyright (C) 1996-2018  Internet Systems Consortium, Inc. ("ISC")
+# Copyright (C) 1996-2019  Internet Systems Consortium, Inc. ("ISC")
 #
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -947,6 +947,7 @@ infodir
 docdir
 oldincludedir
 includedir
+runstatedir
 localstatedir
 sharedstatedir
 sysconfdir
@@ -1119,6 +1120,7 @@ datadir='${datarootdir}'
 sysconfdir='${prefix}/etc'
 sharedstatedir='${prefix}/com'
 localstatedir='${prefix}/var'
+runstatedir='${localstatedir}/run'
 includedir='${prefix}/include'
 oldincludedir='/usr/include'
 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
@@ -1371,6 +1373,15 @@ do
   | -silent | --silent | --silen | --sile | --sil)
     silent=yes ;;
 
+  -runstatedir | --runstatedir | --runstatedi | --runstated \
+  | --runstate | --runstat | --runsta | --runst | --runs \
+  | --run | --ru | --r)
+    ac_prev=runstatedir ;;
+  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
+  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
+  | --run=* | --ru=* | --r=*)
+    runstatedir=$ac_optarg ;;
+
   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
     ac_prev=sbindir ;;
   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
@@ -1508,7 +1519,7 @@ fi
 for ac_var in  exec_prefix prefix bindir sbindir libexecdir datarootdir \
                datadir sysconfdir sharedstatedir localstatedir includedir \
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
-               libdir localedir mandir
+               libdir localedir mandir runstatedir
 do
   eval ac_val=\$$ac_var
   # Remove trailing slashes.
@@ -1661,6 +1672,7 @@ Fine tuning of the installation directories:
   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
+  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
   --libdir=DIR            object code libraries [EPREFIX/lib]
   --includedir=DIR        C header files [PREFIX/include]
   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
@@ -15436,10 +15448,12 @@ case $host in
        use_threads=false ;;
 *-netbsd*)
        use_threads=true ;;
-*-openbsd*)
-       # OpenBSD users have reported that named dumps core on
+*-openbsd[12345].*|*-openbsd6.[01])
+       # OpenBSD users reported that named dumps core on
        # startup when built with threads.
        use_threads=false ;;
+*-openbsd*)
+       use_threads=true ;;
 *-freebsd[1234567].*)
        # Threads are broken at least up to FreeBSD 4.11.
        # FreeBSD 5, 6 and 7 we have never officially supported threads