Return-Path: Delivered-To: new-httpd-archive@hyperreal.org Received: (qmail 19115 invoked by uid 6000); 22 Dec 1999 20:46:44 -0000 Received: (qmail 18921 invoked from network); 22 Dec 1999 20:46:37 -0000 Received: from mta2.rcsntx.swbell.net (151.164.30.26) by taz.hyperreal.org with SMTP; 22 Dec 1999 20:46:37 -0000 Received: from holly.dyndns.org ([216.62.157.60]) by mta2.rcsntx.swbell.net (Sun Internet Mail Server sims.3.5.1999.09.16.21.57.p8) with ESMTP id <0FN5005A2TP162@mta2.rcsntx.swbell.net> for new-httpd@apache.org; Wed, 22 Dec 1999 14:46:13 -0600 (CST) Received: (from chris@localhost) by holly.dyndns.org (8.9.3/8.9.3) id OAA67020 for new-httpd@apache.org; Wed, 22 Dec 1999 14:48:48 -0600 (CST envelope-from chris) X-URL: http://www.FreeBSD.org/~chris/ Date: Wed, 22 Dec 1999 14:48:47 -0600 From: Chris Costello Subject: Re: Solution for pthreads configure problem. In-reply-to: To: new-httpd@apache.org Message-id: <19991222144847.G19766@holly.calldei.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii User-Agent: Mutt/0.96.4i X-Operating-System: FreeBSD 4.0-CURRENT (i386) References: <19991222121910.C27289@io.com> Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org Status: O On Wed, Dec 22, 1999, Ryan Bloom wrote: > > Yeah, as we discussed before, we need a good per-OS routine to > > determine flags for eah platform. This will be done. > > This is my work for the next few hours and tomorrow morning. My plan: > > If --with-threads=pth is specified for Apache, we use the flags Ralf has > specified as necessary to build with pth. If not, we check for > libpthreads, and if it is around, we try to compile with --pthread. If > this works, we specify it in the LD_FLAGS variable. It will not work. Under FreeBSD, as I mentioned in a previous post on this thread, there _is_ no libpthread; it's libc_r. I like Greg Stein's idea of checking whether gcc -pthread will actually properly compile a threaded program, and then use that if it works, or try other methods (such as attempting to link with -lpthread if it exists). -- |Chris Costello |Just because you're paranoid doesn't mean they AREN'T after you. `----------------------------------------------------------------