Return-Path: Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Delivered-To: mailing list dev@apr.apache.org Received: (qmail 12809 invoked from network); 11 Jan 2001 21:19:17 -0000 Received: from mail1.bna.bellsouth.net (205.152.150.13) by h31.sny.collab.net with SMTP; 11 Jan 2001 21:19:17 -0000 Received: from adsl-77-241-65.rdu.bellsouth.net (adsl-77-241-65.rdu.bellsouth.net [216.77.241.65]) by mail1.bna.bellsouth.net (3.3.5alt/0.75.2) with ESMTP id QAA26740 for ; Thu, 11 Jan 2001 16:19:20 -0500 (EST) Received: (from trawick@localhost) by adsl-77-241-65.rdu.bellsouth.net (8.9.3/8.8.7) id QAA05904; Thu, 11 Jan 2001 16:12:02 -0500 X-Authentication-Warning: adsl-77-241-65.rdu.bellsouth.net: trawick set sender to trawickj@bellsouth.net using -f Sender: trawick@bellsouth.net To: dev@apr.apache.org Subject: Re: FreeBSD version check for thread-safe sendfile References: <200101111436.JAA15451@adsl-77-241-65.rdu.bellsouth.net> <20010111121502.J4640@lyra.org> <03f901c07c11$7c2aec90$42fc49c2@VAIO> From: Jeff Trawick Date: 11 Jan 2001 16:12:02 -0500 In-Reply-To: "David Reid"'s message of "Thu, 11 Jan 2001 20:57:40 -0000" Message-ID: Lines: 30 User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N "David Reid" writes: > How many places are we going to run into dependencies on version number for > FreeBSD? I think we have 2, maybe 3 already and it's likely to grow. I > think we need to do this a different way. > > Why don't we add a check in the early portion of configure.in that looks for > freebsd, if it's found determines the version number and sets it as a > variable such as FBSD_VERSION. This should probably be of the format we're > already using, i.e. 34 for 3.4.x and 41 for 4.1.x and so on. I mean so far > we're only interested if we have greater than a particular version and I can > see that continuing. If there is 3.4.x, then perhaps it should be 340 for 3.4, 341 for 3.4.1, etc. The version could be set to uname -r | sed -e 's/\(.\)\.\(.\)\.\(.\).*/\1\2\3/' | sed -e 's/\(.\)\.\(.\)\-.*/\1\20/' yielding 341 for 3.4.1-RELEASE and 340 for 3.4-RELEASE. Why limit the variable to FreeBSD? We'll have (or already have) similar checks on other platforms. Make the variable name more generic. -- Jeff Trawick | trawickj@bellsouth.net | PGP public key at web site: http://www.geocities.com/SiliconValley/Park/9289/ Born in Roswell... married an alien...