summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Schlyter <jakob@cvs.openbsd.org>2003-01-20 21:33:32 +0000
committerJakob Schlyter <jakob@cvs.openbsd.org>2003-01-20 21:33:32 +0000
commitad0031c21d3538fe61a842467eba2d86fd5336d5 (patch)
treee5d3ac6a7e206e4218aca45e2c0911d9b333d68f
parent1cc2cddc4e82d73456d0eaa4aa4648a1c2371eea (diff)
test for arc4random()
-rw-r--r--usr.sbin/bind/acconfig.h3
-rw-r--r--usr.sbin/bind/config.h.in3
-rw-r--r--usr.sbin/bind/configure.in7
3 files changed, 12 insertions, 1 deletions
diff --git a/usr.sbin/bind/acconfig.h b/usr.sbin/bind/acconfig.h
index e479a5541f2..58e90bc5d92 100644
--- a/usr.sbin/bind/acconfig.h
+++ b/usr.sbin/bind/acconfig.h
@@ -76,6 +76,9 @@
/* define if gai_strerror() exists */
#undef HAVE_GAISTRERROR
+/* define if arc4random() exists */
+#undef HAVE_ARC4RANDOM
+
/* define if pthread_setconcurrency() should be called to tell the
* OS how many threads we might want to run.
*/
diff --git a/usr.sbin/bind/config.h.in b/usr.sbin/bind/config.h.in
index 8ff97bff148..07b6bb99a56 100644
--- a/usr.sbin/bind/config.h.in
+++ b/usr.sbin/bind/config.h.in
@@ -87,6 +87,9 @@
/* define if gai_strerror() exists */
#undef HAVE_GAISTRERROR
+/* define if arc4random() exists */
+#undef HAVE_ARC4RANDOM
+
/* define if pthread_setconcurrency() should be called to tell the
* OS how many threads we might want to run.
*/
diff --git a/usr.sbin/bind/configure.in b/usr.sbin/bind/configure.in
index e259a153aa3..b54ba18f6a5 100644
--- a/usr.sbin/bind/configure.in
+++ b/usr.sbin/bind/configure.in
@@ -13,7 +13,7 @@
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-AC_REVISION($Revision: 1.1 $)
+AC_REVISION($Revision: 1.2 $)
AC_INIT(lib/dns/name.c)
AC_PREREQ(2.13)
@@ -479,6 +479,11 @@ case "$use_randomdev" in
esac
#
+# Do we have arc4random() ?
+#
+AC_CHECK_FUNC(arc4random, AC_DEFINE(HAVE_ARC4RANDOM))
+
+#
# Begin pthreads checking.
#
# First, decide whether to use multithreading or not.