From owner-freebsd-hackers Tue Jul 14 08:46:31 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA20917 for freebsd-hackers-outgoing; Tue, 14 Jul 1998 08:46:31 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from picasso.wcape.school.za (picasso.wcape.school.za [196.21.102.12]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA20908 for ; Tue, 14 Jul 1998 08:46:26 -0700 (PDT) (envelope-from pvh@leftside.wcape.school.za) Received: from uucp by picasso.wcape.school.za with local-rmail (Exim 1.92 #2) for freebsd-hackers@freebsd.org id 0yw7HQ-0007iY-00; Tue, 14 Jul 1998 17:46:12 +0200 Received: from localhost (pvh@localhost) by leftside.wcape.school.za (8.8.8/8.8.4) with SMTP id PAA02610 for ; Tue, 14 Jul 1998 15:42:16 +0200 (SAT) Date: Tue, 14 Jul 1998 15:42:15 +0200 (SAT) From: Peter van Heusden Reply-To: Peter van Heusden To: freebsd-hackers@FreeBSD.ORG Subject: Detecting the presence of threads (for a port) Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I've been merging Terry Lambert's patches to ldap-3.3 (which include the Critical Angle patches as well as some of Terry's own) with the existing ldap port, and managed to get a working build (which needs an hour or two of cleaning up). The port, however, requires pthreads, which requires libc_r. I was wondering how to deal with this. Two questions: 1) How to detect the existence of pthreads? I assume a pre-configure test for libc_r should do? 2) Should pthreads be required in the default port? Since they are not available with an out-of-the-box 2.2 FreeBSD, I assume not, in which case I'd have to break the pthread patches out into a seperate set of files, and only apply them if a particular make variable is set. Does this make sense? P.S. Who else (if anyone) is working on ldap at present? Thanks, Peter -- Peter van Heusden | Computers Networks Reds Greens Justice Peace Beer Africa pvh@leftside.wcape.school.za | Support the SAMWU 50 litres campaign! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message