From a7a1f423fb94cd14432601bdd09ed893f8529856 Mon Sep 17 00:00:00 2001
From: unknown <cmiller@zippy.cornsilk.net>
Date: Tue, 8 May 2007 18:19:36 -0400
Subject: Bug #23294: Detection of sem_xxx functions on NetBSD broken and \ 
 DragonflyBSD misc patches

The bug reporter anticipated a problem, instead of experiencing one.

IRC conversation:
<xtraeme> sem_init is defined in librt on NetBSD
	solaris uses libposix4 iirc
	that's why I sent a patch
<chadmiller> xtraeme: Agreed.  But, AFAICT, mysql doesn't use
	sem_init() anywhere.  Thus my confusion.
<xtraeme> I didn't verify that, but I saw that sem_init wasn't detected
	correctly...
	why are you checking for sem_init if it's unused then? :-)
<chadmiller> xtraeme: In recent autoconf scripts, we change it to test
	for sched_yield() .
<xtraeme> that's ok then
	sched_yield is in libc
	feel free to close the bug report then :-)


configure.in:
  Remove useless test for sem_init() .
---
 configure.in | 3 ---
 1 file changed, 3 deletions(-)

(limited to 'configure.in')

diff --git a/configure.in b/configure.in
index 663701890cf..d995fd107ad 100644
--- a/configure.in
+++ b/configure.in
@@ -801,9 +801,6 @@ AC_SEARCH_LIBS(crypt, crypt, AC_DEFINE(HAVE_CRYPT, 1, [crypt]))
 # For the sched_yield() function on Solaris
 AC_CHECK_FUNC(sched_yield, , AC_CHECK_LIB(posix4, sched_yield))
 
-# For the sem_*() functions on BSDish
-AC_CHECK_FUNC(sem_init, , AC_CHECK_LIB(rt, sem_init))
-
 MYSQL_CHECK_ZLIB_WITH_COMPRESS
 
 # For large pages support
-- 
cgit v1.2.1