From owner-freebsd-threads@FreeBSD.ORG Mon Feb 4 11:50:32 2008 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0896516A420 for ; Mon, 4 Feb 2008 11:50:32 +0000 (UTC) (envelope-from karl.h.beckers@gmx.net) Received: from grotesk.our-isp.org (www.our-isp.org [82.165.43.21]) by mx1.freebsd.org (Postfix) with ESMTP id BE64313C467 for ; Mon, 4 Feb 2008 11:50:31 +0000 (UTC) (envelope-from karl.h.beckers@gmx.net) Received: from www.our-isp.org (localhost [127.0.0.1]) by grotesk.our-isp.org (Postfix) with ESMTP id 2878725DFD for ; Mon, 4 Feb 2008 12:31:23 +0100 (CET) Received: from 192.9.112.196 (SquirrelMail authenticated user khb@jarre-de-the.net) by www.our-isp.org with HTTP; Mon, 4 Feb 2008 12:31:23 +0100 (CET) Message-ID: <5913.192.9.112.196.1202124683.squirrel@www.our-isp.org> Date: Mon, 4 Feb 2008 12:31:23 +0100 (CET) From: "Karl H. Beckers" To: freebsd-threads@freebsd.org User-Agent: SquirrelMail/1.4.4 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: threading in FreeBSD (acx_pthreads) X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Feb 2008 11:50:32 -0000 Hi all, could you please include me directly in your replies ... I haven't subscribed. I'm trying to move my configure.in from manual threading libs detection to acx_pthreads. That, however, prefers -kthread over -pthread where I previously did this: if ( test -x /sbin/sysctl ) ; then ac_my_freebsd_release=`/sbin/sysctl -n kern.osreldate` else ac_my_freebsd_release=`/usr/sbin/sysctl -n kern.osreldate` fi if ( expr ${ac_my_freebsd_release} \< 500016 ) ; then LIBS="${LIBS} -pthread" else LIBS="${LIBS} -lc_r" fi Could anybody make a recommendation of the propert thing to do on FreeBSD? Is the acx_pthread assumption OK, or should I patch that? TIA, Karl.